wireplumber icon indicating copy to clipboard operation
wireplumber copied to clipboard

WirePlumber 0.5.15 memory leak when libcamera SPA plugin is enabled (Logitech 046d:0825)

Open RainXuZhang opened this issue 5 months ago • 1 comments

Distribution: Arch Linux (fully updated)

Packages: wireplumber 0.5.15-1 pipewire 1.6.7-1

Problem:

WirePlumber's memory usage continuously increases after startup.

Within a few minutes: VmRSS: ~1.2 GB VmSize: ~1.9 GB

It eventually reaches several gigabytes.

There is no file descriptor leak (46 FDs), and PipeWire itself appears normal.

The leak disappears completely if I disable the module /usr/lib/spa-0.2/libcamera/libspa-libcamera.so.

After renaming that plugin and restarting pipewire + wireplumber, memory remains stable (<100 MB).

Hardware:

Logitech webcam USB ID: 046d:0825

Relevant journal output:

spa.bluez5: BlueZ system service is not available libcamera v0.7.1 Adding camera 'SB.PCI0.EHC1.HUBN.PR01.PR15-1.5:1.0-046d:0825'

Memory while leaking:

VmRSS: 1208772 kB VmSize: 1942720 kB VmData: 1371488 kB

The leak occurs even when PipeWire has only normal audio devices and Firefox audio.

I'm pretty sure this hasn't been posted before, thanks for reading.

RainXuZhang avatar Jul 01 '26 22:07 RainXuZhang

OH CRAP IT'S BACK 2.4GB RAM using 10% of CPU (i7 3770k)

RainXuZhang avatar Jul 01 '26 22:07 RainXuZhang