Scene custom properties crash #62272

Closed
opened 2019-03-06 18:10:26 +01:00 by Armando Tello · 10 comments

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

Blender Version
Broken: 2.8 18e5540a48 (2019-03-06)
(example: 2.79b release)
(example: 2.80, edbf15d3c0, 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
    bugfile.blend
**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 [bugfile.blend](https://archive.blender.org/developer/F6773944/bugfile.blend)
Author

Added subscriber: @ArmandoTello

Added subscriber: @ArmandoTello

Added subscribers: @mont29, @ZedDB

Added subscribers: @mont29, @ZedDB
Bastien Montagne was assigned by Sebastian Parborg 2019-03-06 18:34:17 +01:00

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

@mont29 feel free to reassign if this is not for you.

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 ``` @mont29 feel free to reassign if this is not for you.
Bastien Montagne removed their assignment 2019-03-06 20:06:29 +01:00
Sergey Sharybin was assigned by Bastien Montagne 2019-03-06 20:06:29 +01:00

Added subscriber: @Sergey

Added subscriber: @Sergey

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.

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

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Added subscriber: @capnm

Added subscriber: @capnm

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

Crashes also after referencing a scene property from another scene (in a single file): ![image.png](https://archive.blender.org/developer/F6778506/image.png)
Member

Closed as duplicate of #61014

Closed as duplicate of #61014
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 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#62272
No description provided.