Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909150 - media-sound/musescore-4.0.2: crash with error "ERROR | main_thread | EngravingModule | onInit: Fatal error: cannot load internal font :/fonts/musejazz/MuseJazzText.otf"
Summary: media-sound/musescore-4.0.2: crash with error "ERROR | main_thread | Engravin...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 10:06 UTC by BurnyLlama
Modified: 2023-06-25 22:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ouput of `emerge --info musescore` (emerge_info_musescore,20.41 KB, text/plain)
2023-06-25 10:08 UTC, BurnyLlama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BurnyLlama 2023-06-25 10:06:18 UTC
When trying to launch Musescore 4 it crashes. If you try to launch it from the terminal you will find the error:

```
QEventLoop: Cannot be used without QApplication
QEventLoop: Cannot be used without QApplication
11:57:21.064 | INFO  | main_thread | GlobalModule | onPreInit: log path: /home/USERNAME/.local/share/MuseScore/MuseScore4/logs/MuseScore_230625_115721.log
11:57:21.064 | INFO  | main_thread | GlobalModule | onPreInit: === Started MuseScore 4.0.2, build number  ===
11:57:21.184 | WARN  | main_thread | DiagnosticsModule | onInit: crash handling disabled
11:57:21.185 | DEBUG | main_thread | ShortcutsRegister | expandStandardKeys: removed 5 shortcut, because they are not bound to standard key
11:57:21.185 | DEBUG | main_thread | ShortcutsRegister | expandStandardKeys: added 3 shortcut, because they are alternative shortcuts for the given standard keys
11:57:21.187 | DEBUG | main_thread | ShortcutsRegister | expandStandardKeys: removed 176 shortcut, because they are not bound to standard key
11:57:21.211 | DEBUG | main_thread | LinuxAudioDriver | open: Connected to default
11:57:21.254 | ERROR | main_thread | EngravingModule | onInit: Fatal error: cannot load internal font :/fonts/musejazz/MuseJazzText.otf

```

Reproducible: Always

Steps to Reproduce:
1. Launch Musescore 4 (via terminal)
Actual Results:  
It segfaulted with the error provided in `Description`.

Expected Results:  
I expect it to be able to load the font and launch properly.

I chose severity `Critical` since that description contains "crashing", however it should be noted that Musescore is not a system-critical program, so the actual severity of this is quite low.

It should also be noted that the official AppImage works.

I have also tried re-emerging Musescore, but the issue persisted.

I believe the error is caused by the font in question not being properly "compiled in"/included in to the binary.

I don't yet know if this is an issue with the ebuild for Musescore or with Musescore itself. I, however, can't find this issue listed in Musescore's bug tracker.
Comment 1 BurnyLlama 2023-06-25 10:08:07 UTC
Created attachment 864590 [details]
Ouput of `emerge --info musescore`
Comment 2 BurnyLlama 2023-06-25 15:38:34 UTC
I just finished compiling Musescore directly from the upstream source. There it works as expected.

I compiled created a `build_overrides.cmake` as per their (Musescore's) instructions:

```
set(ENV{QTDIR} "/usr/lib64/qt5/") # or wherever Qt is located
```

And then ran:

```
./build.cmake -G Ninja
./build.cmake -G Ninja run
```

And the application launched as expected.

This makes me believe there's an issue with the ebuild. I will try to look more into it later...