Page MenuHome

Crash after Instancing to Scene after making linked Collection local
Confirmed, NormalPublic

Description

System Information
Operating system: Linux-5.8.0-59-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: Mesa Intel(R) HD Graphics 520 (SKL GT2) Intel 4.6 (Core Profile) Mesa 20.2.6

Blender Version
Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash: rB1b8d33b18c2f
Worked: none known

Short description of error
Blender crashes after instancing a collection to the scene after making it local from being linked.

Exact steps for others to reproduce the error

  • Link a Collection into a blend file or open the attached linking.blend which has a collection linked from external.blend
  • Use the operator "ID Data" > "Make Local" on the linked collection.
  • Instance the collection to the active Scene.
  • Try to do something in the 3D Viewport.
  • Blender crashes



Also, see the attached video:

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Wed, Jul 14, 2:20 PM
Philipp Oeser (lichtwerk) claimed this task.

Can confirm, will check

One way to work around the crash is to change the instancing in Object Properties > Instancing panel (can change from Collection to Faces and back to Collection -- just selecting the same collection in the dropdown will also work)

5  _BLI_assert_abort                                BLI_assert.c            61   0x101de93e     
6  (anonymous namespace)::deg_iterator_objects_step depsgraph_query_iter.cc 365  0x4028f62      
7  DEG_iterator_objects_next                        depsgraph_query_iter.cc 430  0x40291e4      
8  DEG_iterator_objects_begin                       depsgraph_query_iter.cc 417  0x402919e      
9  DRW_draw_render_loop_ex                          draw_manager.c          1605 0x408f274      
10 DRW_draw_view                                    draw_manager.c          1522 0x408eecb      
11 view3d_draw_view                                 view3d_draw.c           1567 0x4f9b3dc      
12 view3d_main_region_draw                          view3d_draw.c           1589 0x4f9b483      
13 ED_region_do_draw                                area.c                  558  0x484fe31      
14 wm_draw_window_offscreen                         wm_draw.c               724  0x3d202b9      
15 wm_draw_window                                   wm_draw.c               864  0x3d20872      
16 wm_draw_update                                   wm_draw.c               1065 0x3d20eaa      
17 WM_main                                          wm.c                    653  0x3d1d4d5      
18 main                                             creator.c               558  0x36c8f1a

@Bastien Montagne (mont29): just some depsgraph tagging missing?
(I have tried replicating what rna_Object_dup_collection_set / rna_Object_dependency_update in id_local_fn without success though...)