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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 10:06 UTC by BurnyLlama
Modified: 2024-08-04 11:16 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...
Comment 3 Larry the Git Cow gentoo-dev 2024-08-04 11:16:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ca909496214ef0f4b7bc78eee1876100fc61caf

commit 8ca909496214ef0f4b7bc78eee1876100fc61caf
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2024-08-04 11:15:47 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-08-04 11:16:04 +0000

    media-sound/musescore: dropped obsolete 4.0.2-r1
    
    Closes: https://bugs.gentoo.org/922327
    Closes: https://bugs.gentoo.org/922098
    Closes: https://bugs.gentoo.org/921963
    Closes: https://bugs.gentoo.org/909150
    Closes: https://bugs.gentoo.org/908480
    Closes: https://bugs.gentoo.org/908481
    Closes: https://bugs.gentoo.org/908482
    Closes: https://bugs.gentoo.org/907956
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-sound/musescore/Manifest                     |   1 -
 .../files/musescore-4.0.2-unbundle-deps.patch      | 121 ------------------
 .../musescore-4.0.2-uncompressed-man-pages.patch   |  29 -----
 media-sound/musescore/musescore-4.0.2-r1.ebuild    | 139 ---------------------
 4 files changed, 290 deletions(-)