Regression: Crash with assertion after delete scene when some 3D Views have Local Collection enabled #111970
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
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
Core
Module
Development Management
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
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#111970
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 536.19
Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-19 00:18, hash:
6d2351d26bd6
Worked: version: 3.6.0 Alpha, branch: main, commit date: 2023-04-15 01:59, hash:
b601ae87d064
Short description of error
See attached assert.
Exact steps for others to reproduce the error
Blender will crash.
Crash after delete scene.to Regression: Crash with assertion after delete sceneGit bisect points to
a16bcb6576
🤔@mont29 ^
I cannot seem to be able to reproduce any assert deleting scenes from given file, neither in main nor in current 3.6 branch?
How are you deleting scenes? using the
X
icon next to their names at the top-right part of the screen?Right, X button
note that the assert 'looks like' the viewlayer syncing code is trying to access the just-freed scenes' master collection... But I cannot imagine how that would be possible. 16bcb6576f4361 will make the
viewlayer_collection->collection
pointer be processed, even when the collection is the embedded scene's master one... but I cannot see how that would connect to the viewlayer resync code. Viewlayer is private data of a scene, so when the scene is deleted, its viewlayers are freed...hrrrrmmm.... Actually I think I know what is happening here:
BKE_lib_id_free_ex()
, the freed ID usages are remapped tonullptr
(call toBKE_libblock_relink_ex
).null
, and is therefore not the same as the scene's master collection anymore.What I cannot fathom is.... why isn't this asserting for me? o_O
Hrrrmmmm actually no, still do not understand the issue here. The Scene pointer is remapped, not its master collection's pointer...
Can someone actually reproduce this issue with current 3.6 branch build? And current main build?
(This backtrace actually exhibits some other issue with current viewlayer resync code and the local viewlayer handling btw, since the later code path, starting from
BKE_layer_collection_local_sync_all
call inBKE_main_collection_sync
, ends up callingBKE_view_layer_synced_ensure
, effectively nullifying the effects of deferred viewlayers update. ;( ).Which led to actually reproducing the issue here, one key info was missing: There must be at least one view3d in 'local' mode.
Regression: Crash with assertion after delete sceneto Regression: Crash with assertion after delete scene when some 3D Views have Local Collection enabled