Blender 3.0 consistently crashes when RSS nears 5GiB on Linux (easy to trigger with video playback) #94615
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#94615
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: Ubuntu 20.04.3 LTS
Graphics card: GeForce RTX 2060
Blender Version
Broken: 3.0.0,
f1cca30557
, master, 2021-12-02Worked: 2.93.7,
a5b7f9dc90
, master, 2021-12-14Note: I also downloaded the December 29th 3.0.0 daily build from https://builder.blender.org/download/daily/ but it has the same hash as the official release, the only difference seems to be the build date:
Short description of error
Any action that pushes Blender's RSS near the 4.7GiB mark consistently causes Blender to crash on my very generic Ubuntu 20.04.4 LTS system (with all
apt
updates applied and the latest 470.86 proprietary Nvidia driver version).E.g. if I play a video file, I can watch the RSS gradually grow (in
top
orhtop
) as the frame count rises and then as it reaches around 4.7GiB it crashes.No such issue is seen if I switch back to a 2.93 version of Blender and do exactly the same thing.
Exact steps for others to reproduce the error
For a given video and a freshly opened copy of Blender, the frame at which it crashes, on playback, is entirely consistent.
E.g. for the 4K
Footage.mp4
file here (this is just footage that accompanied this Blender Daily video on YouTube), I can consistently play from frame 1 to frame 129 (using left-arrow to step frame-by-frame as I approach 129) and then Blender crashes as I step onto frame 130.The frame I can reach varies depending on the file used, e.g. I can get much further in a typical 1080p file. But if I watch what's happening with
htop
then the failure always seems to occur as the RSS goes just a little above 4700MiB.E.g. here you can see that Blender's RSS is 580MiB before I started playback:
{F12787266, size=full}
By frame 129, RSS has grown to 4703MiB:
{F12787272, size=full}
Stepping onto the next frame caused it to crash (and it consistently crashes on just that frame). As you can see from the screenshots, the system has plenty of free memory and is not heavily loaded.
If I run Blender with
strace
then the last few lines I see are:The full
strace
output is here: strace-output.txtThe
blender.crash.txt
is here: blender.crash.txtExact steps:
Footage.mp4
file linked to above.I can reproduce this with any reasonably long video clip - the frame at which Blender crashes depends on the video (4K videos blow up much earlier than 1080p videos) but the frame at which it crashes is consistent for any given video, i.e. I can get it to crash repeatedly at exactly the same point.
Added subscriber: @GeorgeHawkins
I just tried the latest 3.1 alpha for Linux - blender-3.1.0-alpha+master.ea8d749587dd-linux.x86_64-release - and I no longer see this issue. So, I guess it has probably already been covered by a previous bug report.
Hopefully, whatever the underlying fix is, it will soon appear in the next stable version, i.e. 3.0.1. As noted in my original bug report it is not fixed in the latest 3.0.0 daily build (however, this daily seems to have exactly the same hash as the Dec 2nd 3.0.0 stable release, i.e. it's got no additional commits over the official 3.0.0 release).
Update: I spoke too soon, see next comment.
Interesting - neither 2.93.7 and 3.1.0-alpha+master.ea8d749587dd crash on playing back
Footage.mp4
but they both hang on the frame where 3.0.0 crashes if I try to track -ctrl-T
- to that frame:{F12787346, size=full}
Here's the
.blend
file (you'll also need theFootage.mp4
file linked to in the original bug report): blender-daily-2.93.7.blendAdded subscriber: @deadpin
The
MEM_CacheLimiter_unmanage
crash as seen in your crash file was fixed by7061d1e39f
and is already on the list of patches to include in 3.0.1 if/when that happens (#93479)Beyond that, I'm unable to reproduce the hang here locally on 3.1. I was able to complete the track for all frames. If it's reliable for you it would be best to create a new report, just for the hang, so things are clear for other folks looking through the bugs.
Please consider this bug closed from my perspective (I don't see any way for me to close it directly).
Thanks for the quick response and apologies for not being better at analyzing
blender.crash.txt
to see that it was already covered by another bug.I agree that it makes sense to split out the tracking issue - will look into it more and see if there really is an issue and if I can clearly summarize it in a new bug.
Changed status from 'Needs Triage' to: 'Resolved'
No worries, it would have been a bit of a pain to find the already-fixed issue really. I'll resolve this task but if you can reliably reproduce the hang, please do file a new report.
Thanks, Jesse. The "hang" was actually the result of hitting the video-sequencer cache's default limit of 4GiB. When I upped it to 16GiB the track ran through to the finish.
I'm not quite sure why tracking through a video file (or simply playing it) should cause Blender to fill up and then grind to a halt once you've read thru e.g. 129 frames of 4K video in my case.
Surely the point of a cache is that you start throwing away the older data (i.e. the earlier frames) once full and that, ideally, ejection from the cache shouldn't be really expensive?
But at the moment, once the cache is full that seems to be Blender pretty much done for - it will grind on from that point but extremely slowly (but with
htop
showing very low CPU usage - so it's not maxing out there).