Crash when USB device part of remap/combine is removed
Missing data may cause bugs to languish.
Using USB sound card, when using channel remap sink and then combine sink, removing the USB device let PulseAudio unresponsive.pa-info.txt
pa-info.txt attached. Running up-to-date Manjaro (Gnome)
Steps to reproduce
(context: I'm trying to use my desktop speakers acting as a front-center channel complementing the 2 loudspeaker on the left and right sides of the desk. In short, a 3.0 configuration to have better clarity for the voices.)
The desktop speakers are connected through USB: let's call the related sink usb_sink.
- I remap the desktop channels as dual center speakers using
pacmd load-module module-remap-sink sink_name=virtual_center master=usb_sink channels=2 channel_map=center,center master_channel_map=left,right remix=no
If I remove/turn off the USB speakers, the remapped sink remains, which is a bug I think, but it seems to be harmless so far.
- Going further, I combine this virtual center with the front speakers (3.0 set-up) using
pacmd load-module module-combine-sink sink_name=hc1 slaves=front_sink,virtual_center channels=4 channel_map=left,right,center,center
Now, if the USB card is deconnected, PulseAudio crashes and applications/volume control etc can no longer connect to it. I have to restart it using
systemctl --user restart pulseaudio.socket
which takes more than one minute for PulseAudio to give up and restart.
What is the current bug behavior?
Modules stacked on top of USB sound card are not correctly unloaded.
What is the expected correct behavior?
All dependent modules must be removed.