Page MenuHome

Access violation trying to access C.evaluated_get().view_layer_eval.depsgraph
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Win 10
Graphics card: gtx1080

Blender Version
Broken: b28 March 12, 14:38:10 - 936014ea8c74

Access violation when trying to access C.evaluated_depsgraph_get().view_layer_eval.depsgraph. Crash occurs when trying to list the members of view_layer_eval in an evaluated depsgraph. Looks like the member depsgraph is causing it. All member names not staring with d lists fine. When doing dir(C.evaluated_depsgraph_get().view_layer_eval) it tells me depsgraph is the only member starting with d in this namespace.

Exact steps for others to reproduce the error

  1. Open interactive console and type the below. The last line should crash.
deg = C.evaluated_depsgraph_get()
deg.view_layer_eval.depsgraph

See attached redundant gif.
I even made a blend file. Just hit ctrl+space

Event Timeline

Jacques Lucke (JacquesLucke) lowered the priority of this task from 90 to 50.Mar 13 2019, 12:05 PM
Jacques Lucke (JacquesLucke) renamed this task from Access violation trying to list C.depsgraph.view_layer_eval to Access violation trying to list C.depsgraph.view_layer_eval.depsgraph.Mar 13 2019, 12:25 PM

Simply executing the following script in the text editor also shows the bug.

import bpy
bpy.context.depsgraph.view_layer_eval.depsgraph
Richard Antalik (ISS) changed the task status from Confirmed to Needs Information from User.Jan 28 2020, 2:18 PM

bpy.context no longer has depsgraph member

If I do steps to reproduce on evaluated_depsgraph_get() I get no crash.

Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

Yeah. Type in console:

deg = C.evaluated_depsgraph_get()

deg.view_layer_eval.depsgraph  <- crash on hitting Enter

I don't think there's anything useful in this particular location, just the crash accessing in itself was amusing back then.

Kai Jægersen (kaio) renamed this task from Access violation trying to list C.depsgraph.view_layer_eval.depsgraph to Access violation trying to access C.evaluated_get().view_layer_eval.depsgraph.Jan 28 2020, 6:05 PM
Kai Jægersen (kaio) updated the task description. (Show Details)
Richard Antalik (ISS) changed the task status from Needs Information from User to Confirmed.Jan 29 2020, 12:28 AM
Richard Antalik (ISS) changed the subtype of this task from "Report" to "Bug".

Ok, can confirm.

>	blender.exe!rna_ViewLayer_depsgraph_get(PointerRNA * ptr) Line 171	C
 	blender.exe!ViewLayer_depsgraph_get(PointerRNA * ptr) Line 908	C
 	blender.exe!RNA_property_pointer_get(PointerRNA * ptr, PropertyRNA * prop) Line 3757	C
 	blender.exe!pyrna_prop_to_py(PointerRNA * ptr, PropertyRNA * prop) Line 1565	C
 	blender.exe!pyrna_struct_getattro(BPy_StructRNA * self, _object * pyname) Line 4261	C
 	[Externí kód]	
 	blender.exe!bpy_class_call(bContext * C, PointerRNA * ptr, FunctionRNA * func, ParameterList * parms) Line 8333	C
 	blender.exe!rna_operator_execute_cb(bContext * C, wmOperator * op) Line 1307	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1269	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1504	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1519	C
 	blender.exe!console_indent_or_autocomplete_exec(bContext * C, wmOperator * UNUSED_op) Line 486	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1269	C
 	blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2081	C
 	blender.exe!wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2391	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2527	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2792	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3245	C
 	blender.exe!WM_main(bContext * C) Line 421	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C

id was null