Pipewire crashes when removing plugin from Carla Rack
Steps to reproduce:
- Using pipewire from master
- Run Carla Rack (I'm using compiled version from the master branch, because the "stable" one from ubuntu studio repo doesn't work at all with pipewire)
- Set Carla Rack Process Mode to "Multiple Clients"
- Add some plugin (SurgeXT in my case, clap version), connect MIDI and audio output
- remove the plugin
Dmesg:
[ 827.865467] pipewire[4205]: segfault at 0 ip 00007fb50c41e930 sp 00007ffc0f8319d0 error 4 in libspa-alsa.so[7fb50c3c6000+b4000] likely on CPU 5 (core 1, socket 0)
gdb:
Attaching to process 12464
[New LWP 12466]
[New LWP 12468]
[New LWP 12481]
[New LWP 12482]
--Type <RET> for more, q to quit, c to continue without paging--
[New LWP 12483]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f643151dff6 in epoll_wait (epfd=4, events=events@entry=0x7ffe3cb49070, maxevents=32, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
30 ../sysdeps/unix/sysv/linux/epoll_wait.c: Nie ma takiego pliku ani katalogu.
(gdb) continue
Continuing.
Thread 1 "pipewire" received signal SIGSEGV, Segmentation fault.
impl_node_port_set_param (object=0x7f6421901038, direction=SPA_DIRECTION_OUTPUT, port_id=<optimized out>, id=15, flags=0, param=0x0) at ../spa/plugins/alsa/alsa-seq-bridge.c:694
694 if ((res = spa_latency_parse(param, &info)) < 0)
Additional trivia:
seems that this issue occurs only when MIDI is connected AND any audio output is connected to playback device (I tested both sound cards - M-AUDIO M-Track duo and some generic on-board Cannon Lake PCH