Hello.
I am testing the midiobserve program on Ubuntu 24.04 and it crashes when plugging a USB MIDI keyboard (Arturia Keylab 61).
Here is the gdb output with midiobserve compiled in DEBUG :
$ gdb ./midiobserve
GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./midiobserve...
(gdb) run
Starting program: /home/user/Dev/MIDI/libremidi/build_debug/midiobserve
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n])
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libjack.so.0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Displaying ports for: ALSA (sequencer)
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/alsa-lib/libasound_module_conf_pulse.so
warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libpulse.so.0
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-16.1.so
[New Thread 0x7ffff6c006c0 (LWP 26436)]
Displaying ports for: ALSA (raw)
[New Thread 0x7ffff62006c0 (LWP 26437)]
Displaying ports for: JACK
[New Thread 0x7ffff6c896c0 (LWP 26438)]
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
[Thread 0x7ffff6c896c0 (LWP 26438) exited]
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Displaying ports for: PipeWire
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-support.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-journal.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/spa-0.2/support/libspa-dbus.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-protocol-native.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-client-node.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-client-device.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-adapter.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-metadata.so
warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-session-manager.so
[New Thread 0x7ffff58006c0 (LWP 26439)]
[New Thread 0x7ffff4e006c0 (LWP 26440)]
PipeWire : input added [ client: 0, port: 41, device_name: Midi Through, port_name: Midi Through:(capture_0) Midi Through Port-0, display_name: Midi Through Port-0]
PipeWire : output added [ client: 0, port: 40, device_name: Midi Through, port_name: Midi Through:(playback_0) Midi Through Port-0, display_name: Midi Through Port-0]
Displaying ports for: Computer keyboard
Displaying ports for: Dummy
... waiting for hotplug events ...
PipeWire : output added [ client: 0, port: 67, device_name: Arturia KeyLab Essential 61, port_name: Arturia KeyLab Essential 61 2:(playback_0) Arturia KeyLab Essential 61 MID, display_name: Arturia KeyLab Essential 61 MID]
PipeWire : input added [ client: 0, port: 68, device_name: Arturia KeyLab Essential 61, port_name: Arturia KeyLab Essential 61 2:(capture_0) Arturia KeyLab Essential 61 MID, display_name: Arturia KeyLab Essential 61 MID]
PipeWire : output added [ client: 0, port: 69, device_name: Arturia KeyLab Essential 61, port_name: Arturia KeyLab Essential 61 2:(playback_1) Arturia KeyLab Essential 61 DAW, display_name: Arturia KeyLab Essential 61 DAW]
PipeWire : input added [ client: 0, port: 70, device_name: Arturia KeyLab Essential 61, port_name: Arturia KeyLab Essential 61 2:(capture_1) Arturia KeyLab Essential 61 DAW, display_name: Arturia KeyLab Essential 61 DAW]
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string: construction from null is not valid
ALSA (raw) : input added [ client: 0, container: pci-0000:00:14.0-usb-0:2:1.0, device_id: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/sound/card2/controlC2, port: 2, manufacturer: Arturia KeyLab Essential 61, device_name: Arturia KeyLab Essential 61, port_name: Arturia KeyLab Essential 61 MID, display_name: Arturia KeyLab Essential 61 MID, type: hardware, usb]
ALSA (raw) : input added [ client: 0, container: pci-0000:00:14.0-usb-0:2:1.0, device_id: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/sound/card2/controlC2, port: 4294967298, manufacturer: Arturia KeyLab Essential 61, device_name: Arturia KeyLab Essential 61, port_name: Arturia KeyLab Essential 61 DAW, display_name: Arturia KeyLab Essential 61 DAW, type: hardware, usb]
Thread 2 "midiobserve" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff6c006c0 (LWP 26436)]
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
warning: 44 ./nptl/pthread_kill.c: Aucun fichier ou dossier de ce nom
(gdb)
Thank you for your help.
Hello.
I am testing the midiobserve program on Ubuntu 24.04 and it crashes when plugging a USB MIDI keyboard (Arturia Keylab 61).
Here is the gdb output with midiobserve compiled in DEBUG :
Thank you for your help.