easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

easyeffects pipewire buffer allocation failed, audio on one channel drops

Open me-tiny opened this issue 7 months ago • 53 comments

EasyEffects Version

8.2.0

What package are you using?

Arch (easyeffects)

Distribution

Arch Linux

Describe the bug

watching a video on my browser (Zen, firefox based), then pausing it causes my audio to die on one side of headphones, then eventually both are gone. restarting both pipewire (systemctl --user restart pipewire.service) and easyeffects fixes temporarity

Expected Behavior

No response

Debug Log

Debug Log

easyeffects --debug run eq profile for my headphones pipewire.conf PIPEWIRE_DEBUG=3 run pwdump the main error that happens when i encounter the bug

Additional Information

kernel: 6.19.11-arch1-1 dac: Schiit Modi 3 usb pacman -Q easyeffects pipewire wireplumber

easyeffects 8.2.0-1
pipewire 1:1.6.3-1
wireplumber 0.5.14-1

seems to be an issue with easyeffects and pipewire together, disabling easyeffects gets rid of the issue completely. if this is relevant to the pipewire side, i can move the issue to their repo

what i've tried so far:

  • had allowed-rates of pipewire.conf [ 44100 88200 176400 48000 96000 192000 ], dropped to [ 44100 48000 ] with no change
  • had pro-audio profile enabled, changed to analog-stereo with no change

me-tiny avatar Apr 18 '26 21:04 me-tiny

if this is relevant to the pipewire side, i can move the issue to their repo

I did that almost 3 years ago https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/3547. But unfortunately no one knows why this happens. A few months ago the problem seemed gone. But the latest pipewire versions seem to make it easier for this bug to happen.

wwmm avatar Apr 18 '26 22:04 wwmm

restarting both pipewire (systemctl --user restart pipewire.service) and easyeffects fixes temporarity

Usually when the missing channel bug happens toggling easyeffects on/off button in its window top left corner is enough to bring audio back. I never needed to restart pipewire.

wwmm avatar Apr 18 '26 22:04 wwmm

restarting both pipewire (systemctl --user restart pipewire.service) and easyeffects fixes temporarity

Usually when missing channel bug happens toggling easyeffects on/off button in its window top left corner is enough to bring audio back. I never needed to restart pipewire.

yup simply toggling effects fixes it. i do seem to be able to consistently reproduce this issue, could be useful to identify what's going on with it

me-tiny avatar Apr 18 '26 22:04 me-tiny

I am also experiencing this bug. I have been observing the audio path using coppwr and I have noticed connections from the spectrum node to the output_level node not being created. Manually adding these connections enables audio to through the rest of the pipeline.

zomgugoff avatar Apr 24 '26 03:04 zomgugoff

I am also experiencing this bug. I have been observing the audio path using coppwr and I have noticed connections from the spectrum node to the output_level node not being created. Manually adding these connections enables audio to through the rest of the pipeline.

If the links are not being made something worse is happening on your side. The usual "missing channel" bug happens even if the links are there and pipewire reports they are active.

wwmm avatar Apr 24 '26 04:04 wwmm

If the links are not being made something worse is happening on your side. The usual "missing channel" bug happens even if the links are there and pipewire reports they are active.

Oh... I assumed it was the same issue because sometimes only one channel is missing and toggling the effects off/on restores any missing links.

zomgugoff avatar Apr 24 '26 04:04 zomgugoff

~seems the issue has disappeared on pipewire 1:1.6.4-1, can be closed (until it reappears)~ i was incorrect, it didn't disappear

me-tiny avatar Apr 27 '26 07:04 me-tiny

I also started to have these issues around a month or so ago (maybe two, not so sure). I start the playback and sound comes from one channel only (happens occasionally). If i toggle easyeffects off and on again, the problem disappears. In addition, there is this "static" noise coming in some of the times (usually from one channel only) when audio starts to play. If i start to play something else in some other app, noise disappears. If i toggle easyeffects off and on again, the static noise goes away. Both these issues started around the same time so i am assuming either an update to easyeffects or pipewire is causing this. The other bug report that is similar to what i am experiencing is this: https://github.com/wwmm/easyeffects/issues/5015

I am on Arch ARM. Latest version installed from the official arch repo.

PS1: The issue seems to be happening only on the "first" attempt of playback from an app. It happens during the initial playback of any app that plays the audio. After toggling off and on again, it doesn't repeat. However, another app at another time might once again cause the same issue which could be resolved the same way. PS2: "It doesn't happen all the time". PS3: Toggling easyeffects off and on again takes a rather "longer" time than it used to be by the way. It used to be very fast in the past, i remember. Now when i toggle, the system kind of hangs a little bit. Maybe of interest for the developer.

glanduin avatar Apr 27 '26 18:04 glanduin

I'm also finding that the git build is working properly compared to the latest stable build on Arch.

zomgugoff avatar Apr 27 '26 22:04 zomgugoff

I use easyeffects-git everyday so I can test the latest changes and the missing channel bug can happen with it too. I doubt it is even possible to fix this on our side. As discussed at https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/3547 it is more likely to be a pipewire bug.

wwmm avatar Apr 27 '26 23:04 wwmm

I use easyeffects-git everyday so I can test the latest changes and the missing channel bug can happen with it too. I doubt it is even possible to fix this on our side. As discussed at https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/3547 it is more likely to be a pipewire bug.

Yes, still happens unfortunately. Toggling easyeffect off and back on fixes it. At least it happens only occasionally (in my case).

glanduin avatar Apr 29 '26 17:04 glanduin

I had this problem but downgraded to 7.2.5 and am no longer experiencing this issue.

rsxrwscjpzdzwpxaujrr avatar Apr 29 '26 19:04 rsxrwscjpzdzwpxaujrr

I had this problem but downgraded to 7.2.5 and am no longer experiencing this issue.

The old gtk branch also suffered with this bug. Sometimes it took months for me to see it happening. But it eventually happened. Some pipewire versions seem more prone to cause it than others. Whatever it is wrong with pipewire it is very random. I could never reproduce this bug when I wanted it to happen. Be it on the gtk or the qt branch.

wwmm avatar Apr 29 '26 20:04 wwmm

I've been having the same issues, changing to another profile and then setting the previous one back on seems to solve it temporary, however, starting a new stream such as MPV or even a game brings back the issue, the weirdest one is RMPC, its audio flickers, again solved by changing easyeffects' preset.

Ljosilfr avatar Apr 30 '26 17:04 Ljosilfr

It seems that we have new PipeWire bugs on top of the one that has been happening for years. While doing seeks in a Youtube video played by Firefox one of the channels lost audio. In the output of pw-dot I see

Image

. For some reason pipewire linked only one of Firefox's channels. While the ones EasyEffects requested between our virtual sink and the soundcard were created. That is very different from how the older bug I reported to pipewire's developers caused lack of audio.

More things than I initially imagined seem to have regressed in pipewire's links management. Links between filters and devices is manually handled on our side. But the one between players and our virtual sink is entirely managed by pipewire/wireplumber.

wwmm avatar May 02 '26 01:05 wwmm

I've had that exact bug for maybe two weeks now as well, reconnecting the links through qpwgraph has always worked to fix it 👍

edwloef avatar May 02 '26 05:05 edwloef

It is happening to me too in Fedora KDE 44, installed few days ago. Same problem was on CachyOS (Arch based) with same setup. I just open sound settings in KDE and "test" sound on left and right and sound is back in both channels. Sometimes it doesn't work, sometimes muting audio in web browser (LibreWolf in my case) and unmuting it few times sets everything to normal. Output of pipewire service:

`systemctl --user status pipewire ● pipewire.service - PipeWire Multimedia Service Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: disabled) Drop-In: /usr/lib/systemd/user/pipewire.service.d └─00-uresourced.conf /usr/lib/systemd/user/service.d └─10-timeout-abort.conf Active: active (running) since Sat 2026-05-09 23:20:57 EEST; 48min ago Invocation: 2a106052c05641429e5a4d08cee3f3b9 TriggeredBy: ● pipewire.socket Main PID: 2087 (pipewire) Tasks: 3 (limit: 16455) Memory: 53.7M (peak: 80M) CPU: 6.674s CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pipewire.service └─2087 /usr/bin/pipewire

May 09 23:59:52 fedora pipewire[2087]: pw.link: (187.0.0 -> 161.0.0) allocating -> error Buffer allocation failed (-5) (paused-paused) May 09 23:59:52 fedora pipewire[2087]: pw.link: (187.1.0 -> 161.1.0) allocating -> error Buffer allocation failed (-5) (paused-paused) May 10 00:04:22 fedora pipewire[2087]: pw.core: 0x564a70eb0480: error -5 for resource 72: port_use_buffers(0:1:0) error: Input/output error May 10 00:04:22 fedora pipewire[2087]: mod.client-node: 0x564a70fa1410: error seq:25262 -5 (port_use_buffers(0:1:0) error: Input/output error) May 10 00:04:22 fedora pipewire[2087]: pw.core: 0x564a70eb0480: error -5 for resource 72: port_use_buffers(1:0:-1) error: Input/output error May 10 00:04:22 fedora pipewire[2087]: mod.client-node: 0x564a70fa1410: error seq:25265 -5 (port_use_buffers(1:0:-1) error: Input/output error) May 10 00:04:22 fedora pipewire[2087]: pw.core: 0x564a70eb0480: error -5 for resource 67: port_use_buffers(0:0:0) error: Input/output error May 10 00:04:22 fedora pipewire[2087]: mod.client-node: 0x564a75724e80: error seq:25267 -5 (port_use_buffers(0:0:0) error: Input/output error) May 10 00:04:22 fedora pipewire[2087]: pw.link: (64.1.0 -> 82.1.0) allocating -> error Buffer allocation failed (-5) (paused-paused) May 10 00:04:22 fedora pipewire[2087]: pw.link: (82.0.0 -> 174.0.0) allocating -> error Buffer allocation failed (-5) (paused-paused)`

ghost avatar May 09 '26 21:05 ghost

The next pipewire release may fix the bug related to buffers errors https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/9b04249f37c0643392bb61434a9aad96c7cf8a66.

wwmm avatar May 09 '26 22:05 wwmm

The next pipewire release may fix the bug related to buffers errors https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/9b04249f37c0643392bb61434a9aad96c7cf8a66.

It is better, channels no longer muted from starting playback. But it's still wonky: Audio starts playing, but effects are not applied, need to toggle it off and on to get it better; After pausing playback there is a chance that it'll be muted;

If it's must be, I can create separate issue, or this comment will be enough? Funny thing that it was fine few months ago on Arch (until it started muting itself) and it's weebly wobbly now on Fedora (which supposed to be stable).

dnf info.txt easyeffects --debug.txt pw-dump.txt status pipewire.txt

ghost avatar May 15 '26 09:05 ghost

Audio starts playing, but effects are not applied, need to toggle it off and on to get it better; After pausing playback there is a chance that it'll be muted;

What your are observing is probably the older bug I reported to pipewire's developers a few years ago https://gitlab.freedesktop.org/pipewire/pipewire/-/work_items/3547

wwmm avatar May 15 '26 23:05 wwmm