Musescore4 + Ubuntu + MIDI Keyboard not working
I'm running Ubuntu 22.04. MU 3.6.2 works fine. MU 4.1 does not recognise my masterkey 64 keyboard.
When I start MU4 I see a lot of output, very few lines of output with MU3 :
MU4
/lib/x86_64-linux-gnu/libjack.so.0
/lib/x86_64-linux-gnu/libnss3.so
16:44:14.778 | INFO | main_thread | GlobalModule | onPreInit: log path: /home/richardm/.local/share/MuseScore/MuseScore4/logs/MuseScore_230822_164414.log
16:44:14.778 | INFO | main_thread | GlobalModule | onPreInit: === Started MuseScore 4.1.1, build number 232071203 ===
16:44:14.792 | WARN | main_thread | IpcSocket | connect: failed connect to server
16:44:14.792 | WARN | main_thread | IpcSocket | connect: failed connect to server
16:44:14.792 | INFO | main_thread | IpcSocket | connect: success connected to ipc server
16:44:14.792 | INFO | 139908784055872 | IpcServer | listen: id: "d76f85f6368a402d8bc86353d99201a9"
16:44:14.886 | INFO | main_thread | DiagnosticsModule | onInit: success start crash handler
16:44:14.958 | ERROR | main_thread | MuseSamplerLibHandler | MuseSamplerLibHandler: Unable to open MuseSampler library, path: /home/richardm/.local/share/MuseSampler/lib/libMuseSamplerCoreLib.so
16:44:14.959 | ERROR | main_thread | MuseSamplerResolver | checkLibrary: Incompatible MuseSampler library; ignoring
16:44:14.964 | ERROR | main_thread | MuseSamplerLibHandler | MuseSamplerLibHandler: Unable to open MuseSampler library, path: libMuseSamplerCoreLib.so
16:44:14.965 | ERROR | main_thread | MuseSamplerResolver | checkLibrary: Incompatible MuseSampler library; ignoring
16:44:15.187 | WARN | main_thread | AbstractCloudService | readTokens: Could not find the tokens file: /home/richardm/.local/share/MuseScore/MuseScore4/audiocom_cred.dat
16:44:15.472 | WARN | main_thread | MidiInputOutputController | checkConnection: failed connect to device, deviceID: 0:24:0, err: failed connect, err: Operation not permitted
16:44:16.137 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.137 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.138 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.138 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.138 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.138 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.139 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.139 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.139 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.139 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.140 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.140 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.140 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.140 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.141 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.141 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.141 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:16.141 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
16:44:17.959 | ERROR | main_thread | UpdateScenario | doCheckForUpdate: Unable to check for update, error: [1701]
Also if I issue aconnect -i I see:
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 24: 'masterkey 61' [type=kernel,card=2]
0 'masterkey 61 MIDI 1'
No MuseScore thread
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 24: 'masterkey 61' [type=kernel,card=2]
0 'masterkey 61 MIDI 1'
client 128: 'MuseScore' [type=user,pid=6209]
2 'MuseScore Port-0'
Now, I am unable to select Masterkey61 as my input device with MU4 IO settings, and I can't select ALSA as I have to do with MU3.
A lot of discussion on sound and midi topics relating to Musescore and Ubuntu led me to conclude that a coincidence of changes in Ubuntu and MU4 has caused this. Once suggestion on github is that Jack support has been removed from MU and shouldn't have been. From the Ubuntu side pipewire is only partially implemented in 22.04.
Thinking that pipewire implementation needs to be corrected I followed https://gist.github.com/the-spyke/2de98b22ff4f978ebf0650c90e82027e
MU3 works both sounds and Masterkey61 keyboard, though in IO setting I now need to needed to specify:
Port Audio, with ALSA APIs Device pipewire, MIDI input Masterkey 61 MIDI 1
However no joy with MU4. I will not recognise the keyboard
With pipewire and MU3 the following message appear:
/lib/x86_64-linux-gnu/libnss3.so
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
OpenType support missing for "Ubuntu", script 11
OpenType support missing for "Ubuntu", script 19
However MU4 generates:
/lib/x86_64-linux-gnu/libnss3.so
15:27:21.485 | INFO | main_thread | GlobalModule | onPreInit: log path: /home/richardm/.local/share/MuseScore/MuseScore4/logs/MuseScore_230825_152721.log
15:27:21.485 | INFO | main_thread | GlobalModule | onPreInit: === Started MuseScore 4.1.1, build number 232071203 ===
15:27:21.501 | INFO | main_thread | IpcSocket | connect: success connected to ipc server
15:27:21.523 | INFO | 140346042349120 | IpcServer | listen: id: "322ca7280bb643e2bd986bc30c859513"
15:27:21.602 | INFO | main_thread | DiagnosticsModule | onInit: success start crash handler
15:27:21.624 | ERROR | main_thread | MuseSamplerLibHandler | MuseSamplerLibHandler: Unable to open MuseSampler library, path: /home/richardm/.local/share/MuseSampler/lib/libMuseSamplerCoreLib.so
15:27:21.624 | ERROR | main_thread | MuseSamplerResolver | checkLibrary: Incompatible MuseSampler library; ignoring
15:27:21.626 | ERROR | main_thread | MuseSamplerLibHandler | MuseSamplerLibHandler: Unable to open MuseSampler library, path: libMuseSamplerCoreLib.so
15:27:21.626 | ERROR | main_thread | MuseSamplerResolver | checkLibrary: Incompatible MuseSampler library; ignoring
15:27:21.842 | WARN | main_thread | AbstractCloudService | readTokens: Could not find the tokens file: /home/richardm/.local/share/MuseScore/MuseScore4/audiocom_cred.dat
15:27:22.130 | WARN | main_thread | MidiInputOutputController | checkConnection: failed connect to device, deviceID: 0:20:0, err: failed connect, err: Operation not permitted
15:27:22.737 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.737 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.738 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.738 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.738 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.738 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.739 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.739 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.740 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.740 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.740 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.740 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.741 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.741 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.741 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.741 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.742 | ERROR | main_thread | App | run: error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
15:27:22.742 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:174:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
Anyone got any idea what's happening here?
Comments
I've retired MU 4.1 on another Ubuntu installation, this time 20.04. Again MU 3.6.2 works fine. Sound and MIDI keyboard work without any additional configuration, as long as in IO preferences, ALSA audio is selected. MU 4.1 only produces sound for the computer keyboard. The USB Masterkey 61 is not recognised, though I notice that IO preferences present it as an option for MIDI output, but it's not selectable. Seems odd to have a keyboard as an output device.
What has changed in MU 4.1 that means that having an explicit means of selecting ALSA vs Port Audio etc is no longer needed. As far as I can see it is needed unless there's some dependency that needs to be installed to allow MU 4 function correctly.
I also tried the MU4.2 AppImage on Red Hat EL 8.3 - It won't even display any gui. MU 3.6.2 is not much better: it comes up, but if I change settings in IO prof, MU segfaults. I don't seem to be able to change them back with out a segfault, which leaves them unchanged.
In reply to I've retired MU 4.1 on… by richardm999
Hi, I had several issues with MS 4 and Ubuntu Studio 23.04 which I decided to try for a small music project where MS 4 is key. After trying and failing to fix it, I went back to the good old Linux Mint 21.2 Victoria (the latest version). MS4 works on Mint without any issues.
I'm trying a clean re-install of Ubuntu Studio and if it doesn't work, I'll be getting rid of it. Shame, but you can have the same things on Mint (including low latency kernels) with more stability and less KDE :o)