#1022143 pulseaudio: Locks up constantly

Package:
pulseaudio
Source:
pulseaudio
Description:
PulseAudio sound server
Submitter:
Phil Dibowitz
Date:
2024-07-19 09:27:03 UTC
Severity:
normal
#1022143#5
Date:
2022-10-20 23:49:36 UTC
From:
To:
Dear Maintainer,

If I start playing a video in firefox, pulseaudio freezes and I can't
play anything until I restart pulseaudio.

If I start playing video in Chrome, it'll work until I pause or stop,
then pulseaudio freezes again, until I restart pulseaudio.

Once it's frozen I can repliably get errors on anything that touches the
audio device. For example from mplayer:

```
Starting playback...
A:   0.1 (00.0) of 473.0 (07:53.0) ??,?%
Audio device got stuck!
A:   0.3 (00.3) of 473.0 (07:53.0) ??,?%
Audio device got stuck!
```

#1022143#10
Date:
2022-10-24 22:14:17 UTC
From:
To:
I found the culprit!

gnome-remote-desktop caused pipewire and friends to get installed. Even
with `pipewire-pulse` installed, audio was unusable when pipewire was
installed.

Removing all pipewire packages allowed audio to work again.

#1022143#15
Date:
2024-04-16 10:07:16 UTC
From:
To:
Chrome regularly had sound stop when playing YouTube even though mpv could
still play videos.  Running "systemctl --user restart pulseaudio.service"
would make sound work again but pausing YouTube would usually trigger it
again.

Running the following 2 commands to stop pipewire seems to have fixed the
problem.  So it's related to the communication between pipewire and
pulseaudio.


systemctl --user stop pipewire.service
systemctl --user stop pipewire.socket

#1022143#20
Date:
2024-07-19 09:16:36 UTC
From:
To:
This still happens with pipewire 1.2.1-1 in Unstable.

After using the system for a while and presumably pipewire has done some audio
stuff other audio methods won't work.

The following works:
mpv $FILE -ao pipewire

The following plays the video with no sound:
mpv $FILE -ao pulse

The following hangs due to blocking on sound:
mpv $FILE -ao alsa

When I try to visit a YouTube page in Chrome it hangs so presumably Chrome
uses alsa.