Musescore segfaults on startup due to missing qt quickcontrols2 configuration
Hi there - i build musescore from source and for a year or so now have been unable to run my builds as they segfault during the splash screen. I've been using the pre-built appimages when i've needed to use it, but today decided to finally track down the issue.
gdb told me the segfault was happening in QQuickStyleSelector::select from libQt5QuickControls2.so.5
Some searching led me to this comment on a completely unrelated bug report for some other software:
https://github.com/NixOS/nixpkgs/issues/54457#issuecomment-577981546
And that pointed me to this page:
https://doc.qt.io/qt-5/qtquickcontrols2-configuration.html
Attached is the patch i'm using to solve this issue, which works great for me - no more segfaults during startup!
Hope this is helpful to someone else.
Attachment | Size |
---|---|
musescore-3.6.2-fix-qtquickcontrols-segfault.patch | 974 bytes |
Comments
Did you run the install step and start MuseScore from the install dirextory?
BTW MuseScore used to be using the Fusion Style
In reply to Did you run the install step… by Jojo-Schmitz
I honestly just copied that file from the example at the URL i mentioned, and it seemed to work. Other things that worked before applying my patch:
musescore -style Material
QT_QUICK_CONTROLS_STYLE=Material musescore
I should mention that i'm running on linux with everything built from source.
Essentially i compiled from source from a subdirectory with:
cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_FREETYPE=ON -DUSE_SYSTEM_POPPLER=ON -DOMR=ON -DBUILD_WEBENGINE=OFF -DBUILD_PORTAUDIO=OFF -DBUILD_PORTMIDI=OFF
(I did also try a compile without all the extra -D definitions)
make && make install DESTDIR=/path/to/package, and i'm using a symlink method to link everything into /usr. That does sometimes cause issues, but this one doesn't seem related to that, since the above invocations and my patch all work.
Just wanted to pass on this info in case it's useful. I've got my fix which works fine.
That patch in clear text:
Workarounds:
*
musescore -style Material
*
QT_QUICK_CONTROLS_STYLE=Material musescore