Background scene cause a crash in render animation #83852
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83852
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-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.55
Blender Version
Broken: version:
977bd7937a
Worked: 2.83.9
Short description of error
Background scene makes blender unstable and cause a crash in render animation
Exact steps for others to reproduce the error
Tested in different situations i had some problems.
I think assigning a background scene makes blender unstable in general.
Occasionally crashes when opening a file which has background scene.
The worst case is render animation.
Background_Scene_Crash.mp4
Reproduction steps with this file:
#83852.blend
Added subscriber: @Yashar
Added subscriber: @rjg
Changed status from 'Needs Triage' to: 'Confirmed'
I can reproduce the problem. I'm tagging this as Nodes & Physics as this seems to be a dependency graph issue by the looks of it.
Added subscriber: @JacquesLucke
My stack trace is essentially the same.
This assert fails in
BKE_object_eval_eval_base_flags
:BLI_assert(view_layer->object_bases_array != NULL);
.Added subscriber: @sentharn
I can confirm this bug is still happening in blender-3.1.0-alpha+daily.5fca280c803b and blender 3.0.
My colleague's scene, in blender 3.0, is also crashing after almost every frame of his animation, or rather at the start of the next frame, at the same exception address that I just crashed on: 0x00007FF63559F88Ein BKE_object_eval_eval_base_flags
I am trying to find out if he's using background scenes as well.
Here's my Blender 3.0 stack trace; this one actually crashed on startup for me.
#83852.crash.txt
And here's a blender-3.1.0-alpha+daily.5fca280c803b backtrace (same function name, different address of course). Also crashed on startup.
#83852.crash.txt
On both 3.0 and 3.1 I did manage to get it to start and then crash on render at least once, but I don't have the crash traces handy as the file now tends to crash on startup instead.
Can someone please edit the ticket to reflect that it is still crashing in 3.0 and 3.1 alpha?
Added subscriber: @HooglyBoogly
I'll raise the priority since this is a confirmed crash (though I couldn't seem to reproduce this myself).
Also, according the the module page, the dependency graph is a #Core module topic, rather than #nodes_physics (which makes more sense to me anyway).
FYI for people trying to repro: it may take a few tries. Sometimes changing render engine and trying again helps; sometimes it'll crash on first render; usually it crashes on file load for me. I'm on Windows 10; I'll try on a Linux box when I get access later this week.
Added subscriber: @mont29
Not sure why high priority, not all crashes are 'high'... This one has been reported since 2.90, and seems to be hard to reproduce, so this is likely a fairly niche issue.
Agreed about "high" but, it is not that hard to reproduce--it just takes multiple tries because it is inconsistent. I reproduced this in about 1 minute using the original submitter's attached file, on an Ubuntu 20.04 machine running 3.0 with a brand new configuration. So now it is reproducible on two platforms, Windows 10 and Linux, on Blender 3.0.
My exact steps to reproduce were to open the file -> go to a new project -> open the file -> go to a new project -> open the file again, then crash on open.
Sometimes it will crash immediately, sometimes it takes a few tries. (Race condition maybe? Ugh.) So don't expect it to magically happen only on the 3rd try.
Here's the crash.txt from the Linux machine. Same function+offset as on Windows 10: BKE_object_eval_eval_base_flags+0x3d
#83852.crash.txt
I mentioned that a colleague is having the same issue. I just heard back from him that he's not using the Background Scene feature, but he's crashing at the same location between frames. I'm not sure if this is something that should be tied to this bug report or not. Same crash location but potentially a different cause--a wider issue with multiple triggers?
Just in case, here's the info from his crash:
Please let me know what you recommend to help.
It took much longer with a debug build of v3.0.0 (you can see how many times I had to load the file) but here's the log along with the failing assert that is probably a symptom of the issue:
*BLI_assert failed: source/blender/blenkernel/intern/object_update.c:469, BKE_object_eval_eval_base_flags(), at 'view_layer->object_bases_array != ((void )0)'
I think this problem may be deeper than the background scene feature. The colleague I mentioned got back to me and said he was using FLIP Fluids. I know, not supported here. For the record, my bug reports in this thread were reproduced withoutit.
We discovered that https://github.com/rlguy/Blender-FLIP-Fluids/issues/566 was the cause of his crash. Digging into that bug report led me to #76422 which appears to be an access violation on the same line that is giving us grief for this bug here. This is making me think that there's some sort of race condition involved with the depsgraph despite blender/blender-addons#60094 being merged in for 2.81 (which makes FLIP more stable as per the Github bug report), and I don't think FLIP Fluids is the only thing that can cause it since we're having problems in 3.0 and 3.1 now with the file attached to this bug report here on a completely different feature.
Yes, he uses Lock Interface, although in this case he was command line rendering. He successfully rendered the project by scripting blender to start for every frame of the animation to render 1 frame.
Hopefully all these little breadcrumbs can help track down the issue; I'm about at the limit of my debugging knowledge here.