Page MenuHome

Random crashes on depsgraph_update_post() handler when applying modifier.
Closed, ResolvedPublic


System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 660/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.94

Blender Version
Broken: version: 2.80 (sub 74), branch: blender2.7, commit date: 2019-06-15 22:35, hash: rB87de71a8aaa0
Worked: (optional)

Short description of error
In attached blend file, I use depsgraph_update_post handler, to listen for selected object changes. Is there is one, apply shrink-wrap modifier. Problem is - apply modifier crashes blender randomly (usually when adding loops to mesh, or grabbing it with G key).

Exact steps for others to reproduce the error

  1. Open blend file, and run script -> it will add depsgraph_update_post handler, and listen for active object changes.
  2. Move some edges, add some edge loops (ctrl+R) and it will crash after some time (sometimes right away). If I remove apply modifier line, it will not crash.



Event Timeline

Jose Conseco (joseconseco) claimed this task.

Seems to be fixed in todays build (18 june)

Hello, can I use the script from the blend file as a base for an open source add-on I'm developing? There seems to be awfully few documentation on despgraph update handlers, and I imagine it'd had required many trials and errors to avoid those recursions you point out if it weren't for this post!