Page MenuHome

Crash in DEG_graph_on_visible_update when activating scene layer
Closed, ResolvedPublic

Description

System Information
Windows 10 x64

Blender Version
Git latest

Short description of error
The line layers[smd.layer] = bpy.context.scene.layers[smd.layer] = True (where smd.layer is 0) causes a 100% reproducible crash within Blender when the new dependency graph is enabled. There is no crash when the old graph is used instead.

Exact steps for others to reproduce the error

  1. Start Blender with --enable-new-depsgraph
  2. Install and activate the Blender Source Tools
  3. Import any SMD file

Call stack

>	blender.exe!DEG_graph_on_visible_update(Main * bmain, Scene * scene) Line 354	C++	Symbols loaded.
 	blender.exe!DEG_on_visible_update(Main * bmain, const bool UNUSED_do_time) Line 380	C++	Symbols loaded.
 	blender.exe!DAG_on_visible_update(Main * bmain, const bool do_time) Line 2573	C	Symbols loaded.
 	blender.exe!rna_property_update(bContext * C, Main * bmain, Scene * scene, PointerRNA * ptr, PropertyRNA * prop) Line 1812	C	Symbols loaded.
 	blender.exe!RNA_property_update(bContext * C, PointerRNA * ptr, PropertyRNA * prop) Line 1844	C	Symbols loaded.
 	blender.exe!pyrna_py_to_prop_array_index(BPy_PropertyArrayRNA * self, int index, _object * value) Line 2132	C	Symbols loaded.
 	blender.exe!pyrna_prop_array_ass_subscript(BPy_PropertyArrayRNA * self, _object * key, _object * value) Line 3053	C	Symbols loaded.
 	[Python to Native Transition]		Annotated Frame
 	import_smd.py!setLayer Line 651	Python	Symbols loaded.
 	import_smd.py!readPolys Line 726	Python	Symbols loaded.
 	import_smd.py!readSMD Line 1283	Python	Symbols loaded.
 	import_smd.py!execute Line 73	Python	Symbols loaded.
 	[Native to Python Transition]		Annotated Frame
 	blender.exe!bpy_class_call(bContext * C, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 7644	C	Symbols loaded.
 	blender.exe!rna_operator_execute_cb(bContext * C, wmOperator * op) Line 985	C	Symbols loaded.
 	blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler * handler, int val) Line 1887	C	Symbols loaded.
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2095	C	Symbols loaded.
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2176	C	Symbols loaded.
 	blender.exe!wm_event_do_handlers(bContext * C) Line 2449	C	Symbols loaded.
 	blender.exe!WM_main(bContext * C) Line 507	C	Symbols loaded.
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 529	C	Symbols loaded.

Event Timeline

Bastien Montagne (mont29) lowered the priority of this task from 90 to 50.Aug 20 2017, 5:50 PM

Confirmed.

@Sergey Sharybin (sergey) looks like there are some objects in the scene that do not have an id_node (yet?) in the graph… Not sure if this means a bug in depsgraph, or a missing update somewhere?