Crash when using linked scene as Background Scene #62124

Closed
opened 2019-03-02 16:10:33 +01:00 by Sebastian Koenig · 4 comments

System Information
Operating system: elementaryOS 0.4.1
Graphics card: GTX 1080

Blender Version
Broken: 2.80, cf75aea218

Worked: 2.79

Short description of error
When using a scene linked from another file as Background Scene, Blender crashes.

Exact steps for others to reproduce the error
Extract the two Blendfiles from this archive:
scene_link_test.zip
Open "scene_link_test.blend".
I have already linked in the scene "source_scene" from source_scene.blend.
If I try to choose "source_scene" as Background Scene, Blender crashes.

**System Information** Operating system: elementaryOS 0.4.1 Graphics card: GTX 1080 **Blender Version** Broken: 2.80, cf75aea21857 Worked: 2.79 **Short description of error** When using a scene linked from another file as Background Scene, Blender crashes. **Exact steps for others to reproduce the error** Extract the two Blendfiles from this archive: [scene_link_test.zip](https://archive.blender.org/developer/F6746082/scene_link_test.zip) Open "scene_link_test.blend". I have already linked in the scene "source_scene" from source_scene.blend. If I try to choose "source_scene" as Background Scene, Blender crashes.
Author
Member

Added subscriber: @sebastian_k

Added subscriber: @sebastian_k

Added subscriber: @capnm

Added subscriber: @capnm

The background scene handling seems to be generally broken, here it crashes in a single file:

  • load factory settings
  • create a new "Scene.001"
  • set the first "Scene" as background scene of "Scene.001"
  • crash

f67e81e295

Thread 1 "blender8debug" received signal SIGSEGV, Segmentation fault.
0x0000555558ed5985 in DEG::(anonymous namespace)::view_layer_update_orig_base_pointers (view_layer_orig=0x7fffa936c088, 
    view_layer_eval=0x7fffa936dd48) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:405
405			base_orig = base_orig->next;
(gdb) l
400	{
401		Base *base_orig =
402		        reinterpret_cast<Base *>(view_layer_orig->object_bases.first);
403		LISTBASE_FOREACH (Base *, base_eval, &view_layer_eval->object_bases) {
404			base_eval->base_orig = base_orig;
=>405			base_orig = base_orig->next;
406		}
407	}
408	
409	void scene_setup_view_layers_before_remap(const Depsgraph *depsgraph,
(gdb) bt
#0  0x0000555558ed5985 in DEG::(anonymous namespace)::view_layer_update_orig_base_pointers(ViewLayer*, ViewLayer*) (view_layer_orig=0x7fffa936c088, view_layer_eval=0x7fffa936dd48)
    at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:405
- 1  0x0000555558ed5a03 in DEG::(anonymous namespace)::scene_setup_view_layers_after_remap(DEG::Depsgraph const*, Scene*) (depsgraph=0x7fffab622508, scene_cow=0x7fffab2ee008) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:424
- 2  0x0000555558ed6110 in DEG::(anonymous namespace)::update_id_after_copy(DEG::Depsgraph const*, ID const*, ID*) (depsgraph=0x7fffab622508, id_orig=0x7fffab580008, id_cow=0x7fffab2ee008)
    at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:673
#3  0x0000555558ed6393 in DEG::deg_expand_copy_on_write_datablock(DEG::Depsgraph const*, DEG::IDNode const*, DEG::DepsgraphNodeBuilder*, bool) (depsgraph=0x7fffab622508, id_node=0x7fffccfa1d88, node_builder=0x0, create_placeholders=false)
    at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:794
- 4  0x0000555558ed6a36 in DEG::deg_update_copy_on_write_datablock(DEG::Depsgraph const*, DEG::IDNode const*) (depsgraph=0x7fffab622508, id_node=0x7fffccfa1d88) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:976
- 5  0x0000555558ed6e3f in DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDNode const*) (graph=0x7fffab622508, id_node=0x7fffccfa1d88)
    at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1126
#6  0x0000555558ec0f47 in std::__invoke_impl<void, void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*, DEG::IDNode*&>(std::__invoke_other, void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*&&, DEG::IDNode*&) (__f=
    @0x7fffb6eba550: 0x555558ed6dd2 <DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDNode const*)>, __args#0=@0x7fffffffd760: 0x7fffab622508, __args#1=@0x7fffb6eba558: 0x7fffccfa1d88) at /usr/include/c++/7/bits/invoke.h:60
#7  0x0000555558ebf752 in std::__invoke<void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*, DEG::IDNode*&>(void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*&&, DEG::IDNode*&) (__fn=
    @0x7fffb6eba550: 0x555558ed6dd2 <DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDNode const*)>, __args#0=@0x7fffffffd760: 0x7fffab622508, __args#1=@0x7fffb6eba558: 0x7fffccfa1d88) at /usr/include/c++/7/bits/invoke.h:95
- 8  0x0000555558ebdfc6 in std::_Bind<void (*(std::_Placeholder<1>, DEG::IDNode*))(Depsgraph*, DEG::IDNode const*)>::__call<void, Depsgraph*&&, 0ul, 1ul>(std::tuple<Depsgraph*&&>&&, std::_Index_tuple<0ul, 1ul>) (this=0x7fffb6eba550, __args=...) at /usr/include/c++/7/functional:467
- 9  0x0000555558ebb9c6 in std::_Bind<void (*(std::_Placeholder<1>, DEG::IDNode*))(Depsgraph*, DEG::IDNode const*)>::operator()<Depsgraph*, void>(Depsgraph*&&) (this=0x7fffb6eba550, __args#0=@0x7fffffffd760: 0x7fffab622508) at /usr/include/c++/7/functional:551
#10 0x0000555558eb81fe in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, DEG::IDNode*))(Depsgraph*, DEG::IDNode const*)> >::_M_invoke(std::_Any_data const&, Depsgraph*&&) (__functor=..., __args#0=@0x7fffffffd760: 0x7fffab622508)
    at /usr/include/c++/7/bits/std_function.h:316
#11 0x0000555558ed4bcf in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const (this=0x7fffaaf67300, __args#0=0x7fffab622508)
    at /usr/include/c++/7/bits/std_function.h:706
#12 0x0000555558ed41ad in DEG::deg_task_run_func(TaskPool*, void*, int) (pool=0x7fffab6fd008, taskdata=0x7fffaaf67288, thread_id=0)
    at source/blender/depsgraph/intern/eval/deg_eval.cc:88
#13 0x0000555558e921dc in BLI_task_pool_work_and_wait (pool=0x7fffab6fd008)
    at source/blender/blenlib/intern/task.c:897
#14 0x0000555558e924d5 in BLI_task_pool_work_wait_and_reset (pool=0x7fffab6fd008)
    at source/blender/blenlib/intern/task.c:925
#15 0x0000555558ed4adf in DEG::deg_evaluate_on_refresh(DEG::Depsgraph*) (graph=0x7fffab622508)
    at source/blender/depsgraph/intern/eval/deg_eval.cc:317
#16 0x0000555558ea78f7 in DEG_evaluate_on_refresh(Depsgraph*) (graph=0x7fffab622508)
    at source/blender/depsgraph/intern/depsgraph_eval.cc:63
#17 0x0000555558ac6080 in BKE_scene_graph_update_tagged (depsgraph=0x7fffab622508, bmain=0x7fffab3e3208)
    at source/blender/blenkernel/intern/scene.c:1500
#18 0x0000555557a167a3 in wm_event_do_depsgraph (C=0x7fffcf06d488)
    at source/blender/windowmanager/intern/wm_event_system.c:341
#19 0x0000555557a16888 in wm_event_do_refresh_wm_and_depsgraph (C=0x7fffcf06d488)
    at source/blender/windowmanager/intern/wm_event_system.c:366
#20 0x0000555557a170c8 in wm_event_do_notifiers (C=0x7fffcf06d488)
    at source/blender/windowmanager/intern/wm_event_system.c:524
- 21 0x0000555557a12939 in WM_main (C=0x7fffcf06d488) at source/blender/windowmanager/intern/wm.c:421
- 22 0x0000555557a0d059 in main (argc=1, argv=0x7fffffffdc48) at source/creator/creator.c:505
The background scene handling seems to be generally broken, here it crashes in a single file: * load factory settings * create a new "Scene.001" * set the first "Scene" as background scene of "Scene.001" * crash f67e81e295 ``` Thread 1 "blender8debug" received signal SIGSEGV, Segmentation fault. 0x0000555558ed5985 in DEG::(anonymous namespace)::view_layer_update_orig_base_pointers (view_layer_orig=0x7fffa936c088, view_layer_eval=0x7fffa936dd48) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:405 405 base_orig = base_orig->next; (gdb) l 400 { 401 Base *base_orig = 402 reinterpret_cast<Base *>(view_layer_orig->object_bases.first); 403 LISTBASE_FOREACH (Base *, base_eval, &view_layer_eval->object_bases) { 404 base_eval->base_orig = base_orig; =>405 base_orig = base_orig->next; 406 } 407 } 408 409 void scene_setup_view_layers_before_remap(const Depsgraph *depsgraph, (gdb) bt #0 0x0000555558ed5985 in DEG::(anonymous namespace)::view_layer_update_orig_base_pointers(ViewLayer*, ViewLayer*) (view_layer_orig=0x7fffa936c088, view_layer_eval=0x7fffa936dd48) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:405 - 1 0x0000555558ed5a03 in DEG::(anonymous namespace)::scene_setup_view_layers_after_remap(DEG::Depsgraph const*, Scene*) (depsgraph=0x7fffab622508, scene_cow=0x7fffab2ee008) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:424 - 2 0x0000555558ed6110 in DEG::(anonymous namespace)::update_id_after_copy(DEG::Depsgraph const*, ID const*, ID*) (depsgraph=0x7fffab622508, id_orig=0x7fffab580008, id_cow=0x7fffab2ee008) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:673 #3 0x0000555558ed6393 in DEG::deg_expand_copy_on_write_datablock(DEG::Depsgraph const*, DEG::IDNode const*, DEG::DepsgraphNodeBuilder*, bool) (depsgraph=0x7fffab622508, id_node=0x7fffccfa1d88, node_builder=0x0, create_placeholders=false) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:794 - 4 0x0000555558ed6a36 in DEG::deg_update_copy_on_write_datablock(DEG::Depsgraph const*, DEG::IDNode const*) (depsgraph=0x7fffab622508, id_node=0x7fffccfa1d88) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:976 - 5 0x0000555558ed6e3f in DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDNode const*) (graph=0x7fffab622508, id_node=0x7fffccfa1d88) at source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1126 #6 0x0000555558ec0f47 in std::__invoke_impl<void, void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*, DEG::IDNode*&>(std::__invoke_other, void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*&&, DEG::IDNode*&) (__f= @0x7fffb6eba550: 0x555558ed6dd2 <DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDNode const*)>, __args#0=@0x7fffffffd760: 0x7fffab622508, __args#1=@0x7fffb6eba558: 0x7fffccfa1d88) at /usr/include/c++/7/bits/invoke.h:60 #7 0x0000555558ebf752 in std::__invoke<void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*, DEG::IDNode*&>(void (*&)(Depsgraph*, DEG::IDNode const*), Depsgraph*&&, DEG::IDNode*&) (__fn= @0x7fffb6eba550: 0x555558ed6dd2 <DEG::deg_evaluate_copy_on_write(Depsgraph*, DEG::IDNode const*)>, __args#0=@0x7fffffffd760: 0x7fffab622508, __args#1=@0x7fffb6eba558: 0x7fffccfa1d88) at /usr/include/c++/7/bits/invoke.h:95 - 8 0x0000555558ebdfc6 in std::_Bind<void (*(std::_Placeholder<1>, DEG::IDNode*))(Depsgraph*, DEG::IDNode const*)>::__call<void, Depsgraph*&&, 0ul, 1ul>(std::tuple<Depsgraph*&&>&&, std::_Index_tuple<0ul, 1ul>) (this=0x7fffb6eba550, __args=...) at /usr/include/c++/7/functional:467 - 9 0x0000555558ebb9c6 in std::_Bind<void (*(std::_Placeholder<1>, DEG::IDNode*))(Depsgraph*, DEG::IDNode const*)>::operator()<Depsgraph*, void>(Depsgraph*&&) (this=0x7fffb6eba550, __args#0=@0x7fffffffd760: 0x7fffab622508) at /usr/include/c++/7/functional:551 #10 0x0000555558eb81fe in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, DEG::IDNode*))(Depsgraph*, DEG::IDNode const*)> >::_M_invoke(std::_Any_data const&, Depsgraph*&&) (__functor=..., __args#0=@0x7fffffffd760: 0x7fffab622508) at /usr/include/c++/7/bits/std_function.h:316 #11 0x0000555558ed4bcf in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const (this=0x7fffaaf67300, __args#0=0x7fffab622508) at /usr/include/c++/7/bits/std_function.h:706 #12 0x0000555558ed41ad in DEG::deg_task_run_func(TaskPool*, void*, int) (pool=0x7fffab6fd008, taskdata=0x7fffaaf67288, thread_id=0) at source/blender/depsgraph/intern/eval/deg_eval.cc:88 #13 0x0000555558e921dc in BLI_task_pool_work_and_wait (pool=0x7fffab6fd008) at source/blender/blenlib/intern/task.c:897 #14 0x0000555558e924d5 in BLI_task_pool_work_wait_and_reset (pool=0x7fffab6fd008) at source/blender/blenlib/intern/task.c:925 #15 0x0000555558ed4adf in DEG::deg_evaluate_on_refresh(DEG::Depsgraph*) (graph=0x7fffab622508) at source/blender/depsgraph/intern/eval/deg_eval.cc:317 #16 0x0000555558ea78f7 in DEG_evaluate_on_refresh(Depsgraph*) (graph=0x7fffab622508) at source/blender/depsgraph/intern/depsgraph_eval.cc:63 #17 0x0000555558ac6080 in BKE_scene_graph_update_tagged (depsgraph=0x7fffab622508, bmain=0x7fffab3e3208) at source/blender/blenkernel/intern/scene.c:1500 #18 0x0000555557a167a3 in wm_event_do_depsgraph (C=0x7fffcf06d488) at source/blender/windowmanager/intern/wm_event_system.c:341 #19 0x0000555557a16888 in wm_event_do_refresh_wm_and_depsgraph (C=0x7fffcf06d488) at source/blender/windowmanager/intern/wm_event_system.c:366 #20 0x0000555557a170c8 in wm_event_do_notifiers (C=0x7fffcf06d488) at source/blender/windowmanager/intern/wm_event_system.c:524 - 21 0x0000555557a12939 in WM_main (C=0x7fffcf06d488) at source/blender/windowmanager/intern/wm.c:421 - 22 0x0000555557a0d059 in main (argc=1, argv=0x7fffffffdc48) at source/creator/creator.c:505 ```

Closed as duplicate of #61763

Closed as duplicate of #61763
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
Interest: X11
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
3 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#62124
No description provided.