Anim playback breaks with Audio Sync on #91057

Closed
opened 2021-08-30 16:55:44 +02:00 by Haig Petrus · 23 comments

System Information
Operating system: Linux-5.13.13-arch1-1-x86_64-with-glibc2.33 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.63.01

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-29 21:39, hash: b42354672e
Worked: (newest version of Blender that worked as expected)

Short description of error
When playing back animation anywhere in Blender with Audio Sync turned on, either immediately or after a few playbacks, playback goes only one frame forward and holds there. Also, when it does play back, viewport is very choppy compared to earlier incarnations of 3.0.0 alpha.

Exact steps for others to reproduce the error

  1. Place an audio file on the sequencer timeline (.flac will do, but even any video file with audio will do)
  2. Animate the default cube and camera for at least 120 frames
  3. Change Playback>Sync to 'Sync to Audio' with Scrubbing turned on
  4. Playback and scrub through the timeline as you would during animation production
  5. Eventually, playback will hold after playing one frame

Note: Problem does not exist in other Sync modes, in my experience. Also, Saving the file and restarting Blender mostly resets the issue, but it comes back eventually.

**System Information** Operating system: Linux-5.13.13-arch1-1-x86_64-with-glibc2.33 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.63.01 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-29 21:39, hash: `b42354672e` Worked: (newest version of Blender that worked as expected) **Short description of error** When playing back animation anywhere in Blender with Audio Sync turned on, either immediately or after a few playbacks, playback goes only one frame forward and holds there. Also, when it does play back, viewport is very choppy compared to earlier incarnations of 3.0.0 alpha. **Exact steps for others to reproduce the error** 1) Place an audio file on the sequencer timeline (.flac will do, but even any video file with audio will do) 2) Animate the default cube and camera for at least 120 frames 3) Change Playback>Sync to 'Sync to Audio' with Scrubbing turned on 4) Playback and scrub through the timeline as you would during animation production 5) Eventually, playback will hold after playing one frame Note: Problem does not exist in other Sync modes, in my experience. Also, Saving the file and restarting Blender mostly resets the issue, but it comes back eventually.
Author

Added subscriber: @HaigPetrus

Added subscriber: @HaigPetrus
Member

Added subscribers: @neXyon, @lichtwerk

Added subscribers: @neXyon, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Is this only the case for PulseAudio?

Preferences > System > Sound > Audio Device

CC @neXyon

Is this only the case for PulseAudio? `Preferences` > `System` > `Sound` > `Audio Device` CC @neXyon
Author

I just switched to OpenAL and it seems to run smoothly, at the moment. Time will tell during production if this provides a workaround, for now.

If this is the case, why would PulseAudio be the culprit? It appears to be quite standard on Linux systems. And if Pulse is going to cause problems, which of the other options is the gold star standard?

I just switched to OpenAL and it seems to run smoothly, at the moment. Time will tell during production if this provides a workaround, for now. If this is the case, why would PulseAudio be the culprit? It appears to be quite standard on Linux systems. And if Pulse is going to cause problems, which of the other options is the gold star standard?
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Member

There have been issues with PulseAudio, see e.g. #89045 (VSE playback periodically refuses to work (Pulseaudio, OpenAL seems fine))
This should be fixed though, see 19d19970e4

@neXyon : ideas?

There have been issues with PulseAudio, see e.g. #89045 (VSE playback periodically refuses to work (Pulseaudio, OpenAL seems fine)) This should be fixed though, see 19d19970e4 @neXyon : ideas?
Joerg Mueller self-assigned this 2021-08-30 21:11:27 +02:00
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Member

Yeah, seems like this is not completely fixed, i.e. there are multiple bugs at play that trigger sometimes on some systems - making them hard to find. I do have this on my list, just need to get the time to work on it...

@HaigPetrus: Previously, the default was OpenAL so it's fine, there are just a few issues when it comes to 3D audio, so if you don't use that, OpenAL works fine for now. Pulseaudio was recently added and as such has some infancy issues. Since I have problems reproducing the issues however, it would be helpful if people like you who experience the problems can help by testing experimental builds once available.

Yeah, seems like this is not completely fixed, i.e. there are multiple bugs at play that trigger sometimes on some systems - making them hard to find. I do have this on my list, just need to get the time to work on it... @HaigPetrus: Previously, the default was OpenAL so it's fine, there are just a few issues when it comes to 3D audio, so if you don't use that, OpenAL works fine for now. Pulseaudio was recently added and as such has some infancy issues. Since I have problems reproducing the issues however, it would be helpful if people like you who experience the problems can help by testing experimental builds once available.
Author

@neXyon : Interesting story behind this. PulseAudio is a good idea to switch to for default, so I'd be happy to test at every step of the way. Bring in on.

Scrubbing with Audio Sync is essential for our projects from storyboard/animatic to lip sync to final animation to post, so this is of great interest to me.

@neXyon : Interesting story behind this. PulseAudio is a good idea to switch to for default, so I'd be happy to test at every step of the way. Bring in on. Scrubbing with Audio Sync is essential for our projects from storyboard/animatic to lip sync to final animation to post, so this is of great interest to me.

This issue was referenced by 93c7e83b2a

This issue was referenced by 93c7e83b2aca1ad3bc674af2a6c522be7aba2c57

This issue was referenced by 8324ac8457

This issue was referenced by 8324ac84577cd96fe578dd905cc1eced823e2fef
Member

Here is a build of D12564, a patch that hopefully deals with this bug. Please try if you can still reproduce the problem with it! https://builder.blender.org/download/patch/D12564/

Here is a build of [D12564](https://archive.blender.org/developer/D12564), a patch that hopefully deals with this bug. Please try if you can still reproduce the problem with it! https://builder.blender.org/download/patch/D12564/
Author

@neXyon: This appears to be working with PulseAudio, now. I have to do a much deeper torture test to make sure, but it looks very promising, so far. I can do crazy scrubbing and it seems to be in sync and not holding on a frame. Also, playback is smooth and not choppy anymore. I have a much more complex project that I will test this on and will let you know how that goes. Nonetheless, I think this might have done it.

@neXyon: This appears to be working with PulseAudio, now. I have to do a much deeper torture test to make sure, but it looks very promising, so far. I can do crazy scrubbing and it seems to be in sync and not holding on a frame. Also, playback is smooth and not choppy anymore. I have a much more complex project that I will test this on and will let you know how that goes. Nonetheless, I think this might have done it.
Member

Great! Let me know when you did the deeper torture test, then I'll commit this patch to master!

Great! Let me know when you did the deeper torture test, then I'll commit this patch to master!

Added subscriber: @ChristofferHolmstedt

Added subscriber: @ChristofferHolmstedt

In #91057#1222044, @neXyon wrote:
Here is a build of D12546, a patch that hopefully deals with this bug. Please try if you can still reproduce the problem with it! https://builder.blender.org/download/patch/D12564/

Differential reference should be D12564. Linking for future reference.

> In #91057#1222044, @neXyon wrote: > Here is a build of [D12546](https://archive.blender.org/developer/D12546), a patch that hopefully deals with this bug. Please try if you can still reproduce the problem with it! https://builder.blender.org/download/patch/D12564/ Differential reference should be [D12564](https://archive.blender.org/developer/D12564). Linking for future reference.
Author

Torture test appears to be positive. I think this should be merged to master, if the code passes muster. Certainly, thereafter, a lot more production will be done and we'll see how it holds up over the days and weeks ahead. Right now, it appears to work as well as the older OpenAL, in terms of reliability and performance.

Let me know if there's any sort of PulseAudio lmessaging that you'd like me to log, if you feel the need.

Torture test appears to be positive. I think this should be merged to master, if the code passes muster. Certainly, thereafter, a lot more production will be done and we'll see how it holds up over the days and weeks ahead. Right now, it appears to work as well as the older OpenAL, in terms of reliability and performance. Let me know if there's any sort of PulseAudio lmessaging that you'd like me to log, if you feel the need.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

Great, I just pushed the fix to master, thanks for checking!

Great, I just pushed the fix to master, thanks for checking!

Added subscriber: @Alumx

Added subscriber: @Alumx

this issue seems a bit simillar to this current one #91352

this issue seems a bit simillar to this current one #91352

Operating system: Wndows 10 pro
Graphics card: NVIDIA GeForce GTX 3050 Ti

Audio sync issue.
I did this
Change Playback>Sync to 'Sync to Audio' with Scrubbing turned on

But sync is still not working.

Operating system: Wndows 10 pro Graphics card: NVIDIA GeForce GTX 3050 Ti Audio sync issue. I did this Change Playback>Sync to 'Sync to Audio' with Scrubbing turned on But sync is still not working.
Sign in to join this conversation.
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
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#91057
No description provided.