Issues with pipewire and OBS

Hi!, i’m having some issues with pipewire on a new instalation of cachyos (new user!), when OBS (Both, the Flatpak and the AUR obs-browser) is open capturing audio (or the screen via pipewire, idk) pipewire stops and restarts constantly, sometimes making OBS crash.

The behavior i see is that it deletes all the audio sources and then re-adds them every 2 seconds except any virtual sources I’ve created (yes, I’ve tried to start the system without them, no luck), making it impossible to capture and listen to audio, this stops when i close OBS or i restart pipewire and wireplumber via terminal but don’t dare to touch the KDE’s volume applet or it’ll go haywire again.

I’ve tried different kernels, Cachy, CachyLTS and Zen (my last distro used Zen).

I’ll add some logs that might be relevant:

OBS before a crash:

info: [pipewire] Stream 0x576a48c86e30 state: "streaming" (error: none)
info: [pipewire] Stream 0x576a48ca51d0 state: "paused" (error: none)
info: [pipewire] Stream 0x576a48c86e30 state: "paused" (error: none)
info: [pipewire] Negotiated format:
info: [pipewire]     Format: 12 (Spa:Enum:VideoFormat:BGRA)
info: [pipewire]     Modifier: 0x20000044051ba01
info: [pipewire]     Size: 1151x626
info: [pipewire]     Framerate: 0/1
info: [pipewire] Stream 0x576a48ca51d0 state: "streaming" (error: none)
info: [pipewire] Negotiated format:
info: [pipewire]     Format: 12 (Spa:Enum:VideoFormat:BGRA)
info: [pipewire]     Modifier: 0x20000044051ba01
info: [pipewire]     Size: 1920x1080
info: [pipewire]     Framerate: 0/1
info: [pipewire] Stream 0x576a48c86e30 state: "streaming" (error: none)
info: [pipewire] Stream 0x576a48c86e30 state: "paused" (error: none)
info: [pipewire] Stream 0x576a48ca51d0 state: "paused" (error: none)

A python app i made and use for streaming:

Expression 'alsa_snd_pcm_prepare( stream->capture.pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2935
Expression 'AlsaStart( stream, 0 )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3250
Expression 'AlsaRestart( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3317
Expression 'PaAlsaStream_HandleXrun( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3954
Expression 'alsa_snd_pcm_prepare( stream->capture.pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2935
Expression 'AlsaStart( stream, 0 )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3250
Expression 'AlsaRestart( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3317
Expression 'PaAlsaStream_HandleXrun( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3954
Expression 'alsa_snd_pcm_prepare( stream->capture.pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2935
Expression 'AlsaStart( stream, 0 )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3250
Expression 'AlsaRestart( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3317
Expression 'PaAlsaStream_HandleXrun( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3954
Expression 'alsa_snd_pcm_prepare( stream->capture.pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2935
Expression 'AlsaStart( stream, 0 )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3250
Expression 'AlsaRestart( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3317
Expression 'PaAlsaStream_HandleXrun( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3954
Expression 'alsa_snd_pcm_prepare( stream->capture.pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2935
Expression 'AlsaStart( stream, 0 )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3250
Expression 'AlsaRestart( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3317
Expression 'PaAlsaStream_HandleXrun( self )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3954
python: src/hostapi/alsa/pa_linux_alsa.c:3391: OnExit: Assertion data' failed.
fish: Job 1, 'python main.py' terminated by signal SIGABRT (Abort)

journalctl --user -u pipewire

Dec 19 19:27:58 cachyos-acer systemd[837]: Stopped PipeWire Multimedia Service.
Dec 19 19:27:58 cachyos-acer systemd[837]: pipewire.service: Consumed 38.918s CPU time, 101.7M memory peak, 27.5M memory swap peak.
Dec 19 19:27:58 cachyos-acer systemd[837]: Started PipeWire Multimedia Service.
Dec 19 22:19:16 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:19:37 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MUSIC-BOOST_USB_Microphone_MB-306-00.mono-fallback-71) graph xrun not-triggered (0 suppressed)
Dec 19 22:19:37 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MUSIC-BOOST_USB_Microphone_MB-306-00.mono-fallback-71) xrun state:0x7a8fc343f008 pending:1/1 s:12001355505063 a:12001355555489 f:12001355560867 waiting:50426 p>
Dec 19 22:21:14 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:21:20 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:21:37 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MUSIC-BOOST_USB_Microphone_MB-306-00.mono-fallback-71) graph xrun not-triggered (1 suppressed)
Dec 19 22:21:37 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MUSIC-BOOST_USB_Microphone_MB-306-00.mono-fallback-71) xrun state:0x7a8fc343f008 pending:1/3 s:12121741493982 a:12121741598745 f:12121741600631 waiting:104763 >
Dec 19 22:21:46 cachyos-acer pipewire[126914]: pw.node: (alsa_output.usb-Skullcandy_Skullcandy_Slayer_000000000000-00.analog-stereo-69) graph xrun not-triggered (0 suppressed)
Dec 19 22:21:46 cachyos-acer pipewire[126914]: pw.node: (alsa_output.usb-Skullcandy_Skullcandy_Slayer_000000000000-00.analog-stereo-69) xrun state:0x7a8fc343e008 pending:1/2 s:12130180343946 a:12130180388785 f:12130180400728 waitin>
Dec 19 22:21:46 cachyos-acer pipewire[126914]: pw.node: (alsa_input.pci-0000_05_00.6.analog-stereo-74) graph xrun not-triggered (0 suppressed)
Dec 19 22:21:46 cachyos-acer pipewire[126914]: pw.node: (alsa_input.pci-0000_05_00.6.analog-stereo-74) xrun state:0x7a8fc3440008 pending:1/1 s:12130185188422 a:12130185221877 f:12130185224251 waiting:33455 process:2374 status:trigg>
Dec 19 22:22:48 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:22:52 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:23:08 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-58) graph xrun not-triggered (0 suppressed)
Dec 19 22:23:08 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-58) xrun state:0x7a8fc343c008 pending:1/3 s:12212783530643 a:12212783567380 f:12212783568847 waiting:36737 proces>
Dec 19 22:23:08 cachyos-acer pipewire[126914]: pw.node: (libremidi client-300) xrun state:0x7a8fc2eeb008 pending:0/1 s:12212804859593 a:12212783555996 f:12212783557881 waiting:18446744073688248019 process:1885 status:triggered
Dec 19 22:23:10 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-58) graph xrun not-triggered (187 suppressed)
Dec 19 22:23:10 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-58) xrun state:0x7a8fc343c008 pending:1/3 s:12214788646777 a:12214809976425 f:12214809980197 waiting:21329648 pro>
Dec 19 22:23:10 cachyos-acer pipewire[126914]: pw.node: (libremidi client-300) xrun state:0x7a8fc2eeb008 pending:0/1 s:12214809976425 a:12212783555996 f:12212783557881 waiting:18446744071683131187 process:1885 status:triggered
Dec 19 22:23:12 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-58) graph xrun not-triggered (187 suppressed)
Dec 19 22:23:12 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-58) xrun state:0x7a8fc343c008 pending:1/3 s:12216794023563 a:12216815355097 f:12216815357471 waiting:21331534 pro>
Dec 19 22:23:12 cachyos-acer pipewire[126914]: pw.node: (libremidi client-300) xrun state:0x7a8fc2eeb008 pending:0/1 s:12216815355097 a:12212783555996 f:12212783557881 waiting:18446744069677752515 process:1885 status:triggered
Dec 19 22:24:48 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:24:52 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:24:56 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:25:15 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-236) graph xrun not-triggered (0 suppressed)
Dec 19 22:25:15 cachyos-acer pipewire[126914]: pw.node: (alsa_input.usb-MACROSILICON_USB3._0_capture-02.analog-stereo-236) xrun state:0x7a8fc342c008 pending:1/3 s:12339500246672 a:12339500636464 f:12339500637861 waiting:389792 proc>
Dec 19 22:25:15 cachyos-acer pipewire[126914]: pw.node: (libremidi client-175) xrun state:0x7a8fc30d5008 pending:0/1 s:12339521799582 a:12339500275657 f:12339500277612 waiting:18446744073688027691 process:1955 status:triggered
Dec 19 22:25:15 cachyos-acer pipewire[126914]: pw.node: (libremidi client-175) xrun state:0x7a8fc30d5008 pending:1/1 s:12339887888462 a:12339500275657 f:12339500277612 waiting:18446744073321938811 process:1955 status:triggered (0 s>
Dec 19 22:25:17 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) graph xrun not-triggered (186 suppressed)
Dec 19 22:25:17 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) xrun state:0x7a8fc4a2a008 pending:1/2 s:12341947204486 a:12341968517067 f:12341968519372 waiting:21312581 process:2305 status:triggered
Dec 19 22:25:17 cachyos-acer pipewire[126914]: pw.node: (libremidi client-175) xrun state:0x7a8fc30d5008 pending:0/1 s:12341968517067 a:12339500275657 f:12339500277612 waiting:18446744071241310206 process:1955 status:triggered
Dec 19 22:25:19 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) graph xrun not-triggered (187 suppressed)
Dec 19 22:25:19 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) xrun state:0x7a8fc4a2a008 pending:1/2 s:12343952516811 a:12343973855862 f:12343973858795 waiting:21339051 process:2933 status:triggered
Dec 19 22:25:19 cachyos-acer pipewire[126914]: pw.node: (libremidi client-175) xrun state:0x7a8fc30d5008 pending:0/1 s:12343973855862 a:12339500275657 f:12339500277612 waiting:18446744069235971411 process:1955 status:triggered
Dec 19 22:25:21 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) graph xrun not-triggered (187 suppressed)
Dec 19 22:25:21 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) xrun state:0x7a8fc4a2a008 pending:1/2 s:12345957870377 a:12345979197624 f:12345979203281 waiting:21327247 process:5657 status:triggered
Dec 19 22:25:21 cachyos-acer pipewire[126914]: pw.node: (libremidi client-175) xrun state:0x7a8fc30d5008 pending:0/1 s:12345979197624 a:12339500275657 f:12339500277612 waiting:18446744067230629649 process:1955 status:triggered
Dec 19 22:26:57 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:27:00 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) graph xrun not-triggered (83 suppressed)
Dec 19 22:27:00 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) xrun state:0x7a8fc4a2a008 pending:1/2 s:12346875188116 a:12346876142447 f:12346876143355 waiting:954331 process:908 status:triggered
Dec 19 22:27:01 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:27:06 cachyos-acer pipewire[126914]: mod.client-node: detected old client version 5
Dec 19 22:27:24 cachyos-acer pipewire[126914]: pw.node: (libremidi client-297) xrun state:0x7a8fc30f0008 pending:1/1 s:12468677254102 a:12468655945873 f:12468655948318 waiting:18446744073688243387 process:2445 status:triggered (0 s>
Dec 19 22:27:24 cachyos-acer pipewire[126914]: pw.node: (libremidi client-297) xrun state:0x7a8fc30f0008 pending:1/1 s:12468862407004 a:12468655945873 f:12468655948318 waiting:18446744073503090485 process:2445 status:triggered (0 s>
Dec 19 22:27:25 cachyos-acer pipewire[126914]: pw.node: (libremidi client-297) xrun state:0x7a8fc30f0008 pending:1/1 s:12469670912245 a:12468655945873 f:12468655948318 waiting:18446744072694585244 process:2445 status:triggered (0 s>
Dec 19 22:27:27 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) graph xrun not-triggered (186 suppressed)
Dec 19 22:27:27 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) xrun state:0x7a8fc4a2a008 pending:1/2 s:12471713923354 a:12471735254281 f:12471735257215 waiting:21330927 process:2934 status:triggered
Dec 19 22:27:27 cachyos-acer pipewire[126914]: pw.node: (libremidi client-297) xrun state:0x7a8fc30f0008 pending:0/1 s:12471735254281 a:12468655945873 f:12468655948318 waiting:18446744070630243208 process:2445 status:triggered
Dec 19 22:27:29 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) graph xrun not-triggered (187 suppressed)
Dec 19 22:27:29 cachyos-acer pipewire[126914]: pw.node: (Dummy-Driver-29) xrun state:0x7a8fc4a2a008 pending:1/2 s:12473719254388 a:12473740595791 f:12473740599073 waiting:21341403 process:3282 status:triggered
Dec 19 22:27:29 cachyos-acer pipewire[126914]: pw.node: (libremidi client-297) xrun state:0x7a8fc30f0008 pending:0/1 s:12473740595791 a:12468655945873 f:12468655948318 waiting:18446744068624901698 process:2445 status:triggered
Dec 19 22:29:38 cachyos-acer systemd[837]: Stopping PipeWire Multimedia Service...
Dec 19 22:29:38 cachyos-acer systemd[837]: Stopped PipeWire Multimedia Service.
Dec 19 22:29:38 cachyos-acer systemd[837]: pipewire.service: Consumed 9.228s CPU time, 63.8M memory peak, 22.9M memory swap peak.
Dec 19 22:29:38 cachyos-acer systemd[837]: Started PipeWire Multimedia Service.