Crash switching to vertex paint (from editmode, mesh with modifier, after adding/removing geometry in editmode) #72028

Closed
opened 2019-11-28 22:15:52 +01:00 by Jan Bláha · 9 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1060 3GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60

Operating system: Linux-5.4.17-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One 64 Bits
Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.44

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: 26bd5ebd42
Broken: version: 2.83 (sub 6), branch: master (modified), commit date: 2020-03-03 09:01, hash: b454a12233
Worked: 2.79b -

Short description of error
Crash switching to vertex paint (from editmode, mesh with modifier, after adding/removing geometry in editmode)

Exact steps for others to reproduce the error

#72028.blend

  • have a mesh object with any modifier (just open above file)
  • enter editmode (already the case in above file)
  • add geometry (just duplicate selected vertices)
  • switch to vertex paint mode
  • crash
    notes:
  • object_eval->runtime.mesh_deform_eval does not seem to be updated with new/generated geometry somehow while in editmode? [checked this in BKE_sculpt_object_pbvh_ensure when entering vertexpaint from editmode]
  • everything is fine if you exit and renter editmode prior to switching to vertex paint
**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1060 3GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.60 Operating system: Linux-5.4.17-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One 64 Bits Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.44 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: `26bd5ebd42` Broken: version: 2.83 (sub 6), branch: master (modified), commit date: 2020-03-03 09:01, hash: `b454a12233` Worked: 2.79b - **Short description of error** Crash switching to vertex paint (from editmode, mesh with modifier, after adding/removing geometry in editmode) **Exact steps for others to reproduce the error** [#72028.blend](https://archive.blender.org/developer/F8385028/T72028.blend) - have a mesh object with any modifier (just open above file) - enter editmode (already the case in above file) - add geometry (just duplicate selected vertices) - switch to vertex paint mode - crash notes: - `object_eval->runtime.mesh_deform_eval` does not seem to be updated with new/generated geometry somehow while in editmode? [checked this in `BKE_sculpt_object_pbvh_ensure` when entering vertexpaint from editmode] - everything is fine if you exit and renter editmode prior to switching to vertex paint
Author

Added subscriber: @swift502

Added subscriber: @swift502

Added subscribers: @mont29, @mano-wii

Added subscribers: @mont29, @mano-wii

I can confirm.
By the way, before the crash this assert is raised:

BLI_assert failed: src\blender\blenkernel\intern\pbvh.c:2565, BKE_pbvh_vert_coords_apply(), at '!"PBVH: Given deforming vcos number does not natch PBVH vertex number!"'

(assert added in 934b9e80. @mont29, do you know what may be happening?)

I can confirm. By the way, before the crash this assert is raised: ``` BLI_assert failed: src\blender\blenkernel\intern\pbvh.c:2565, BKE_pbvh_vert_coords_apply(), at '!"PBVH: Given deforming vcos number does not natch PBVH vertex number!"' ``` (assert added in 934b9e80. @mont29, do you know what may be happening?)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Couple of notes:

  • no need to add a monkey, any generation of a face will do here (e.g. just extruding that single edge)
  • in fact, this doesnt even have to be a mesh with edges only to start of, culprit is just adding geometry in editmode (so duplicating an existing face will also do, see file below)
  • no need for a particle system, seems like any modifier will do here (e.g. in that file, remove the particle system, add a Simple Deform modifier, same thing happens
  • everything is fine if you exit and renter editmode
  • object_eval->runtime.mesh_deform_eval does not seem to be updated with new/generated geometry somehow while in editmode? [checked this in BKE_sculpt_object_pbvh_ensure when entering vertexpaint from editmode]

so to recap:

  • have a mesh object with any modifier
  • enter editmode
  • add geometry
  • switch to vertex paint mode
  • crash

#72028.blend

will update report accodingly

Couple of notes: - no need to add a monkey, **any** generation of a face will do here (e.g. just extruding that single edge) - in fact, this doesnt even have to be a mesh with edges only to start of, culprit is just adding geometry in editmode (so duplicating an existing face will also do, see file below) - no need for a particle system, seems like **any** modifier will do here (e.g. in that file, remove the particle system, add a `Simple Deform` modifier, same thing happens - everything is fine if you exit and renter editmode - `object_eval->runtime.mesh_deform_eval` does not seem to be updated with new/generated geometry somehow while in editmode? [checked this in `BKE_sculpt_object_pbvh_ensure` when entering vertexpaint from editmode] so to recap: - have a mesh object with any modifier - enter editmode - add geometry - switch to vertex paint mode - crash [#72028.blend](https://archive.blender.org/developer/F8385028/T72028.blend) will update report accodingly
Philipp Oeser changed title from Crash related to vertex paint and particle physics to Crash switching to vertex paint (from editmode, mesh with modifier, after adding/removing geometry in editmode) 2020-03-03 15:52:25 +01:00
Philipp Oeser self-assigned this 2020-03-03 16:10:26 +01:00
Member

will check on it

will check on it

This issue was referenced by c7e28f25d5

This issue was referenced by c7e28f25d58ab1277712e6d8ed6293f8d39e1758

This issue was referenced by 31aefdeec5

This issue was referenced by 31aefdeec5a6e098acabee80517aa6ca03933808
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#72028
No description provided.