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

Closed
opened 2019-02-07 01:11:56 +01:00 by Jose Conseco · 10 comments

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.
to_mesh_crash.blend

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. [to_mesh_crash.blend](https://archive.blender.org/developer/F6532844/to_mesh_crash.blend)
Author

Added subscriber: @JoseConseco

Added subscriber: @JoseConseco

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Sergey Sharybin was assigned by Sebastian Parborg 2019-02-07 12:46:25 +01:00

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)'

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)'`
Author

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.

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.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Still should not crash I guess..

Still should not crash I guess..
Author

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author

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

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

Added subscriber: @grin-4

Added subscriber: @grin-4

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).

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).
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#61264
No description provided.