Memory leakage in Sequencer #45570
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#45570
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
Windows 7, GeForce
Blender Version
2.74a 64 bit, hash:
c27589e
Short description of error
Blender memory consumption is not limited during playback in Sequencer or rendering using Sequencer.
Exact steps for others to reproduce the error
Sorry for not applying a .blend file, but I think that it is not hard to reproduce.
I'm doing a video montage in Sequencer using a lot of video strips, some of them, of course, are just different cutted versions of one video file. The whole animation is about an hour long.
When I try to render my file the Blender crashes after consuming all of available memory. So I can render only ~5 minutes of my project at a time.
Also, there's the button in Sequencer named 'Refresh Sequencer', when I press it, sometimes the memory usage drops down to ~200 MB and sometimes Blender immediately crushes.
I have noticed that the most consuming case is when you have many frequently changing video strips.
Out of memory case log:
'Refresh Sequencer' crash log:
Sorry for not debugging it, I'll try to provide any possible information you ask.
Memory disparity image:
http:*i.imgur.com/kb7Ff5t.png
MP4 files used:
Changed status to: 'Open'
Added subscriber: @uvx3
Added subscriber: @Blendify
Also after rendering I have had a problem were memory is not freed afterwards
Added subscriber: @Sergey
It is important to attach all files needed to reproduce the issue. Something which sounds obvious to you is not obvious for everyone. We're using sequencer on a daily basis here in the studio for Gooseberry edit and don't have memory leaks detected so far.
As for the crashes -- it'll help if you can isolate it a bit more. Crashes which happens sometimes to you are areally tricky to nail down from our side.
I've created a .blend file, which can help detect the error, I hope. It's in attached .7z archive. There's also some gdb output.
Thank you.
mem_leak.7z
Changed status from 'Open' to: 'Archived'
Refresh Sequencer is not really thread-safe button, better not be used during rendering. Committed change which makes sure it's not used during rendering.
As for memory usage -- the memory is being used by FFmpeg context associated with each of the strip. It's possible to make them better memory managed by blender, but for now it's considered a TODO: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Editors#Video_Sequencer
So thanks for the report, but archiving it as a TODO now.
Sergey, thank you for making Blender :)
Maybe you can advise me some sort of solution to render my project? Now I render it by 3—5 minutes long pieces only. Is there some kind of 'pause render' possibility to safely free the memory during rendering?
You can have a script which modifies render range, invokes animation rendering for a shorter frame range, then clears the cache and continues rendering.
Second idea is to have pre-render hook which will free cache as well, but this wouldn't work in the current Git version because of the thread safety check added recently. Would need to re-consider the fix to keep that usecase working..
Ok, thank you.