Dragging a sub-collection out of a scene-linked collection into the "Scene Collection" crashes reliably #83050
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83050
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Kubuntu 20.04
Graphics card: nvidia TU106 GeForce RTX 2060 SUPER
Blender Version
Broken: 2.91 flatpak on Kubuntu
Worked: 2.82 (I guess 2.90 too)
Short description of error
Dragging a sub-collection out of a scene-linked collection into the "Scene Collection" crashes reliably.
This happens only in the original scene, not in the new scene.
Exact steps for others to reproduce the error
In the blend, only the last step.
minimal.blend
Added subscriber: @d-egg
Added subscribers: @HooglyBoogly, @rjg
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm this crash. @HooglyBoogly This seems very similar to #82439 that was supposed to be fixed by
c645da98d8
.Added subscriber: @Raimund58
Oh no.. I can reproduce this too. Should have released with a simple NULL check after that assert. Thanks for the report anyway.
Added subscriber: @Blender_Render
Added subscriber: @mont29
@HooglyBoogly are you on this? that kind of issues should be fixed sooner than later...
@mont29 Yes, sorry for the delay, I'll get to this today.
So I've discovered why this happens, it's basically because moving collections that are also in linked scenes just doesn't work properly. Or at least that's how it seems, maybe that's expected.
Here's a short summary. The second scene, "Scene.001", was created with the "Linked Copy" option:
The following patch just removes the assert and the NULL de-referencing in this situation. In the scope of this situation I think it's the right thing to do, the whole behavior of moving collections when there are linked scenes is far in "undefined behavior" territory for me.
Actually, when I wrote that last comment I forgot about they key information that this only happens when moving to the scene collection, moving the collection anywhere else works fine. In this case I think it actually makes sense to look into fixing that instead.
Maybe that patch makes sense for a possible 2.91 corrective release though, since it may be simpler.
Please keep 'linked'/'link' terminology for actually linked data from libraries. 'Linked copy' is a bit unfortunate naming we inherit from history, but resulting data is not linked at all, it's just sharing some data-blocks between origin and copy items (scene or any other ID), that's all.
Behavior described in pictures looks correct and expected to me, since even when two scenes share their sub-collections, their main one (the master collection) is always local to each scene and never shared.
Can you submit your patch as a proper review, so that we can comment on it?
Hmm, thanks for the explanation. I wonder what a better name for "Linked Copy" would be.
This issue was referenced by
47159f1609
This issue was referenced by
97651f428b
Changed status from 'Confirmed' to: 'Resolved'