Public bug reported:
PROBLEM
After the USB audio function of my Philips 34B1U5601 monitor re-enumerated
(suspend/resume or replug), the wireplumber process pegged one CPU core at
~100% indefinitely. `strace -f -p $(pidof wireplumber)` shows a tight loop:
read(51</dev/snd/controlC3>(deleted), 0x7ffc..., 72) = -1 ENODEV
read(53</dev/snd/controlC3>(deleted), 0x7ffc..., 72) = -1 ENODEV
write(3<anon_inode:[eventfd]>, ...) = 8 # main-loop wakeup, repeat
(~22k read errors per 4 s; the fds point at a deleted inode of the card's
control node). `systemctl --user restart wireplumber` clears it immediately.
EXPECTED
The ALSA monitor should drop a poll source when its control fd reports
POLLERR/POLLHUP and reads return ENODEV, not spin on it forever.
ROOT CAUSE (known upstream)
pipewire spa/plugins/alsa/alsa-acp-device.c: handle_acp_poll() never inspected
the poll revents; POLLERR/POLLHUP is level-triggered, so the main loop
re-dispatched the handler forever. Upstream fix exists: commit
PipeWire/pipewire@b904c3e ("fix(spa-alsa-acp-device): stop 100% CPU spin when a
poll fd hangs up") — handle_acp_poll() now calls remove_sources() on
SPA_IO_ERR/SPA_IO_HUP. See upstream issue pipewire#1627 ("alsa mixer polling
ends in infinite loop when underlying device within pipewire disappears",
gitlab.freedesktop.org/pipewire/pipewire/-/issues/1627). Related reports:
Debian #1042713, Launchpad pipewire #2111972.
NOTE ON PACKAGE
The symptom appears in the *wireplumber* process because wireplumber 0.5
loads the ALSA monitor (libspa-alsa.so) in-process; the defective code is in
pipewire's SPA ALSA plugin, shipped in libspa-0.2-modules — hence filing here.
ENVIRONMENT
Ubuntu 26.04.1 LTS (resolute), kernel 7.0.0-43-generic x86_64
pipewire 1.6.2-1ubuntu1.2, libspa-0.2-modules 1.6.2-1ubuntu1.2,
wireplumber 0.5.13-1ubuntu1.1
apt candidate is still 1.6.2-1ubuntu1.2, and the bug reproduces on it, so the
upstream fix is not yet in this version. Newer upstream 1.6.x releases contain
ALSA plugin poll fixes.
STEPS TO REPRODUCE
1. Attach a USB audio device (monitor/dock) and let wireplumber monitor it.
2. Trigger re-enumeration: unplug/replug the device, or suspend+resume.
3. `top` → wireplumber at ~100% CPU on one core.
4. `sudo strace -f -y -p $(pidof wireplumber) -e trace=read,write` → repeated
`read(...) = -1 ENODEV` on the deleted /dev/snd/controlC<n> fd.
5. `systemctl --user restart wireplumber` → CPU back to ~0%.
WORKAROUND
systemctl --user restart wireplumber (recurred for me after each
suspend/resume of the USB monitor).
SUGGESTION
Please check whether the upstream fix b904c3e (and/or a newer pipewire 1.6.x)
can be SRU'd to resolute; the bug is still fully reproducible on 1.6.2.
DISCLOSURE
This report was drafted with the assistance of an AI agent and reviewed,
verified and submitted by me, the reporter, who experienced the issue.
** Affects: pipewire (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175846
Title:
Philips 34B1U5601 monitor causes wireplumber to spin to 100% cpu
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pipewire/+bug/2175846/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs