Page MenuHome

bpy.ops.sculpt.dynamic_topology_toggle causes a SegFault from Python in background mode
Open, Needs Triage by DeveloperPublic


System Information
Operating system: Linux-5.0.0-32-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: rBf6cb5f54494e
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-14 09:40, hash: rBc25a910e4ec0
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-14 23:23, hash: rB96ce32dca6ab
Worked: version: 2.79 (sub 0), branch: master, commit date: 2017-09-11 10:43, hash: 5bd8ac9abfa, type: Release

Short description of error
With SCULPT mode and DynTopo activated, toggling DynTopo from a Python script works from the UI, but segfaults when ran in background.

Exact steps for others to reproduce the error

  1. Open the default startup file
  2. With the cube selected, toggle Sculpt mode
  3. Turn on Dyntopo in the Active Tool settings
  4. Save the .blend file in this state
  5. Run the attached python script on the .blend with the UI: should open the file and switch to object mode.
  6. Run the attached python script on the .blend in background mode: Segfault when trying to toggle Dyntopo
blender file.blend -P     -> OK
blender file.blend -b -P  -> SegFault

Attached files

  • .py script
  • default .blend file saved in sculpt mode with Dyntopo
  • backtrace (/tmp/file.crash.txt, same for all the versions tested)