Bug 498405 - Audio Volume widget causes stuttering sound and crash of pipewire
Summary: Audio Volume widget causes stuttering sound and crash of pipewire
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Audio Volume widget (show other bugs)
Version: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-09 00:44 UTC by Franz Graf
Modified: 2025-01-11 16:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Output of $ alsa-info.sh (32.01 KB, text/plain)
2025-01-09 00:44 UTC, Franz Graf
Details
Output of journalctl (224.96 KB, text/plain)
2025-01-09 00:47 UTC, Franz Graf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Graf 2025-01-09 00:44:50 UTC
Created attachment 177214 [details]
Output of $ alsa-info.sh

SUMMARY
The Audio Volume (AV) widget causes stuttering sound (and/or video) and a crash of pipewire. This happens either if the AV widget is opened, re-opened, or closed by clicking on the AV icon (speaker). Thereafter, pipewire has to be restarted (which may take up to ~ 20 seconds):
   $ systemctl --user restart pipewire

When moving the mouse pointer over the AV icon (speaker), the volume can be changed with the mouse wheel without any problem. The same is true when changing the volume with keyboard shortcuts.

I'm not sure if it is a problem of the AV widget, of alsa , or of the apple_bce module of the kernel 6.12.1-arch1-Watanare-T2-1-t2 (64-bit), which is required to get any sound on this machine.

STEPS TO REPRODUCE
1. Play video in browser or play audio
2. Open the Audio Volume widget (plasma-pa) by clicking on the AV icon (speaker)
3. Close the AV widget or re-open the closed widget by clicking on the AV icon (speaker)

OBSERVED RESULT
During 2. or 3. the sound (or video with sound) starts stuttering. Lots of crash dumps are logged.

EXPECTED RESULT
No stuttering is observed.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.1-arch1-Watanare-T2-1-t2 (64-bit)
Graphics Platform: Wayland
Manufacturer: Apple Inc.
Product Name: iMacPro1,1

ADDITIONAL INFORMATION
kmix has been uninstalled.
Active audio device in AV widget: card 0: Audio [Apple T2 Audio], device 0: Speaker [Speaker].
$ lspci | grep -i audio
02:00.3 Multimedia audio controller: Apple Inc. Apple Audio Device (rev 01)
f3:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 HDMI Audio [Radeon Vega 56/64]

Attachments:
1. Output of $ alsa-info.sh
2. Output of $ journalctl -b | grep -v bluetoothd | grep "alsa\|pipewire\|kernel\|sound\|snd\|bce"
Comment 1 Franz Graf 2025-01-09 00:47:05 UTC
Created attachment 177215 [details]
Output of journalctl
Comment 2 Harald Sitter 2025-01-09 12:16:48 UTC
Seems to me the out of tree sound driver you are using is falling over so you want to file a bug with its authors. That said, pipewire probably shouldn't break because of that so you might also want to file a bug with pipewire. Nothing we can do on our end I'm afraid.
Comment 3 Franz Graf 2025-01-09 20:47:42 UTC
Thanks for your hints!
Comment 4 Marco Martin 2025-01-10 09:26:23 UTC
seems like a pipewire issue?
Comment 5 Franz Graf 2025-01-11 16:50:36 UTC
Indeed it was a pipewire issue. I could solve it by following the procedure in
https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Troubleshooting#stuttering-audio-in-virtual-machine