Null audio device and AV Sync halts playback #65231

Closed
opened 2019-05-28 14:16:23 +02:00 by mantissa · 17 comments

System Information
Operating system: Linux-4.19.45_1-x86_64-with-glibc2.9 64 Bits
Graphics card: TITAN X (Pascal)/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.14

Blender Version
Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-26 22:34, hash: d525c76003
Worked: A few weeks before

Short description of error
When changing the Audio Device to "Null" in the Preferences, AV-Sync playback locks up.
Switching back to "No Sync" or "Frame Dropping" returns to normal behavior and hitting space bar plays the scene once again.

Exact steps for others to reproduce the error

  • Choose "Null" option in Audio Device settings.
  • Switch to "AV Sync" (or "Jack") in playback options
  • Hitting space bar tries to play but stops immediately on the same frame.
  • Other playback options work fine
  • Additionally, switching to "Jack" on linux without it installed causes a short hang (~7s on my machine) but doesn't crash Blender, even after multiple attempts. AV Sync lock behavior is present here as well.
**System Information** Operating system: Linux-4.19.45_1-x86_64-with-glibc2.9 64 Bits Graphics card: TITAN X (Pascal)/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.14 **Blender Version** Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-26 22:34, hash: `d525c76003` Worked: A few weeks before **Short description of error** When changing the Audio Device to "Null" in the Preferences, AV-Sync playback locks up. Switching back to "No Sync" or "Frame Dropping" returns to normal behavior and hitting space bar plays the scene once again. **Exact steps for others to reproduce the error** - Choose "Null" option in Audio Device settings. - Switch to "AV Sync" (or "Jack") in playback options - Hitting space bar tries to play but stops immediately on the same frame. - Other playback options work fine - Additionally, switching to "Jack" on linux without it installed causes a short hang (~7s on my machine) but doesn't crash Blender, even after multiple attempts. AV Sync lock behavior is present here as well.
Author

Added subscriber: @Mantissa

Added subscriber: @Mantissa
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

I cannot reproduce it.
But maybe it is related to #64644?

Are you able to reproduce the issue explained there?

I cannot reproduce it. But maybe it is related to #64644? Are you able to reproduce the issue explained there?
Author

That works fine on my end.
Just tried resetting my preferences real quick and then it works again.
Maybe it's something I've set up in my startup file / preferences?
I've attached a scene where it's not working with my current setup together with my user prefs and startup file.
Only changed some basic preferences and some UI, so it looks like something I've set up a specific way.

I'll download todays build and see when the bug occurs when setting up my startup and prefs.av_sync.zip

That works fine on my end. Just tried resetting my preferences real quick and then it works again. Maybe it's something I've set up in my startup file / preferences? I've attached a scene where it's not working with my current setup together with my user prefs and startup file. Only changed some basic preferences and some UI, so it looks like something I've set up a specific way. I'll download todays build and see when the bug occurs when setting up my startup and prefs.[av_sync.zip](https://archive.blender.org/developer/F7075339/av_sync.zip)
Author

Found the issue while reconfiguring from scratch, changing the Audio Device in the preferences to "Null" halts playback.
I've updated the description to reflect the issue more clearly.

Found the issue while reconfiguring from scratch, changing the Audio Device in the preferences to "Null" halts playback. I've updated the description to reflect the issue more clearly.

Added subscribers: @brecht, @WilliamReynish

Added subscribers: @brecht, @WilliamReynish

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
William Reynish self-assigned this 2019-05-29 00:49:40 +02:00

This doesn't seem like a bug. If there is no audio device, then there is no audio to sync with.

I don't really know why we have the option of setting the Audio Device to Null - @brecht any idea why we have this?

This doesn't seem like a bug. If there is no audio device, then there is no audio to sync with. I don't really know why we have the option of setting the Audio Device to Null - @brecht any idea why we have this?

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

I guess it's mainly if you are building without audio, or need it as a workaround if there is some issue with with audio.

Still would consider this a bug, but a low priority one.

I guess it's mainly if you are building without audio, or need it as a workaround if there is some issue with with audio. Still would consider this a bug, but a low priority one.
Brecht Van Lommel changed title from Setting timeline to AV Sync halts playback to Null audio device and AV Sync halts playback 2019-05-29 13:01:01 +02:00
William Reynish was unassigned by Brecht Van Lommel 2019-05-29 13:01:01 +02:00
Joerg Mueller was assigned by Brecht Van Lommel 2019-05-29 13:01:01 +02:00
Author

OpenAL tends to mess with some of the other PulseAudio devices when starting Blender, causing recordings to get garbled or internal sample rates to get mixed.
This can happen during streaming sessions or whilst having other audio editing applications open.
I tend to set it to "Null" so it doesn't interfere with the other open applications.

OpenAL tends to mess with some of the other PulseAudio devices when starting Blender, causing recordings to get garbled or internal sample rates to get mixed. This can happen during streaming sessions or whilst having other audio editing applications open. I tend to set it to "Null" so it doesn't interfere with the other open applications.
Member

@WilliamReynish perfectly described it when he wrote

If there is no audio device, then there is no audio to sync with.

So the behavior is intended! The only thing I could think of that we could change here is to disable/hide A/V sync when the audio device is Null.

@WilliamReynish perfectly described it when he wrote > If there is no audio device, then there is no audio to sync with. So the behavior is intended! The only thing I could think of that we could change here is to disable/hide A/V sync when the audio device is Null.

The only thing I could think of that we could change here is to disable/hide A/V sync when the audio device is Null.

That's what it should do, just silently disable AV-Sync, not break playback.

> The only thing I could think of that we could change here is to disable/hide A/V sync when the audio device is Null. That's what it should do, just silently disable AV-Sync, not break playback.
Member

What happens if you open a file that has AV-sync set? There you'll have the same behavior still. Or you set the synchronization to something else, which might not be what the user wants. I'm a bit hesitant in changing stuff without letting the user know. Especially, I would expect a file not to change if I only open and save it - independent of my user preference settings.

What happens if you open a file that has AV-sync set? There you'll have the same behavior still. Or you set the synchronization to something else, which might not be what the user wants. I'm a bit hesitant in changing stuff without letting the user know. Especially, I would expect a file not to change if I only open and save it - independent of my user preference settings.

The user interface or settings should not change, it should just not do A/V sync in the playback operator. If there is no audio device playing back audio, there no syncing to audio to be done, I don't think the user needs to be notified about that.

The user interface or settings should not change, it should just not do A/V sync in the playback operator. If there is no audio device playing back audio, there no syncing to audio to be done, I don't think the user needs to be notified about that.

This issue was referenced by 05138d2c4e

This issue was referenced by 05138d2c4ea21f75b9de57fa41f5c303c24cd655
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
6 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#65231
No description provided.