[Ubuntu | MIDI] PortAudio options are empty and application crashes

• Jan 25, 2020 - 19:20
Reported version
3.3
Type
Functional
Frequency
Many
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

Hi. MuseScore doesn't recognize my MIDI keyboard (Roland JV-50) because the PortAudio options are empty.

When I select PortAudio and press OK button, the application crashes.

OS: Ubuntu Core 18 (Ubuntu 19.10).
Arch.: x86_64.
MuseScore version (64-bit): 3.3.4.
Revision: 7684abe.

I've test the same MIDI keyboard with the same USB device (UM-2G MIDI) on a Windows 10 virtual machine and MuseScore recognizes it, I can use it.

Thanks.


Comments

Can confirm, I am also seeing this exact issue (with a Kawai keyboard). When run in a terminal, the failing log line is:

mscore: src/hostapi/alsa/pa_linux_alsa.c:1454: BuildDeviceList: Assertion `devIdx < numDeviceNames' failed.

I can successfully see data coming in from the keyboard by using amidi, so Ubuntu's sound stack is detecting it correctly.

Workaround No Yes

I have the same problem. No MIDI input and selecting PortAudio crashes the program. I have gotten it to work using this command line in terminal:

    musescore3 -a alsa

Not sure why this works. Alsa is not selected in the Preferences, Pulse Audio still is. In my attempt to get it to work, I tried reloading PortAudio and Alsa, but not sure I accomplished anything, since I am not an expert in Linux.

Regression No Yes
Workaround Yes No

I have the same problem with Musescore 3.6.3: when I select PortAudio, Musescore crashes;
Only PulseAudio makes sound and the I've got no input from the midi keyboard.
On the other hand, all sounds and midi inputs work fine with Musescore 3.2.3.

Regression Yes No
Workaround No Yes

Regressiion vs.whar? And why would that workaround not work for you?
Anyway, if you don't have this issue with 3.2.3, it'd be a different issue.