Anim Player Stops working In Video Sequence Editor #94994
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#94994
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Graphics card: GTX 1070
Blender Version
Broken: 3.0.0
Worked: 2.9
Short description of error
When using the video editing functionality of Blender, if the file is left open for an extended period of time, upon return, pressing play will result in the current frame progressing by one, instead of playing.
Exact steps for others to reproduce the error
Open a file using the video sequence editor, leave for about an hour. Come back and attempt to play the file.
Added subscriber: @sketchysquirrel
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Needs User Info'
There was such issue but it should be resolved now. Please check if this happens with latest alpha build from https://builder.blender.org/download/daily/.
Hello Richard, I installed the 3.1.0 alpha, opened a recent file, and left it for an hour. Coming back to it, the problem is still present. I cannot play the file.
Added subscriber: @neXyon
Actually, I can reproduce this issue, but forgot, that it still happens. Now when I resume machine from sleep, playback doesn't work and I can't quit Blender unless I kill it in task manager.
CC @neXyon
Changed status from 'Needs User Info' to: 'Confirmed'
Weirdly enough, I cannot reproduce the issue, although a friend could on his computer. @iss Could you run a debug build and see where/how it hangs in WASAPIDevice.cpp probably in the mixing thread?
Ok that's weird, I can't reproduce it now. I will keep this in mind and check when this happens next time
Finnally managed to reproduce something by accidentally kicking cable to USB soundcard (this is random issue, can not reproduce at will), so not sure whether this helps. When waking up it happened only twice and I have killed the process by accident.
In any case I see thread stuck in
WASAPIDevice::runMixingThread()
, callsmix((data_t*)buffer, length)
, wherebuffer
is NULL, length is 0 and goes back to sleep.I guess I should have looked deeper at
setupRenderClient
to see more info, will check that when I will have a chance.Weird, I guess
NULL
forbuffer
is okay, sincelength
is 0. That means thatbuffer_size
andpadding
have the same value. Could you please let me know what that value is next time this happens? Also it's likely that something fails silently, although it shouldn't... Could you track the value of result during one run through the endless loop and tell me if the value ever changes fromS_OK
to something else? Thanks for keeping this bug in mind!Yes,
buffer_size
andpadding
were equal, I think the value was 2048, but not 100% sure. Result seemed to be always S_OK. I was able to inspectsetupRenderClient
but it looked to me same way as loop inrunMixingThread
. Is there any significant difference?I wasn't able to step with debuger into lower level functions though, is there is any setup I need to do in MSVC?
Ok, so nothing faulty there... To some extent I expected that, but it doesn't move us forward unfortunately. I can only suspect that the AudioClient somehow stopped playing back without telling us and I haven't found a way to check if it's started or stopped. You can't debug into lower level functions because those are part of WASAPI, i.e. the audio API off Windows (https://docs.microsoft.com/en-us/windows/win32/api/audioclient/nn-audioclient-iaudioclient).
I'm a bit at a loss for how to continue here. Something you can try with the debugger is setting
m_default_device_changed
totrue
when this happens and check if it recovers, but I'm also not sure if that's going to help if we don't have a way to figure out that something isn't working. After that my only ideas are hacky solutions such as tracking whenlength
was non-zero the last time to figure out this way that we're not playing back and then resetting...I did another experiment, because I wasn't sure why I sometimes can reproduce hang after sleep - it seems, that this happens only in release builds. If PC was put to sleep while Blender was playing, this did not happen as well.
Fortunately I was able to reproduce with debugger, pause and inspect the thread. It was again stuck in
WASAPIDevice::runMixingThread()
but this timesleep_duration
was very large and inconsistent between tests. Just initializing this value to 0 seems to resolve this problem.I can not 100% confirm that it hits
goto stop_thread
though. just addingprintf
calls to check this in any way seems to cause issues where playback just doesn't start at all...Interesting, that
sleep_duration
varies that much, because it depends strictly on the buffer size reported by WASAPI. Could you tell me what you mean by very large? Just approximately, in order of magnitude would be enough. If you say setting it to 0 resolves the problem, maybe we just need to limit it to 20 ms maximum or so.I meant to say that it was probably left uninitialized, because I think it hit
goto stop_thread
before. But thenresult != AUDCLNT_E_DEVICE_INVALIDATED
would had to be false and thread did not actually stop but went to sleep.So by wery large, I meant some random number like 42314783214688
This issue was referenced by
4782713390
Changed status from 'Confirmed' to: 'Resolved'
Nice catch! It indeed is uninitialized when the thread starts and the device fails to initialize immediately! I pushed a change that hopefully fixes this bug. @sketchysquirrel please feel free to reopen this, if the bug is not gone in the next release. Same for @iss if you encounter this again with that fix applied.