Page MenuHome

Crash when using linked scene as Background Scene
Closed, DuplicatePublic

Description

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:


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.

Details

Type
Bug

Event Timeline

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

rBf67e81e295ac7da6857edc441e0ba582cfcd6424

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