Accessing virtual MIDI devices crashes pipewire
- PipeWire version (
pipewire --version
):pipewire Compiled with libpipewire 0.3.84 Linked with libpipewire 0.3.84
- Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Arch Linux - Desktop Environment: Plasma
- Kernel version (
uname -r
):Linux smain 6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux
Description of Problem:
Connecting virtual MIDI device to real MIDI device using patchbay and trying to access the virtual device using the REAPER extension DrivenbyMoss crashes pipewire
How Reproducible:
Steps to Reproduce:
- modprobe snd-virmidi snd_index=4
- configure REAPER extension DrivenByMoss to use respective VirMidi-Ports
- Close REAPER
- connect MIDI device to virmidi device using patchbay
- start REAPER
Actual Results:
Pipewire crashes during REAPER's init.
Expected Results:
No crash.
Additional Info:
GDB:
Thread 1 "pipewire" received signal SIGSEGV, Segmentation fault. 0x00007f024932d1d2 in run_nodes (node=node@entry=0x563866fa3330, nodes=nodes@entry=0x7ffd51872dc0, direction=direction@entry=SPA_DIRECTION_INPUT, context=<optimized out>) at ../pipewire/src/pipewire/context.c:793 793 static inline int run_nodes(struct pw_context *context, struct pw_impl_node *node
BT:
#0 0x00007f024932d1d2 in run_nodes (node=node@entry=0x563866fa3330, nodes=nodes@entry=0x7ffd51872dc0, direction=direction@entry=SPA_DIRECTION_INPUT, context=<optimized out>) at ../pipewire/src/pipewire/context.c:793
#1 0x00007f024932d2cc in run_nodes (node=node@entry=0x563866fa3330, nodes=nodes@entry=0x7ffd51872dc0, direction=direction@entry=SPA_DIRECTION_INPUT, context=<optimized out>) at ../pipewire/src/pipewire/context.c:816
with line #1 being endlessly repeated.
Notes:
DrivenByMoss is an extension for REAPER that enables MIDI controller support for advanced DAW functions. To do this, it seems to depend on some kind of "direct" access to the MIDI device. I infer this from this post from a JACK user having the same use case as I do: https://forum.cockos.com/showpost.php?p=2515366&postcount=2039