davidmoreno / rtpmidid

RTP MIDI (AppleMIDI) daemon for Linux
Other
178 stars 39 forks source link

rtpmidid.service coredump #74

Closed jpnielsen closed 3 years ago

jpnielsen commented 3 years ago

On Ubuntu 21.04 server (Linux ubuntu-vbox 5.11.0-31-generic) in a VirtualBox (Version 6.1.26 r145957) running on a Windows 10 host.

I built rtpmidid from git, and installed the deb's

Aug 21 08:08:57 ubuntu-vbox systemd[1]: Started rtpmidid.
Aug 21 08:08:57 ubuntu-vbox rtpmidid[27313]: rtpmidid: browser.c:583: avahi_service_browser_new: Assertion `client' failed.
Aug 21 08:08:57 ubuntu-vbox systemd[1]: rtpmidid.service: Main process exited, code=dumped, status=6/ABRT
Aug 21 08:08:57 ubuntu-vbox systemd[1]: rtpmidid.service: Failed with result 'core-dump'.
Aug 21 08:08:57 ubuntu-vbox systemd[1]: rtpmidid.service: Scheduled restart job, restart counter is at 1.
Aug 21 08:08:57 ubuntu-vbox systemd[1]: Stopped rtpmidid.
Aug 21 08:08:57 ubuntu-vbox systemd[1]: Started rtpmidid.
Aug 21 08:08:57 ubuntu-vbox rtpmidid[27364]: rtpmidid: browser.c:583: avahi_service_browser_new: Assertion `client' failed.
Aug 21 08:08:57 ubuntu-vbox systemd[1]: rtpmidid.service: Main process exited, code=dumped, status=6/ABRT
Aug 21 08:08:57 ubuntu-vbox systemd[1]: rtpmidid.service: Failed with result 'core-dump'.

etc.

Can you help troubleshoot - it's a server install, but I think midi is configured in the kernel.

grep -i MIDI /boot/config-5.11.0-31-generic

CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQ_MIDI_EVENT=m
CONFIG_SND_SEQ_MIDI=m
CONFIG_SND_SEQ_MIDI_EMUL=m
CONFIG_SND_SEQ_VIRMIDI=m
CONFIG_SND_VIRMIDI=m
CONFIG_USB_F_MIDI=m
CONFIG_USB_CONFIGFS_F_MIDI=y
CONFIG_USB_MIDI_GADGET=m

I don't know where to go from here.

jpnielsen commented 3 years ago

I figured it out.

sudo rtpmidid

[2021-08-22T01:38:35Z] [main.cpp:54] Real Time Protocol Music Instrument Digital Interface Daemon - 21.07.1
[2021-08-22T01:38:35Z] [main.cpp:56] (C) 2019-2021 David Moreno Montero <dmoreno@coralbits.com>
[2021-08-22T01:38:35Z] [mdns_rtpmidi.cpp:97] watch_new 5 1
[2021-08-22T01:38:35Z] [poller.cpp:121] Not added to timer list, but to call later list. 0ms
[2021-08-22T01:38:35Z] [mdns_rtpmidi.cpp:360] Error creating avahi client: -26 Daemon not running
rtpmidid: browser.c:583: avahi_service_browser_new: Assertion `client' failed.
Aborted (core dumped)

sudo apt install avahi-daemon

sudo systemctl start rtpmidid
sudo systemctl status rtpmidid

● rtpmidid.service - rtpmidid
     Loaded: loaded (/etc/systemd/system/rtpmidid.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2021-08-22 01:42:48 UTC; 2s ago
   Main PID: 1684 (rtpmidid)
      Tasks: 1 (limit: 9414)
     Memory: 660.0K
     CGroup: /system.slice/rtpmidid.service
             └─1684 /usr/bin/rtpmidid

Aug 22 01:42:48 ubuntu-vbox systemd[1]: Started rtpmidid.