Crash after Instancing to Scene after making linked Collection local #89835

Closed
opened 2021-07-13 16:38:50 +02:00 by Jens · 12 comments

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: 1b8d33b18c
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

linking.blend
external.blend
linking.crash.txt

Also, see the attached video:
linking-crash-2021-07-12_21.17.08.mp4

**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: `1b8d33b18c` 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 [linking.blend](https://archive.blender.org/developer/F10223284/linking.blend) [external.blend](https://archive.blender.org/developer/F10223286/external.blend) [linking.crash.txt](https://archive.blender.org/developer/F10223287/linking.crash.txt) Also, see the attached video: [linking-crash-2021-07-12_21.17.08.mp4](https://archive.blender.org/developer/F10223283/linking-crash-2021-07-12_21.17.08.mp4)
Author

Added subscriber: @Jens.Ne

Added subscriber: @Jens.Ne

#90214 was marked as duplicate of this issue

#90214 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2021-07-14 14:20:20 +02:00
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm, will check

Can confirm, will check
Philipp Oeser removed their assignment 2021-07-14 15:10:45 +02:00
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

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  

@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...)

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 ``` @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...)
Member

Added subscribers: @JoseConseco, @PratikPB2123

Added subscribers: @JoseConseco, @PratikPB2123

This issue was referenced by bca66a2a71

This issue was referenced by bca66a2a71e8a1fb32f05f544516d3fcb699fe00

This issue was referenced by 45efd0b6a1

This issue was referenced by 45efd0b6a15424a2d9a6ea1591d2b4504495c7cf

This issue was referenced by 03e2f11d48

This issue was referenced by 03e2f11d48dc4e7bb8124c4c4be3403aea56e0c8

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Bastien Montagne self-assigned this 2021-08-05 11:32:10 +02:00
Thomas Dinges added this to the 3.0 milestone 2023-02-08 15:59:06 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
5 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#89835
No description provided.