Page MenuHome

obj.to_mesh() crashes on mesh with armature modifier, when run 2x
Closed, ResolvedPublicBUG

Description

Hi
In the blend file below I have simple plane mesh, with armature modifier (armature is None). And simple blender operator script.
If I redo simple blender operator (by changing operator F6 property), blender will crash, on line:

obj.to_mesh(bpy.context.depsgraph, apply_modifiers, calc_undeformed=False)

If I remove the armature modifier, or set armature modifier object to skeleton, it works ok.

Event Timeline

I'm getting the following assert when changing the properties:
BLI_assert failed: blender/source/blender/depsgraph/intern/depsgraph_query.cc:145, DEG_get_evaluated_scene(), at 'scene_cow != __null && DEG::deg_copy_on_write_is_expanded(&scene_cow->id)'

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.Feb 7 2019, 12:46 PM

I just noticed when I add 'USE_EVAL_DATA' to operator bl_options
bl_options = {"REGISTER", "UNDO","USE_EVAL_DATA"}
Then crash won't happen. I'm not sure if this bug should be marked as fixed then.

Brecht Van Lommel (brecht) raised the priority of this task from 50 to High.Apr 1 2019, 1:44 PM
Jose Conseco (joseconseco) changed the task status from Unknown Status to Resolved.Apr 4 2019, 7:45 PM

I just tested today build 4th of april, and this file no longer crashes. It seems bug was fixed.

v2.80

I'm a (let's say "first time" though I have been playing with B since forever) enduser, first start of v2.xx and doing really simple edits (coloring the default cube on the default screen), and got bitten by this.

blender(BLI_system_backtrace+0x33) [0x559d50e2ff33]
blender(DEG_get_evaluated_scene+0x30) [0x559d50e39710]
blender(wm_event_do_handlers+0xd7) [0x559d5101b9b7]
blender(WM_main+0x20) [0x559d51011110]
blender(main+0x2ae) [0x559d50bb2fae]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7f9db4fa7bbb]
blender(_start+0x2a) [0x559d50bea45a]
BLI_assert failed: /build/blender-1XEhGi/blender-2.80+dfsg/source/blender/depsgraph/intern/depsgraph_query.cc:159, DEG_get_evaluated_scene(), at 'scene_cow != __null && DEG::deg_copy_on_write_is_expanded(&scene_cow->id)'
Aborted

I really didn't do anything special, I was trying to add a simple spotlight, more specifically adjust its spot size using the slider. Bam, gone.

More details:
This is Debian v2.80.75, packaged.
It may be library incompatiblity, and since downloaded versions seem not to crash it may not be yours to fix. However it is possibly good to be aware of the problem, even I cannot point out the specific cause (unless I find a way to reliably crash it again).