Playback breaks after A2DP device disconnects
I paired a set of cheap wireless earbuds (Gabba Goods TrueBuds Pro) and they worked fine. When I turn off the earbuds however, PW audio sometimes completely breaks down (it doesn't fallback to integrated audio or anything like that). New PulseAudio clients don't even appear in pavucontrol, seems like the playback streams fail completely. Logs showed this error for Spotify for example:
Jan 08 14:07:17 blackbox pipewire-media-session[2677]: node 115 target:144 not found, find fallback:1
Jan 08 14:07:17 blackbox pipewire-media-session[2677]: no node found for 115
Jan 08 14:07:17 blackbox pipewire-pulse[2381]: stream 0x55b2db72e830: error no node available
Jan 08 14:07:17 blackbox pipewire-pulse[2381]: pulse-server 0x55b2d9ea0550: [spotify] ERROR command:-1 (invalid) tag:458 error:25 (Input/output error)
Firefox fails in a quite similar fashion:
Jan 08 14:17:58 blackbox pipewire-media-session[2677]: node 165 target:144 not found, find fallback:1
Jan 08 14:17:58 blackbox pipewire-media-session[2677]: no node found for 165
Jan 08 14:17:58 blackbox firefox.desktop[48170]: [Child 48170, AudioIPC0] WARNING: 7fbeec3ed660 StateCallback() state 0 cubeb error: file /builddir/build/BUILD/firefox-84.0.1/dom/media/AudioStream.cpp:681
Jan 08 14:17:58 blackbox pipewire-pulse[2381]: stream 0x55b2da2dafe0: error no node available
Jan 08 14:17:58 blackbox pipewire-pulse[2381]: pulse-server 0x55b2d7168ef0: [Firefox] ERROR command:-1 (invalid) tag:31893 error:25 (Input/output error)
Jan 08 14:17:58 blackbox firefox.desktop[48170]: [Child 48170, MediaDecoderStateMachine #1] WARNING: 7fbeec3ed660 OpenCubeb() failed to init cubeb: file /builddir/build/BUILD/firefox-84.0.1/dom/media/AudioStream.cpp:334
Jan 08 14:17:58 blackbox firefox.desktop[48170]: [Child 48170, MediaDecoderStateMachine #1] WARNING: Decoder=7fbee9b1e400 [OnMediaSinkAudioError]: file /builddir/build/BUILD/firefox-84.0.1/dom/media/MediaDecoderStateMachine.cpp:3892
I can only fix it by restarting PW.