Page MenuHome

Scene custom properties crash
Closed, DuplicatePublic

Description

System Information
Operating system: Windows 10 Pro
Graphics card: 2x Nvidia 1080 GTX

Blender Version
Broken: 2.8 18e5540a48b6 (2019-03-06)
(example: 2.79b release)
(example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen)
Worked: (optional)

Short description of error
Blender crashes when attempting to append/link an object with a driver that uses a scene custom property

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

If you want to recreate it yourselves, do this
file 1:

  • add a scene custom property (i.e. prop)
  • add a driver to the default cube that uses “prop” in it
  • save file

file 2:

  • append/link file 1’s default cube

If you want to use the included file, do this

  • from the attached file, append/link "Sphere" to a new scene

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.Mar 6 2019, 6:34 PM

Assert and bt:

BLI_assert failed: /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:473, build_id(), at '!"Should never happen"'

Thread 1 "blender" received signal SIGABRT, Aborted.
0x00007ffff128302b in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff128302b in raise () from /lib64/libc.so.6
#1  0x00007ffff126c535 in abort () from /lib64/libc.so.6
#2  0x00005555586af514 in DEG::DepsgraphNodeBuilder::build_id (this=0x7fffffffd950, id=0x7fffcf581008)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:473
#3  0x00005555586b0dff in DEG::DepsgraphNodeBuilder::build_driver_variables (this=0x7fffffffd950, id=0x7fffcc30ce08, fcurve=0x7fffcc3c2588)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:944
#4  0x00005555586b0d2b in DEG::DepsgraphNodeBuilder::build_driver (this=0x7fffffffd950, id=0x7fffcc30ce08, fcurve=0x7fffcc3c2588, driver_index=0)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:932
#5  0x00005555586b0966 in DEG::DepsgraphNodeBuilder::build_animdata (this=0x7fffffffd950, id=0x7fffcc30ce08)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:871
#6  0x00005555586afa3a in DEG::DepsgraphNodeBuilder::build_object (this=0x7fffffffd950, base_index=3, object=0x7fffcc30ce08,
    linked_state=DEG::DEG_ID_LINKED_DIRECTLY, is_visible=true)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:612
#7  0x00005555586c3f11 in DEG::DepsgraphNodeBuilder::build_view_layer (this=0x7fffffffd950, scene=0x7fffe4f6f008, view_layer=0x7fffe4eb5d48,
    linked_state=DEG::DEG_ID_LINKED_DIRECTLY)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc:109
#8  0x00005555586a41aa in DEG_graph_build_from_view_layer (graph=0x7fffe334d008, bmain=0x7fffe9fed608, scene=0x7fffe4f6f008, view_layer=0x7fffe4eb5d48)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/depsgraph_build.cc:256
#9  0x00005555586a4448 in DEG_graph_relations_update (graph=0x7fffe334d008, bmain=0x7fffe9fed608, scene=0x7fffe4f6f008, view_layer=0x7fffe4eb5d48)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/depsgraph_build.cc:324
#10 0x00005555582c8d1a in BKE_scene_graph_update_tagged (depsgraph=0x7fffe334d008, bmain=0x7fffe9fed608)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/scene.c:1490
#11 0x00005555572205c8 in wm_event_do_depsgraph (C=0x7fffea058188)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:341
#12 0x00005555572206ad in wm_event_do_refresh_wm_and_depsgraph (C=0x7fffea058188)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:366
#13 0x0000555557220eed in wm_event_do_notifiers (C=0x7fffea058188)
    at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm_event_system.c:524
#14 0x000055555721c76b in WM_main (C=0x7fffea058188) at /home/zed/programmering/blender_master/blender/source/blender/windowmanager/intern/wm.c:421
#15 0x0000555557216e94 in main (argc=1, argv=0x7fffffffdd28) at /home/zed/programmering/blender_master/blender/source/creator/creator.c:505

@Bastien Montagne (mont29) feel free to reassign if this is not for you.

Think this is really a depsgraph issue here. The assert we get even when just opening given file, without any linking, so looks like DEG does not like scenes being used in drivers?

And the crash, as far as I understand, happens because said scene is indirectly linked by the driver, and get_original_view_layer utils then fails and return NULL (I guess it should be handled same as 'set' background scene case…).

Anyway, not my area of expertise, afraid this one is for @Sergey Sharybin (sergey).

I already reported T61014 which is closely related [guess this is a duplicate -- except for the linking crash]

Crashes also after referencing a scene property from another scene (in a single file):