Crash when opening a blend file that links a collection which also links a collection #85289

Closed
opened 2021-02-01 18:25:14 +01:00 by Paul Golter · 19 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef4177
Worked: (newest version of Blender that worked as expected)

Short description of error
Blender crashes when opening a blend file that links a collection which also links a collection.

Exact steps for others to reproduce the error
In the appendix you find 3 blend files:

  • tree.blend
  • beach.blend
  • shot.blend
  • The external pathes are all relative and should be openable without a problem, as long as all 3 blend files are in the same folder.

  1. Try opening tree.blend. It contains just a collection called "tree" with some simple geo in it.
  2. Try opening beach.blend. It contains a collection called "beach". In this collection there is the "tree" collection linked in from tree.blend + beach_geo object.
  3. Try opening shot.blend. It should contain a collection called "shot". In this collection there is the "beach" collection linked in from the beach.blend file. It crashes when trying to open it.

To reproduce this behavior with new blend files:
I will use some placeholder names for easier reading:

  1. Create tree.blend file > create collection "tree" > add geo in "tree" collection.
  2. Create beach.blend file > create collection "beach" > link in "tree" collection from tree.blend (It does not matter if you turn off "instance collections" or "instance object data" but in the provided blend files i turned this settings off)
  3. Create shot.blend file > create collection "shot" > link "beach" collection from beach.blend
  4. Save shot.blend file
  5. Close Blender
  6. Open Blender
  7. Open shot.blend > crash

Side note: Blender also crashes when you have a new empty blend file and try to link the "shot" collection from shot.blend.

tree.blend
shot.blend
beach.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `5be9ef4177` Worked: (newest version of Blender that worked as expected) **Short description of error** Blender crashes when opening a blend file that links a collection which also links a collection. **Exact steps for others to reproduce the error** In the appendix you find 3 blend files: - tree.blend - beach.blend - shot.blend - >The external pathes are all relative and should be openable without a problem, as long as all 3 blend files are in the same folder. 1. Try opening tree.blend. It contains just a collection called "tree" with some simple geo in it. 2. Try opening beach.blend. It contains a collection called "beach". In this collection there is the "tree" collection linked in from tree.blend + beach_geo object. 3. Try opening shot.blend. It should contain a collection called "shot". In this collection there is the "beach" collection linked in from the beach.blend file. It crashes when trying to open it. To reproduce this behavior with new blend files: I will use some placeholder names for easier reading: 1. Create tree.blend file > create collection "tree" > add geo in "tree" collection. 2. Create beach.blend file > create collection "beach" > link in "tree" collection from tree.blend (It does not matter if you turn off "instance collections" or "instance object data" but in the provided blend files i turned this settings off) 3. Create shot.blend file > create collection "shot" > link "beach" collection from beach.blend 4. Save shot.blend file 5. Close Blender 6. Open Blender 7. Open shot.blend > crash Side note: Blender also crashes when you have a new empty blend file and try to link the "shot" collection from shot.blend. [tree.blend](https://archive.blender.org/developer/F9607948/tree.blend) [shot.blend](https://archive.blender.org/developer/F9607947/shot.blend) [beach.blend](https://archive.blender.org/developer/F9607946/beach.blend)
Author

Added subscriber: @pullpullson

Added subscriber: @pullpullson

Added subscriber: @Harvester

Added subscriber: @Harvester

Here on

Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef4177

after a little bit of testing, the issue seems located in the beach collection when linked into another file, even a fresh new one. Simulating such a simple scenario with new files, a cube and a plane, the nested linking appears to work, even when linking in the tree collection. The beach collection, instead, can be linked, but saving and reopening the new shot file let's Blender crash. You might try to rebuild that collection/set in a new file, and link that new one inside your shot file.

Here on Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 Blender Version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `5be9ef4177` after a little bit of testing, the issue seems located in the beach collection when linked into another file, even a fresh new one. Simulating such a simple scenario with new files, a cube and a plane, the nested linking appears to work, even when linking in the tree collection. The beach collection, instead, can be linked, but saving and reopening the new shot file let's Blender crash. You might try to rebuild that collection/set in a new file, and link that new one inside your shot file.
Author

Hey Ricardo,

thanks for your answer. I tested the same thing again with just a cube and a plane and I get the same result:
I made a quick screen record to show you my exact process to create the crash. You find it in the appendix.

What is interesting:

  • Without closing the instance of blender the shot_02 file can be opened
  • Quiting Blender and then trying to open shot_02 leads to a crash

I also supplied another 3 blend files:

  • stone.blend
  • forest.blend
  • shot_02.blend

2021-02-02_09-34-26_blender_link_bug.mp4

forest.blend

stone.blend

shot_02.blend

Hey Ricardo, thanks for your answer. I tested the same thing again with just a cube and a plane and I get the same result: I made a quick screen record to show you my exact process to create the crash. You find it in the appendix. What is interesting: - Without closing the instance of blender the shot_02 file can be opened - Quiting Blender and then trying to open shot_02 leads to a crash I also supplied another 3 blend files: - stone.blend - forest.blend - shot_02.blend [2021-02-02_09-34-26_blender_link_bug.mp4](https://archive.blender.org/developer/F9608781/2021-02-02_09-34-26_blender_link_bug.mp4) [forest.blend](https://archive.blender.org/developer/F9608790/forest.blend) [stone.blend](https://archive.blender.org/developer/F9608789/stone.blend) [shot_02.blend](https://archive.blender.org/developer/F9608788/shot_02.blend)
Author

I found another strange behavior:

When trying to open shot_02.blend blender crashes.
But when I do the following BEFORE opening shot_02.blend I can open it:

  • open stone.blend
  • save stone.blend
  • open shot_02.blend without quitting blender

When I then close blender and open again and try to load shot_02.blend I get a crash again.

2021-02-02_09-59-56_save_and_open.mp4

I found another strange behavior: When trying to open shot_02.blend blender crashes. But when I do the following BEFORE opening shot_02.blend I can open it: - open stone.blend - save stone.blend - open shot_02.blend without quitting blender When I then close blender and open again and try to load shot_02.blend I get a crash again. [2021-02-02_09-59-56_save_and_open.mp4](https://archive.blender.org/developer/F9608810/2021-02-02_09-59-56_save_and_open.mp4)

Hi Paul, I simply verified that your issue was replicable with and without your sample files. At this point it's better to leave this into the good hands of the developers for further investigations.

Hi Paul, I simply verified that your issue was replicable with and without your sample files. At this point it's better to leave this into the good hands of the developers for further investigations.
Author

Hey Riccardo,

thanks for verifying and for handing it over to the developers! :)

Hey Riccardo, thanks for verifying and for handing it over to the developers! :)

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

In #85289#1105421, @Harvester wrote:
(...)
after a little bit of testing, the issue seems located in the beach collection when linked into another file, even a fresh new one. Simulating such a simple scenario with new files, a cube and a plane, the nested linking appears to work, even when linking in the tree collection. The beach collection, instead, can be linked, but saving and reopening the new shot file let's Blender crash. You might try to rebuild that collection/set in a new file, and link that new one inside your shot file.

This makes me suspect that the file is not simplified enough to be suitable for a bug report.
Due to the number of reports, we try to avoid confirming reports whose scenario is too time consuming for the developers to track down, we require the bug reporter to narrow down the problem.
It may be more convenient to create another report describing only the essential steps to reproduce the bug.

> In #85289#1105421, @Harvester wrote: > (...) > after a little bit of testing, the issue seems located in the beach collection when linked into another file, even a fresh new one. Simulating such a simple scenario with new files, a cube and a plane, the nested linking appears to work, even when linking in the tree collection. The beach collection, instead, can be linked, but saving and reopening the new shot file let's Blender crash. You might try to rebuild that collection/set in a new file, and link that new one inside your shot file. This makes me suspect that the file is not simplified enough to be suitable for a bug report. Due to the number of reports, we try to avoid confirming reports whose scenario is too time consuming for the developers to track down, we require the bug reporter to narrow down the problem. It may be more convenient to create another report describing only the essential steps to reproduce the bug.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs User Info' to: 'Confirmed'
Member

I can confirm a crash.

There seems to be a fix in blender-2.93.0-4604350eefab from todays buildbot https://builder.blender.org/download/
blender-2.92.0rc-linux64 still crashes though.

Will try to see what fixed this (and if that commit can still go into 2.92)

I can confirm a crash. There seems to be a fix in `blender-2.93.0-4604350eefab` from todays buildbot https://builder.blender.org/download/ `blender-2.92.0rc-linux64` still crashes though. Will try to see what fixed this (and if that commit can still go into 2.92)
Member

Apparently this was fixed by 302625eb37 in 2.93

Apparently this was fixed by 302625eb37 in 2.93
Author

Hey Philip, thanks for confirming! Good to see that there is a fix for this in 2.93. I will test it next week. Would be great to have a patch in 2.92 for this. I think 2.91 also has this issue.

Hey Philip, thanks for confirming! Good to see that there is a fix for this in 2.93. I will test it next week. Would be great to have a patch in 2.92 for this. I think 2.91 also has this issue.
Author

I can confirm.
While I can't open the shot.blend file I supplied in this report with:

  • 2.92.0 Release Candidate, branch: master, commit date: 2021-02-19 18:02, hash: b1142858d4
  • 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: 5be9ef4177

with 2.93.0 Alpha, branch: master, commit date: 2021-02-20 05:19, hash: 37e6a1995a it works without a problem.

I can confirm. While I can't open the `shot.blend` file I supplied in this report with: - 2.92.0 Release Candidate, branch: master, commit date: 2021-02-19 18:02, hash: `b1142858d4` - 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `5be9ef4177` with 2.93.0 Alpha, branch: master, commit date: 2021-02-20 05:19, hash: `37e6a1995a` it works without a problem.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Philipp Oeser self-assigned this 2021-02-22 14:14:17 +01:00
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

So, since this is fixed in 2.93, I will close this.

Fix will not be in 2.92 though, see comment in 302625eb37:

In 302625eb37#295844, @mont29 wrote:
Uuuuh... That's way too late for 2.92 am afraid.

Decided not to backport it when I committed it because it already looked too dangerous to me at that point, actually.

So, since this is fixed in 2.93, I will close this. Fix will not be in 2.92 though, see comment in 302625eb37: > In 302625eb37#295844, @mont29 wrote: > Uuuuh... That's way too late for 2.92 am afraid. > > Decided not to backport it when I committed it because it already looked too dangerous to me at that point, actually.
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
4 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#85289
No description provided.