Jack clients break unsless there is other audio playing
- PipeWire version (
pipewire --version
): Compiled with libpipewire 0.3.56, Linked with libpipewire 0.3.56 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Arch Linux - Desktop Environment: AwesomeWM wiht xfce elements
- Kernel version (
uname -r
): 5.18.16-arch1-1
Description of Problem:
After some update - not sure which - I started having problem with launching jack applications. I discovered that I need to have some other sound application playing (like firefox, or mpv). Otherwise I get ERR in pw-top rising to crazy amounts (like 10-50 per second), WAIT, BUSY, W/Q and B/Q are +++:
S ID QUANT RATE WAIT BUSY W/Q B/Q ERR NAME
28 1024 96000 10,2ms 0,1µs 0,96 0,00 0 Dummy-Driver
! 77 0 0 +++ +++ +++ +++ 562 + Carla
S ID QUANT RATE WAIT BUSY W/Q B/Q ERR NAME
! 28 0 0 0,0µs 0,0µs 0,00 0,00 0 Dummy-Driver
! 29 0 0 0,0µs 0,0µs 0,00 0,00 0 Freewheel-Driver
! 39 0 0 0,0µs 0,0µs 0,00 0,00 0 Midi-Bridge
57 1024 96000 10,7ms 7,7µs 1,00 0,00 0 alsa_output.usb-PreSonus_PreSonus_AudioBo
! 77 1024 96000 +++ +++ +++ +++ 51448 + Carla
! 55 0 0 0,0µs 0,0µs 0,00 0,00 0 alsa_input.usb-PreSonus_PreSonus_AudioBo
! 87 0 0 0,0µs 0,0µs 0,00 0,00 0 Surge XT
Those +++ persist even when it switches to actual alsa device from Dummy Driver. when I add some plugin like Surge XT - it shows "Audio Output Unavailable" and doesn't play any sound. Carla and Ardour also show DSP load 100%.
There seem to be ALSA lib errors (Attached below) when I try to use Ardour, for Carla there is no output after libjack.so.0 loaded successfully!
My workaround for now is this script:
#!/bin/sh
samples=96000;
mpv --volume=0 ~/Music/Terraria/Terraria_Soundtrack_01-Overworld-Day.mp3 &
pw-metadata -n settings 0 clock.rate $samples;
sleep 2;
PIPEWIRE_LATENCY="256/$samples" pw-jack /usr/bin/carla ~/carla-test.carxp &
sleep 1;
kill %1
With that script it works good usually. It will still break in Carla sometimes when mpv closes and I don't add any plugin making sound before mpv closes. Or if I remove all plugins after mpv closed, WAIT a few seconds (if I don't wait, it won't break) and than add one back again. For Ardour kill %1.2.0 actually needs to be just before launching it... Dunno why, but it works usually.
How Reproducible:
I have no idea. I get that consistently on one of my computers. I have very similar setup on my laptop and it works fine there even with the same audio interface. Please let me know about any additional information that I could attach and could be useful.
Actual Results:
jack aplications don't produce sound, Ardour won't even play the timeline.
Expected Results:
jack aplications working normally.
S ID QUANT RATE WAIT BUSY W/Q B/Q ERR NAME
! 28 0 0 0,0µs 0,0µs 0,00 0,00 0 Dummy-Driver
! 29 0 0 0,0µs 0,0µs 0,00 0,00 0 Freewheel-Driver
! 40 0 0 0,0µs 0,0µs 0,00 0,00 0 Midi-Bridge
59 256 96000 52,1µs 3,5µs 0,02 0,00 0 alsa_output.usb-PreSonus_PreSonus_AudioB
83 256 96000 10,0µs 1,0µs 0,00 0,00 0 + Carla
81 256 96000 9,5µs 35,2µs 0,00 0,01 27 + Surge XT
! 60 0 0 0,0µs 0,0µs 0,00 0,00 0 alsa_input.usb-PreSonus_PreSonus_AudioBo
Additional Info (as attachments):
-
pw-dump > broken-carla.log
: broken-carla.log - I tried switching wireplumber to pipewire-media-session (with a reboot in between), but the result was the same.
-
pw-jack /usr/bin/ardour6 > broken-ardour.log
: broken-ardour.log