Audio issue after PipeWire 1.6.9 and WirePlumber 0.5.18 update

Hi guys,

after this update my audio devices completely disappeared from pavucontrol. I managed to investigate the issue and track it down to a regression in PipeWire 1.6.9 / WirePlumber 0.5.18.

My Hardware:

inxi -F
System:
  Host: alexander-desktop Kernel: 7.2.9-1-MANJARO arch: x86_64 bits: 64
  Desktop: Xfce v: 4.20.2 Distro: Manjaro Linux
Machine:
  Type: Desktop System: Dell product: OptiPlex 9020 v: 00
    serial: <superuser required>
  Mobo: Dell model: 0PC5F7 v: A02 serial: <superuser required>
    Firmware: BIOS vendor: Dell v: A25 date: 05/30/2019
CPU:
  Info: quad core model: Intel Core i5-4570 bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 800 min/max: 800/3600 cores: 1: 800 2: 800 3: 800 4: 800
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
    driver: i915 v: kernel
  Device-2: Logitech HD Webcam C525 driver: snd-usb-audio,uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.24 driver: X: loaded: modesetting
    dri: crocus gpu: i915 resolution: 1920x1200~60Hz
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
  Info: Tools: de: xfce4-display-settings x11: xdriinfo, xdpyinfo, xprop,
    xrandr
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    driver: snd_hda_intel
  Device-2: Intel 8 Series/C220/C740 Series High Definition Audio
    driver: snd_hda_intel
  Device-3: Logitech HD Webcam C525 driver: snd-usb-audio,uvcvideo type: USB
  API: ALSA v: k7.2.9-1-MANJARO status: kernel-api
  Server-1: PipeWire v: 1.6.8 status: active
Network:
  Device-1: Intel Ethernet I217-LM driver: e1000e
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: f8:b1:56:dc:3f:29
Bluetooth:
  Device-1: ASUSTek ASUS USB-BT500 driver: btusb type: USB
  Report: rfkill ID: hci0 state: up address: see --recommends
RAID:
  Hardware-1: Intel SATA Controller (RAID 0/1/5/10) In-box Compatible ID
    (Desktop RST) driver: ahci
Drives:
  Local Storage: total: 3.76 TiB used: 408.56 GiB (10.6%)
  ID-1: /dev/sda vendor: Crucial model: M4-CT128M4SSD2 size: 119.24 GiB
  ID-2: /dev/sdb vendor: Toshiba model: HDWD240 size: 3.64 TiB
Partition:
  ID-1: / size: 24.17 GiB used: 19.14 GiB (79.2%) fs: ext4 dev: /dev/sda3
  ID-2: /home size: 88.87 GiB used: 56.12 GiB (63.2%) fs: ext4
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 4.05 GiB used: 0 KiB (0.0%)
    dev: /dev/sda2
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 12 GiB available: 11.58 GiB used: 6.03 GiB (52.1%)
  Processes: 256 Uptime: 1h 14m Shell: Bash inxi: 3.3.41

Symptoms & Logs:

  1. Running aplay using the default PulseAudio/PipeWire plugin timed out immediately:

    ALSA lib pcm_pulse.c:758:(pulse_prepare) [error.] PulseAudio: Unable to create stream: Timeout
    aplay: set_params:1462: Unable to install hw params
    
    
  2. Checking systemctl --user status pipewire showed that the daemon was throwing SPA node errors:

    mod.adapter: can't load spa node: No such file or directory
    mod.adapter: usage: node.name=<string>
    
    
  3. Running WirePlumber in debug mode (WIREPLUMBER_DEBUG=3 wireplumber) revealed that WirePlumber attempts to open hardware definitions for a non-existent card index (card 2), while the system only maps Card 0 (HDMI) and Card 1 (PCH):

    spa.alsa: Error opening PCM device front:2: No such file or directory
    spa.alsa: Unknown PCM hdmi:2
    
    

    This leads to the following errors, preventing any nodes from being created:

    s-monitors: Failed to create ALSA node alsa_output.pci-0000_00_1b.0.analog-stereo: Object activation aborted: PipeWire proxy destroyed
    
    

Hardware Verification:
I completely stopped PipeWire/WirePlumber and tested ALSA directly using the hardware layer. Audio playback worked flawlessly using:

aplay -D plughw:1,0 /usr/share/sounds/alsa/Noise.wav

This confirms that the kernel driver (snd-hda-intel) and the hardware are 100% fine, and the bug is isolated within the PipeWire/WirePlumber interaction layer. Tried toggling api.alsa.use-ucm = false in WirePlumber configurations, but it did not bypass the error.


Workaround / Fix:
I was able to fully restore audio by downgrading the entire PipeWire/WirePlumber stack back to the previous versions using manjaro-downgrade:

  • pipewire / libpipewire / pipewire-audio / pipewire-pulse (1.6.9-1 → 1.6.8-1)
  • wireplumber / libwireplumber (0.5.18-1 → 0.5.17-1)
  • alsa-card-profiles (1:1.6.9-1 → 1:1.6.8-1)

After the downgrade and clearing ~/.local/state/wireplumber/, all ALSA nodes were successfully registered again (pw-link -io) and audio is back to normal.

Hope this helps tracking down the regression! Let me know if you need any further logs from the broken state.

A user on CachyOS reported similar errors recently
No audio after -Syu upgrade - Issues & Assistance - CachyOS Forum
Issue was resolved by installing pipewire-libcamera

That’s really mysterious! Thanks a lot, works!

edit: Maybe it’s worth considering to add pipewire-libcamera as a dependency to manjaro-pipewire?

I highly doubt the camera lib fixes the sound :wink: It has however, pipewire as a dependency. So what probably happened was pipewire got reinstalled or updated for that user as a sideffect.
Also, not everybody has the problem. I don’t for example (xfce x11, pipewire).

I agree, there is nothing in the data to suggest PipeWire needs libcamera support, and there is another topic on CachyOS from 6 months ago where a user removed pipewire-libcamera
to get PipeWire working! :face_with_raised_eyebrow:

If more users have similar problems it might be considered as more than just an optional dependency by upstream maintainers, but I have no idea how to make a logical case for that

Absolutely! I think, it’s necessary to better understand the root cause of the issue before searching for a proper solution. I can do some testing if it helps!

I was very surprised as well, but it actually did!

I tried reinstalling pipewire several times but it didn’t help… Only the camera lib did for some mysterious reason…

I also use Xfce, X11 and pipewire. I think, the sound hardware is the crucial difference.

edit: Here’s how Gemini explains the issue, looks like the particular webcam causes the crash in my case (and possibly also for other users):

With recent updates (PipeWire 1.6.9 / WirePlumber 0.5.18), camera support was split into a separate package (pipewire-libcamera). However, WirePlumber’s default startup scripts attempt to enumerate camera devices using the api.libcamera.enum.manager plugin.

On systems where compatible camera hardware is detected by the kernel, WirePlumber triggers this initialization. When pipewire-libcamera is missing, this can cause the initialization thread to crash or abort. Because WirePlumber acts as the single session manager for both audio and video, this failure prevents the audio graph from building, leaving pavucontrol with no audio devices.

Installing pipewire-libcamera restores the required plugin, allowing WirePlumber to complete initialization and restore audio functionality. Systems without such camera hardware are unaffected, which is why the issue does not occur on every machine.

I can remove pipewire-libcamera and disconnect the USB webcam to test the hypothesis, if it helps. I’d expect the issue to not appear in this case.

I think what Gemini found may not be the whole story. If pipewire-libcamera is missing, enumerating the camera devices should fail gracefully, ie, it should be skipped.

Would be interesting. Don’t forget to restart - at least restart wireplumber after the changes with systemctl --user restart wireplumber.

Maybe upstream didn’t expect people to split the pipewire stack in several packages? :smiley: But probably worth reporting the issue upstream then!

I can’t reproduce the issue any more by uninstalling pipewire-libcamera (and keeping the webcam plugged in)… Maybe @Teo was right when he wrote this:

But then, why installing pipewire-libcamera triggered whatever it did trigger but reinstalling all the other pipewire packages didn’t do so?

I’m really puzzled and open for ideas what I could test to further debug this issue!

edit: Maybe I need to delete the cache in ~/.cache to reproduce the issue again. Will try it tomorrow!

Seems like the camera, when connected, changes something. It probably creates several devices, if it has a microphone, and this is where it get complicated. So if this libcamera (it is a single .so file) solves it for you in this particular setup, then super.

I could understand if the camera device failed to be enumerated as a video and audio device, but the onboard audio should not have also failed unless wireplumber was affected

This comment from Gemini seems completely wrong:

No mention of this split in PipeWire changelog, and pipewire-libcamera has been mentioned in previous topics so it is not a new package

The only thing I can find that seems to relate to libcamera is in the latest version of WirePlumber, but that has only been released to Arch extra-staging branch at the moment

Releases — WirePlumber 0.5.19 documentation

Added the monitor.camera.seat-monitoring feature, which makes the V4L2 and libcamera monitors enumerate cameras only while the logind session is active, so that cameras are no longer skipped when WirePlumber starts before the session gets access to them. This is enabled by default (#1049; !939)

If you cannot get back to the non-working state, it was possibly resolved by clearing ~/.local/state/wireplumber/ after the downgrade

It actually has a microphone, which might be the distinction that made the issue appear.

I’m pretty sure that I did that, but it didn’t help. What eventually helped was then to install the libcamera module.

Unfortunately, I still cannot trigger the issue, even by removing ~/.local/state/wireplumber/ and restarting the pipewire and wireplumber services. Now wireplumber reports the following:

systemd[1176]: Started Multimedia Service Session Manager.
wireplumber[6836]: wp-device: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
wireplumber[6836]: s-monitors-libcamera: PipeWire's libcamera SPA plugin is missing or broken. Some camera types may not be supported.

But audio devices still correctly function.

I fear, I cannot contribute to testing in this issue any more…

Most Logitech webcams have a built-in microphone, and inxi data in original post shows Logitech HD Webcam C525 is detected as a Graphics device and Audio device.
inxi data also shows 2 drivers for this device:

  • USB audio driver: snd-usb-audio
  • USB Video Class driver: uvcvideo

Since PipeWire/WirePlumber is a multimedia server (audio & video) a problem with either audio or video could have caused the issue with WirePlumber that affected the other audio devices

ArchWiki suggests removing this folder to Delete corrupted settings. It is also possible to use wpctl reset to reset PipeWire to default state and restart wireplumber.service

If the folder did contain any corrupted or mis-configured settings they are unlikely to be re-created by anything else used to get audio working.

If there is no backup copy or snapshot of the “corrupted” folder, there is no way to verify if it was a problem.
But if a similar issue happens again when WirePlumber is updated, I would suggest checking WirePlumber status and objects before reset:

wpctl status; wpctl list-objects