VSE: 'Prefetch frames' causes excessive CPU usage whenever there is animation on a strip (freezes when tweaking animation [Graph Editor, Dopesheet, typing in new values]) #70194
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#70194
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: Linux-5.2.15-200.fc30.x86_64-x86_64-with-fedora-30-Thirty 64 Bits
Graphics card: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) Intel Open Source Technology Center 4.5 (Core Profile) Mesa 19.1.6
Blender Version
Broken: version: 2.81 (sub 12), branch: master, commit date: 2019-09-22 20:38, hash:
52bdf522af
Worked: (optional)
Short description of error
When using the Graph Editor Slider on f-curve with Sequencer "Prefetch Frames" ON, Blender Freezes
Exact steps for others to reproduce the error
Example File
slider_graphEditor_freeze.blend
Added subscriber: @nottelmo-4
Added subscribers: @iss, @lichtwerk
Can confirm the freeze.
This is actually true for all keyframe transforms [be it Graph Editor, Dopesheet, can be sliders, keyframes, tangents...]
Should call
BKE_sequencer_prefetch_stop(scene)
or similar in the appropriate places in transform code, I guess...CC @iss
[FREEZE] Graph Editor Slider with Prefetch Framesto [FREEZE] tweaking animation on a VSE strip [Graph Editor, Dopwsheet, ...]Just noticed that it actually hangs in
BKE_sequencer_prefetch_stop
, for some reason the thread is not suspended, loops infinitely hereAdded subscriber: @Sergey
Also: just opening that file seems to spawn a thread that never really finishes?
(keeps one CPU core busy here all the time -- without doing anything in that file)
Can even be reproduced much simpler:
File
>New
>Video Editing
Add
>Color
Prefetch frames
Guess this should be fixed asap?
CC @Sergey
[FREEZE] tweaking animation on a VSE strip [Graph Editor, Dopwsheet, ...]to VSE: 'Prefetch frames' causes excessive CPU usage whenever there is animation on a strip (freezes when tweaking animation [Graph Editor, Dopesheet, typing in new values])My guess is that it's caused by
ab3a9dc1ed
.Yes, caused by
ab3a9dc1ed
.Adding this to 2.81 milestone, if this cant be fixed until then it should probably be reverted?
@Sergey
I modified prefetch to use same method as pipeline.c to update animdata (not sure if that has changed), but I get random crashes in depsgraph module.
I am using depsgraph to generate scene copy, and rendering it in separate thread. Not sure if method I use (copied from pipeline.c) is designed to do what I need. This was suggested to me by brecht, but I was not 100% sure about what I was doing.
I can revert to making scene copy using scene API, but this may be bug in depsgraph itself.
You can check my attempt to fix this by patching P1118, and messing with animation, while prefetch is enabled.
To confirm bug in depsgraph, I tried to mess with animation while rendering - no crash and no effect on original data.
(did crash when rendering movie strip, but thats unrelated)
This issue was referenced by
2b29bf25fc
Changed status from 'Open' to: 'Resolved'