Crash when using a linked background scene and a scene camera from another (local) scene #97262
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#97262
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: Windows-10-10.0.22593-SP0 64 Bits (actually Windows 11, but Blender auto-populated with Windows 10 info for some reason)
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.20
Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash:
cc66d1020c
Short description of error
Blender crashes when using a linked scene (see attached bg.blend) as a background scene in scene 1, then creating a scene 2 that uses scene 1 as background and the scene camera from scene 1 without linking the camera into scene 2.
Here is the crash log: fg.crash.txt
This is hard to explain the setup, so I will try to use screenshots, and attach minimal .blend files that illustrate the problem.
"BG Scene"
is saved inbg.blend
:fg.blend
, everything has been removed except the camera and then the scene frombg.blend
is linked in and set as the background scene for local"Scene 1"
:fg.blend
, called"Scene 2"
and it is set to use the Camera from Scene 1 (which is not linked into Scene 2) and also to use Scene 1 as it's background scene:Saving and reopening
fg.blend
from this point on will produce a crash. If I repetitively attempt to open the file, eventually it'll open correctly maybe once after every 5 or 6 crashes.Additionally, if I link the Camera from Scene 1 into Scene 2, the crash goes away:
Exact steps for others to reproduce the error
bg.blend
fg.blend
Added subscriber: @Luke.Coop
Added subscribers: @lichtwerk, @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the report. I can reproduce crash.
@lichtwerk hi, which project should be tagged here? #dependency_graph or #core ?
Added subscribers: @Sergey, @dr.sybren, @mont29
It should also most definitely be tagged as depsgraph issue...
I am not sure this setup should be allowed tbh (setting a scene to use a camera object that is not instanced in that scene). But if we want to support this, I guess depsgraph needs to be updated to properly deal with dependencies (would bet the crash is caused by the fact that current scene and its camera get evaluated before/in parallel with evaluation of the background scene?). Think this is something for @dr.sybren or @Sergey to check?
This issue was referenced by
31b2b84b3c
Changed status from 'Confirmed' to: 'Resolved'