Page MenuHome

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

Description

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: rB26bd5ebd42e3
Broken: version: 2.83 (sub 6), branch: master (modified), commit date: 2020-03-03 09:01, hash: rBb454a1223317
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

  • 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

Event Timeline

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to High.Nov 29 2019, 2:13 PM

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 rB934b9e80. @Bastien Montagne (mont29), do you know what may be happening?)

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

will update report accodingly

Philipp Oeser (lichtwerk) renamed this task 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).Mar 3 2020, 3:52 PM
Philipp Oeser (lichtwerk) updated the task description. (Show Details)