Crash when issuing an undo operation immediately after linking a collection when an outliner's display mode is set to "Blender File" #72887

Closed
opened 2020-01-03 19:07:04 +01:00 by Rey Leonard M. Amorato · 17 comments

System Information
Operating system: Linux-5.3.0-26-generic-x86_64-with-Ubuntu-19.10-eoan 64 Bits
Graphics card: AMD Radeon RX 5700 XT (NAVI10, DRM 3.33.0, 5.3.0-26-generic, LLVM 9.0.0) X.Org 4.5 (Core Profile) Mesa 19.2.1

Blender Version
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-03 10:02, hash: 9b74e648c5
Worked: Never

Short description of error
Blender crashes when issuing an undo operation immediately after linking a collection when an Outliner's display mode set to Blender File
It doesn't matter how many Outliners are open, as long as one is set to Blender File.
This only happens when linking, not appending. No other data blocks causes the crash except collections.

Log files:
blender.crash.txt
terminal-output.txt

Exact steps for others to reproduce the error
Apparently the issue occurs only if the linked collection also has linked stuff? In the test case, the collection to be linked has linked materials.
Blender does not crash when linking standalone collections.

Download these files:
TEST.blend
1.blend
2.blend

  • Open TEST.blend
  • Link a collection from 2.blend (2.blend has an object linked from 1.blend; now the Outliner has 2 linked files)

Undo the operation (Ctrl+Z)

**System Information** Operating system: Linux-5.3.0-26-generic-x86_64-with-Ubuntu-19.10-eoan 64 Bits Graphics card: AMD Radeon RX 5700 XT (NAVI10, DRM 3.33.0, 5.3.0-26-generic, LLVM 9.0.0) X.Org 4.5 (Core Profile) Mesa 19.2.1 **Blender Version** Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-03 10:02, hash: `9b74e648c5` Worked: Never **Short description of error** Blender crashes when issuing an undo operation immediately after linking a collection when an Outliner's display mode set to *Blender File* It doesn't matter how many Outliners are open, as long as one is set to *Blender File*. This only happens when linking, not appending. No other data blocks causes the crash except collections. Log files: [blender.crash.txt](https://archive.blender.org/developer/F8258585/blender.crash.txt) [terminal-output.txt](https://archive.blender.org/developer/F8258586/terminal-output.txt) **Exact steps for others to reproduce the error** Apparently the issue occurs only if the linked collection also has linked stuff? In the test case, the collection to be linked has linked materials. Blender does not crash when linking standalone collections. Download these files: [TEST.blend](https://archive.blender.org/developer/F8258608/TEST.blend) [1.blend](https://archive.blender.org/developer/F8258609/1.blend) [2.blend](https://archive.blender.org/developer/F8258610/2.blend) - Open TEST.blend - Link a collection from 2.blend (2.blend has an object linked from 1.blend; now the Outliner has 2 linked files) # Undo the operation (Ctrl+Z)

Added subscriber: @RL

Added subscriber: @RL

Added subscriber: @ronsn

Added subscriber: @ronsn

I can not reproduce this issue.

–––––––––––––––––––––––––

System Information
Operating system: Linux-5.0.0-37-generic-x86_64-with-debian-buster-sid 64 Bits (Ubuntu 18.04)
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21

Blender Version
version: 2.82 (sub 6), branch: master, commit date: 2020-01-03 10:02, hash: 9b74e648c5

I can not reproduce this issue. ––––––––––––––––––––––––– **System Information** Operating system: Linux-5.0.0-37-generic-x86_64-with-debian-buster-sid 64 Bits (Ubuntu 18.04) Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21 **Blender Version** version: 2.82 (sub 6), branch: master, commit date: 2020-01-03 10:02, hash: `9b74e648c5`

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I cannot reproduce this on Windows with the latest master either. Is there anything special about the collection you're linking?

I cannot reproduce this on Windows with the latest master either. Is there anything special about the collection you're linking?

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added more info; the collection to be linked also has linked materials.
Screenshot from 2020-01-04 03-37-27.png

Added more info; the collection to be linked also has linked materials. ![Screenshot from 2020-01-04 03-37-27.png](https://archive.blender.org/developer/F8258596/Screenshot_from_2020-01-04_03-37-27.png)

Okay, I can confirm that issue, that Blender crashes if you link something from a file where also something is linked in!

Okay, I can confirm that issue, that Blender crashes if you link something from a file where also something is linked in!

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

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

This issue also occurs in version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449

@rjg: This task might have a High priority, isn't it?

This issue also occurs in version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` @rjg: This task might have a `High` priority, isn't it?

I can confirm this as well. Since this bug is crashing Blender, I'm setting the priority to high.

The tree elements of the outliner contain invalid pointers.

BLI_addtail(ListBase * listbase, void * vlink) Line 119	C
outliner_add_element(SpaceOutliner * soops, ListBase * lb, void * idv, TreeElement * parent, short type, short index) Line 796	C
outliner_add_library_contents(Main * mainvar, SpaceOutliner * soops, ListBase * lb, Library * lib) Line 1282	C
outliner_build_tree(Main * mainvar, Scene * scene, ViewLayer * view_layer, SpaceOutliner * soops, ARegion * ar) Line 2329	C
draw_outliner(const bContext * C) Line 3635	C
outliner_main_region_draw(const bContext * C, ARegion * ar) Line 96	C
ED_region_do_draw(bContext * C, ARegion * ar) Line 539	C
wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 628	C
wm_draw_window(bContext * C, wmWindow * win) Line 766	C
wm_draw_update(bContext * C) Line 946	C
WM_main(bContext * C) Line 424	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C
I can confirm this as well. Since this bug is crashing Blender, I'm setting the priority to high. The tree elements of the outliner contain invalid pointers. ``` BLI_addtail(ListBase * listbase, void * vlink) Line 119 C outliner_add_element(SpaceOutliner * soops, ListBase * lb, void * idv, TreeElement * parent, short type, short index) Line 796 C outliner_add_library_contents(Main * mainvar, SpaceOutliner * soops, ListBase * lb, Library * lib) Line 1282 C outliner_build_tree(Main * mainvar, Scene * scene, ViewLayer * view_layer, SpaceOutliner * soops, ARegion * ar) Line 2329 C draw_outliner(const bContext * C) Line 3635 C outliner_main_region_draw(const bContext * C, ARegion * ar) Line 96 C ED_region_do_draw(bContext * C, ARegion * ar) Line 539 C wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 628 C wm_draw_window(bContext * C, wmWindow * win) Line 766 C wm_draw_update(bContext * C) Line 946 C WM_main(bContext * C) Line 424 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 520 C ```
Contributor

Added subscriber: @dupoxy

Added subscriber: @dupoxy

Added subscriber: @mont29

Added subscriber: @mont29
Bastien Montagne self-assigned this 2020-01-16 12:01:32 +01:00

This actually exhibits two issues:

  • Outliner crash (looks like it does not like the situation generated by undo in that case).
  • Undo code keeps reference to unused libraries, and even unused indirectly linked datablocks.

Will try to fix the crash in outliner first, then we'll see about cleaning up again that black dark magic of library handling in undos…

This actually exhibits two issues: - Outliner crash (looks like it does not like the situation generated by undo in that case). - Undo code keeps reference to unused libraries, and even unused indirectly linked datablocks. Will try to fix the crash in outliner first, then we'll see about cleaning up again that black dark magic of library handling in undos…

This issue was referenced by d74f9c4b7b

This issue was referenced by d74f9c4b7b4f2b9b72462f908bdd7e251a42f478

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
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#72887
No description provided.