PulseAudio: Animation playback in viewport corrupts sound output on linux #88089

Closed
opened 2021-05-07 04:16:23 +02:00 by I did must have done it · 30 comments

System Information
Operating system: manjaro-kde-21.0.3-210428-linux510 switched to linux512 kernel
Graphics card: rx6800

Blender Version
Broken: 2.93
Worked: (newest version of Blender that worked as expected)

Short description of error
hitting space in blender viewport corrupts sound output as long as blender is open.

Exact steps for others to reproduce the error
play some music in the background and hit space in the viewport to play animation, you should notice noise that is correlated with volume of the music. it stops upon closing blender.

**System Information** Operating system: manjaro-kde-21.0.3-210428-linux510 switched to linux512 kernel Graphics card: rx6800 **Blender Version** Broken: 2.93 Worked: (newest version of Blender that worked as expected) **Short description of error** hitting space in blender viewport corrupts sound output as long as blender is open. **Exact steps for others to reproduce the error** play some music in the background and hit space in the viewport to play animation, you should notice noise that is correlated with volume of the music. it stops upon closing blender.

Added subscriber: @leonardos

Added subscriber: @leonardos

UPDATE: After switching Audio Device to none under System>Sound my issue went away, but still it should not have happened in first place.

UPDATE: After switching Audio Device to none under System>Sound my issue went away, but still it should not have happened in first place.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Is this about Jack?
Is this also happening with PulseAudio for example?

Is this about Jack? Is this also happening with PulseAudio for example?

i dont know who jack is but yes, PulseAudio was default i switched to none and issue fixed

i dont know who jack is but yes, PulseAudio was default i switched to none and issue fixed
Member

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

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

Jack is another soundsystem. If blender uses jack, then I can sort of reproduce other sound stopping ( but I think this is normal, one would probably have to wire connections up with qjackctl or something ).
PulseAudio is fine on my side though

Jack is another soundsystem. If blender uses jack, then I can sort of reproduce other sound stopping ( but I think this is normal, one would probably have to wire connections up with qjackctl or something ). PulseAudio is fine on my side though

yes my problem was with plusaudio

yes my problem was with plusaudio
Member

Added subscriber: @HDMaster84

Added subscriber: @HDMaster84
Member

I do experience the same issue on

System Information
Operating system: Linux-5.8.0-2-amd64-x86_64-with-glibc2.31 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 450.66

Blender Version
Broken: version: 3.0.0 Alpha,

It's also for me PulseAudio specific so I switched to OpenAL in the preferences as a work around. JACK does not work (suspect it isn't installed properly).
My installed PulseAudio version is 13.0-5 (from apt output)

I do experience the same issue on **System Information** Operating system: Linux-5.8.0-2-amd64-x86_64-with-glibc2.31 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 450.66 **Blender Version** Broken: version: 3.0.0 Alpha, It's also for me PulseAudio specific so I switched to OpenAL in the preferences as a work around. JACK does not work (suspect it isn't installed properly). My installed PulseAudio version is 13.0-5 (from apt output)
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

related #87584 (weird audio noise when starting playback in blender) #86923 (Bledner-2.93 Pulseaudio crack in start playback)

related #87584 (weird audio noise when starting playback in blender) #86923 (Bledner-2.93 Pulseaudio crack in start playback)
Member

Added subscriber: @neXyon

Added subscriber: @neXyon
Member

Unfortunately, I and a pulseaudio developer I talked to cannot reproduce the issue, but there are some things we can try:

Can you please try if the issue persists if you choose a different (bigger) mixing buffer size in the preferences?

If you can it would be nice to get a verbose log of pulseaudio about what happens between you starting blender and the start of the problem. You can increase the verbosity of pulseaudio's loggin with the command pacmd set-log-level 4 if you know where to get the log (on my system it's in the journal). If not it might be easier to follow one of these guides to get a log:

https://www.freedesktop.org/wiki/Software/PulseAudio/BugReports/#gettingverboseserverlogsfrompulseaudio

https://wiki.ubuntu.com/PulseAudio/Log

@HDMaster84 which distribution and version are you using? Ubuntu?

Unfortunately, I and a pulseaudio developer I talked to cannot reproduce the issue, but there are some things we can try: Can you please try if the issue persists if you choose a different (bigger) mixing buffer size in the preferences? If you can it would be nice to get a verbose log of pulseaudio about what happens between you starting blender and the start of the problem. You can increase the verbosity of pulseaudio's loggin with the command `pacmd set-log-level 4` if you know where to get the log (on my system it's in the journal). If not it might be easier to follow one of these guides to get a log: https://www.freedesktop.org/wiki/Software/PulseAudio/BugReports/#gettingverboseserverlogsfrompulseaudio https://wiki.ubuntu.com/PulseAudio/Log @HDMaster84 which distribution and version are you using? Ubuntu?
Member

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

Changed status from 'Needs Triage' to: 'Needs User Info'
Philipp Oeser changed title from Animation playback in viewport corrupts sound output on linux to PulseAudio: Animation playback in viewport corrupts sound output on linux 2021-06-04 13:40:06 +02:00
Member

@neXyon I am using Debian current testing.
Here is my pacmd --version:

compiled with libpulse 14.2.0
linked with libpulse 14.2.0

here is a very verbose log:
{F10158285}

I think the stuff around line 2790 looks interesting.

@neXyon I am using Debian current testing. Here is my `pacmd --version`: ```pacmd 14.2 compiled with libpulse 14.2.0 linked with libpulse 14.2.0 ``` here is a very verbose log: {F10158285} I think the stuff around line 2790 looks interesting.
Member

Thank you, I created an issue on the pulseuaudio issue tracker with your log.

Thank you, I created an issue on the pulseuaudio issue tracker with your log.
Member

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

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

@neXyon : I assume we consider this "Confirmed"? or has this been resolved along with other commits lately?

@neXyon : I assume we consider this "Confirmed"? or has this been resolved along with other commits lately?
Joerg Mueller self-assigned this 2021-07-02 12:39:35 +02:00
Member

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

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

Sure! Unfortunately, I didn't get any responses yet from the issue in the pulseaudio tracker. Here's the link: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1221

Sure! Unfortunately, I didn't get any responses yet from the issue in the pulseaudio tracker. Here's the link: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1221

Added subscriber: @MD.FahadHassan

Added subscriber: @MD.FahadHassan

Hi all, After inspecting pulse log What I think pulse is facing mismatch buffer and sample rate to sync with other sources. Could be wrong.
Although forcing mixing buffer beyond 4096 samples eliminates the statics. Hope it helps. Thanks.
Screenshot from 2021-08-11 02-10-15.jpg

Also, in 2.79 default driver was OpenAL. Not sure is it beneficial to use pulse in Blender?

O/S Mint 20.1

Hi all, After inspecting pulse log What I think pulse is facing mismatch buffer and sample rate to sync with other sources. Could be wrong. Although forcing mixing buffer beyond 4096 samples eliminates the statics. Hope it helps. Thanks. ![Screenshot from 2021-08-11 02-10-15.jpg](https://archive.blender.org/developer/F10276838/Screenshot_from_2021-08-11_02-10-15.jpg) Also, in 2.79 default driver was OpenAL. Not sure is it beneficial to use pulse in Blender? O/S Mint 20.1
Member

I wonder if that is the same issue @MD.FahadHassan - Can you check if increasing the mixing buffer size helps @HDMaster84, @leonardos? Unfortunately, there's still no progress in the pulseaudio bug report...

I wonder if that is the same issue @MD.FahadHassan - Can you check if increasing the mixing buffer size helps @HDMaster84, @leonardos? Unfortunately, there's still no progress in the pulseaudio bug report...
Member

I just committed two more fixes for pulseaudio, I'm again not sure if they help, please check out a recent build of master (3.0.0 alpha), e.g.: https://builder.blender.org/download/experimental/blender-3.0.0-alpha+master.a217e043be2d-linux.x86_64-release.tar.xz

I just committed two more fixes for pulseaudio, I'm again not sure if they help, please check out a recent build of master (3.0.0 alpha), e.g.: https://builder.blender.org/download/experimental/blender-3.0.0-alpha+master.a217e043be2d-linux.x86_64-release.tar.xz
Member

Seems to be solved for me. Thanks. Also tried different sample rates and it worked.
I guess the fixes you are talking are a112adf16a and a217e043be

Seems to be solved for me. Thanks. Also tried different sample rates and it worked. I guess the fixes you are talking are a112adf16a and a217e043be

SOLVED in Blender hash a217e043be
Thanks!
O/S Mint 20.1

SOLVED in Blender hash a217e043be2d Thanks! O/S Mint 20.1
Member

Changed status from 'Confirmed' to: 'Resolved'

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

Perfect, thanks for checking!

Perfect, thanks for checking!
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#88089
No description provided.