Bug 2257258 - [abrt] musescore: std::__glibcxx_assert_fail(): mscore killed by SIGABRT
Summary: [abrt] musescore: std::__glibcxx_assert_fail(): mscore killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: musescore
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a515a25d322ab6a4cd72f04aeed...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-08 12:32 UTC by Karel Volný
Modified: 2024-05-17 01:30 UTC (History)
4 users (show)

Fixed In Version: musescore-4.2.1-8.fc39 musescore-4.3.0-10.fc40 musescore-4.3.0-10.fc39
Clone Of:
Environment:
Last Closed: 2024-05-16 01:51:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: proc_pid_status (1.50 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: maps (3.94 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: limits (1.29 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: environ (5.65 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: open_fds (7.25 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: mountinfo (2.85 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: os_info (665 bytes, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: cpuinfo (2.99 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: core_backtrace (43.51 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: dso_list (603 bytes, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details
File: backtrace (122.19 KB, text/plain)
2024-01-08 12:32 UTC, Karel Volný
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github musescore MuseScore issues 20878 0 None open Crash on startup since upgrading 4.1.x -> 4.2.0 (Fedora distro-provided build) 2024-01-12 03:05:11 UTC

Description Karel Volný 2024-01-08 12:32:25 UTC
Description of problem:
After encountering bug 2257257, I've tried to start mscore again - now it crashed right when starting ...

Version-Release number of selected component:
musescore-4.2.0-5.fc39

Additional info:
reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGABRT
journald_cursor: s=02fd56fde1da4b348839ff6293944165;i=f021f17;b=a824ff45863d4e0fbaa8e78d4aa6ed14;m=7ae9bfe587;t=60e6e2bab77b0;x=39eb396c9a210e
executable:     /usr/bin/mscore
cmdline:        mscore 2000-04-28.mid
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-f8094e0fcb0a4646912d84a08a6b630a.scope
rootdir:        /
uid:            1000
kernel:         6.6.8-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: std::__glibcxx_assert_fail
comment:        After encountering bug 2257257, I've tried to start mscore again - now it crashed right when starting ...

Truncated backtrace:
Thread no. 1 (19 frames)
 #4 std::__glibcxx_assert_fail at ../../../../../libstdc++-v3/src/c++11/assert_fail.cc:41
 #5 std::array<mu::engraving::PropertyValue, 1433ul>::operator[] at /usr/include/c++/13/array:208
 #7 mu::engraving::MStyle::value at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/engraving/style/style.cpp:50
 #8 mu::engraving::MStyle::styleV at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/engraving/style/style.h:52
 #9 mu::engraving::EngravingObject::styleValue at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/engraving/dom/engravingobject.cpp:768
 #10 mu::engraving::EngravingObject::initElementStyle at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/engraving/dom/engravingobject.cpp:324
 #11 mu::engraving::Pedal::Pedal at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/engraving/dom/pedal.cpp:105
 #12 std::_Construct<mu::engraving::Pedal, mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/stl_construct.h:119
 #13 std::allocator_traits<std::allocator<void> >::construct<mu::engraving::Pedal, mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/alloc_traits.h:661
 #14 std::_Sp_counted_ptr_inplace<mu::engraving::Pedal, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/shared_ptr_base.h:604
 #15 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<mu::engraving::Pedal, std::allocator<void>, mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/shared_ptr_base.h:971
 #16 std::__shared_ptr<mu::engraving::Pedal, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/shared_ptr_base.h:1712
 #17 std::shared_ptr<mu::engraving::Pedal>::shared_ptr<std::allocator<void>, mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/shared_ptr.h:464
 #18 std::make_shared<mu::engraving::Pedal, mu::engraving::compat::DummyElement*> at /usr/include/c++/13/bits/shared_ptr.h:1010
 #19 makeElement<mu::engraving::Pedal> at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/palette/internal/palettecreator.cpp:94
 #20 mu::palette::PaletteCreator::newLinesPalette at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/palette/internal/palettecreator.cpp:1248
 #21 mu::palette::PaletteCreator::newMasterPaletteTree at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/palette/internal/palettecreator.cpp:150
 #22 mu::palette::PaletteProvider::init at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/palette/internal/paletteprovider.cpp:599
 #23 mu::app::App::run at /usr/src/debug/musescore-4.2.0-5.fc39.x86_64/src/app/app.cpp:197

Comment 1 Karel Volný 2024-01-08 12:32:29 UTC
Created attachment 2007772 [details]
File: proc_pid_status

Comment 2 Karel Volný 2024-01-08 12:32:30 UTC
Created attachment 2007773 [details]
File: maps

Comment 3 Karel Volný 2024-01-08 12:32:32 UTC
Created attachment 2007774 [details]
File: limits

Comment 4 Karel Volný 2024-01-08 12:32:34 UTC
Created attachment 2007775 [details]
File: environ

Comment 5 Karel Volný 2024-01-08 12:32:36 UTC
Created attachment 2007776 [details]
File: open_fds

Comment 6 Karel Volný 2024-01-08 12:32:38 UTC
Created attachment 2007777 [details]
File: mountinfo

Comment 7 Karel Volný 2024-01-08 12:32:40 UTC
Created attachment 2007778 [details]
File: os_info

Comment 8 Karel Volný 2024-01-08 12:32:41 UTC
Created attachment 2007779 [details]
File: cpuinfo

Comment 9 Karel Volný 2024-01-08 12:32:44 UTC
Created attachment 2007780 [details]
File: core_backtrace

Comment 10 Karel Volný 2024-01-08 12:32:45 UTC
Created attachment 2007781 [details]
File: dso_list

Comment 11 Karel Volný 2024-01-08 12:32:48 UTC
Created attachment 2007782 [details]
File: backtrace

Comment 12 Karel Volný 2024-01-08 12:35:22 UTC
note that it doesn't seem reproducible, on another try, I can start it without problem

Comment 13 Jonathan Gazeley 2024-01-08 15:09:11 UTC
1. Install musescore-4.2.0-5.fc39.x86_64 via RPM.
2. Run musescore

```
[jonathan@poseidon ~]$ mscore 
QSocketNotifier: Can only be used with threads started with QThread
11:47:04.234 | INFO  | main_thread     | GlobalModule::onPreInit | log path: /home/jonathan/.local/share/MuseScore/MuseScore4/logs/MuseScore_240108_114704.log
11:47:04.234 | INFO  | main_thread     | GlobalModule::onPreInit | === Started MuseScore 4.2.0, build number  ===
11:47:04.235 | WARN  | main_thread     | IpcSocket::connect | failed connect to server
11:47:04.235 | WARN  | main_thread     | IpcSocket::connect | failed connect to server
11:47:04.235 | INFO  | main_thread     | IpcSocket::connect | success connected to ipc server
11:47:04.235 | INFO  | 140382994155200 | IpcServer::listen | id: "8773ed70e68645e8bafbfee0ca3f5332" 
11:47:04.276 | WARN  | main_thread     | DiagnosticsModule::onInit | crash handling disabled
11:47:04.302 | INFO  | main_thread     | JackAudioDriver::open | clientName: MuseScore
11:47:04.306 | INFO  | main_thread     | jack_srate_callback | Jack reported sampleRate change. Pray to god, musescores samplerate: 44100, is the same as jacks: 48000
11:47:04.306 | INFO  | main_thread     | JackAudioDriver::open | buffer size (in samples): 1024
11:47:04.306 | INFO  | main_thread     | JackAudioDriver::open | sampleRate used by jack: 48000
11:47:04.306 | WARN  | main_thread     | JackAudioDriver::open | Musescores samplerate: 44100, is NOT the same as jack's: 48000
11:47:04.306 | ERROR | main_thread     | MuseSamplerLibHandler::MuseSamplerLibHandler | Unable to open MuseSampler library, path: /home/jonathan/.local/share/MuseSampler/lib/libMuseSamplerCoreLib.so
11:47:04.306 | ERROR | main_thread     | MuseSamplerResolver::checkLibrary | Incompatible MuseSampler library; ignoring
11:47:04.306 | ERROR | main_thread     | MuseSamplerLibHandler::MuseSamplerLibHandler | Unable to open MuseSampler library, path: libMuseSamplerCoreLib.so
11:47:04.306 | ERROR | main_thread     | MuseSamplerResolver::checkLibrary | Incompatible MuseSampler library; ignoring
11:47:04.307 | WARN  | main_thread     | Qt              | QIODevice::read (QFile, "/home/jonathan/.local/share/MuseScore/MuseScore4/shortcuts.xml"): device not open
11:47:04.307 | WARN  | main_thread     | Qt              | QIODevice::read (QFile, "/home/jonathan/.local/share/MuseScore/MuseScore4/midi_mappings.xml"): device not open
11:47:04.309 | WARN  | main_thread     | AbstractCloudService::readTokens | Could not find the tokens file: /home/jonathan/.local/share/MuseScore/MuseScore4/musescorecom_cred.dat
11:47:04.309 | WARN  | main_thread     | AbstractCloudService::readTokens | Could not find the tokens file: /home/jonathan/.local/share/MuseScore/MuseScore4/audiocom_cred.dat
/usr/include/c++/13/array:211: constexpr const std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) const [with _Tp = mu::engraving::PropertyValue; long unsigned int _Nm = 1433; const_reference = const mu::engraving::PropertyValue&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)
```


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGABRT
journald_cursor: s=3cd2383f4688403ab36c63ac531354a7;i=9a9388;b=5bf09dea2d474aeda5bb5bb17f030ec1;m=4e64b37758;t=60e6dbf384ffa;x=533bf919c6d625f1
executable:     /usr/bin/mscore
cmdline:        /usr/bin/mscore
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.musescore.MuseScore-150449.scope
rootdir:        /
uid:            1000
kernel:         6.6.8-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: std::__glibcxx_assert_fail

Comment 14 Jonathan Gazeley 2024-01-08 15:11:28 UTC
This crash has also been reported to MuseScore directly, but it does not affect the AppImage distribution: https://github.com/musescore/MuseScore/issues/20878

Seems like something specific to Fedora's build/

Comment 15 J. Bruce Fields 2024-01-11 22:44:52 UTC
I started mscore from the commandline and it crashed immediately.


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGABRT
journald_cursor: s=218a4f931f0e4e54a2bb3d0db278568e;i=26146;b=e32f3600cfb64080ace2aaeec62d1b33;m=7bfe2316c;t=60eb2f4f3ce63;x=981c74d04acacfc7
executable:     /usr/bin/mscore
cmdline:        /usr/bin/mscore
cgroup:         0::/user.slice/user-2815.slice/user/app.slice/app-gnome-org.musescore.MuseScore-37304.scope
rootdir:        /
uid:            2815
kernel:         6.6.9-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: std::__glibcxx_assert_fail
comment:        I started mscore from the commandline and it crashed immediately.

Comment 16 Jerry James 2024-01-12 03:05:11 UTC
I commented on the github issue.  I have not yet been able to reproduce this crash.  If one of you has a core file that you can upload somewhere, I would love the chance to poke around in its innards.

Comment 17 Nuno Maltez 2024-01-31 19:51:20 UTC
When starting musescore it crashes


reporter:       libreport-2.17.11
backtrace_rating: 4
executable:     /usr/bin/mscore
crash_function: std::__glibcxx_assert_fail
rootdir:        /
reason:         mscore killed by SIGABRT
runlevel:       N 5
package:        musescore-4.2.0-5.fc39
comment:        When starting musescore it crashes
kernel:         6.6.12-200.fc39.x86_64
journald_cursor: s=9eb9a9bf7ca64d5396936178293c4c55;i=2478d5;b=60c436ab21b64076a2e969b0475c587e;m=ca448b36d;t=60fcca3e380a1;x=30b82254b38af7e4
cmdline:        /usr/bin/mscore
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.musescore.MuseScore-50afbeca4a49499fbea96441303af95d.scope
type:           CCpp
uid:            1000

Comment 18 Fedora Update System 2024-02-05 20:41:44 UTC
FEDORA-2024-236f199386 (musescore-4.2.1-8.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-236f199386

Comment 19 Jerry James 2024-02-05 20:45:22 UTC
The 4.2.1 build has an attempted workaround to avoid this crash.  Please try it and let me know if you still encounter the crash.

To use the 4.2.1 build successfully, you may need to follow this procedure:

- Start MuseScore
- Select "Edit", then "Preferences"
- Select "Reset preferences"
- Quit and restart MuseScore
- If desired, open "Preferences" again and customize

Comment 20 Fedora Update System 2024-02-06 01:46:16 UTC
FEDORA-2024-236f199386 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-236f199386`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-236f199386

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2024-02-14 02:24:08 UTC
FEDORA-2024-236f199386 (musescore-4.2.1-8.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Stanislav Lanskoy 2024-02-14 12:21:44 UTC
I started MuseScore 4.2.1


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGABRT
journald_cursor: s=64e744598b974ffe84052c10d64b00e4;i=4f267d;b=7c224176283a418f89592cdd4035e201;m=2987fd4936;t=61156535ea096;x=eaadec6d33465bcf
executable:     /usr/bin/mscore
cmdline:        /usr/bin/mscore
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.musescore.MuseScore-1993439.scope
rootdir:        /
uid:            1000
kernel:         6.7.4-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: std::__glibcxx_assert_fail
comment:        I started MuseScore 4.2.1

Comment 23 J. Bruce Fields 2024-02-14 14:37:01 UTC
About half the times I start musescore, it crashes.

Note that I'm starting it with "QT_QPA_PLATFORM=xcb mscore" to work around bug 2250564.


reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGABRT
journald_cursor: s=c9ecd09de5474c328f95e20c15488059;i=eb547;b=3809b902e238491789892d055d65e3ef;m=37b4da5c07;t=611582bc89565;x=8430daacb882e6b8
executable:     /usr/bin/mscore
cmdline:        mscore
cgroup:         0::/user.slice/user-2815.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-1fbefd38-3b18-4ddc-8db7-510b2d94202f.scope
rootdir:        /
uid:            2815
kernel:         6.7.3-200.fc39.x86_64
package:        musescore-4.2.0-5.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: std::__glibcxx_assert_fail

Comment 24 Jerry James 2024-02-14 17:22:32 UTC
The question is whether this is the same assertion failure or a different one.  The 2 most recent reports don't give enough information to tell.

In any case, I have built a version of MuseScore with the thread sanitizer and am running it locally.  It produces a LOT of output.  I have started opening pull requests to fix some of these issues.  Some have been merged.  These are still open:
- https://github.com/musescore/MuseScore/pull/21521
- https://github.com/igorkorsukov/kors_profiler/pull/1

There are more data races.  I will keep fixing them and sending pull requests as I am able to do so.  My hope is that one of these data races is responsible for the assertion failure reported in this bug.

If somebody has a better idea of how to track this down, I am all ears.

Comment 25 J. Bruce Fields 2024-03-06 14:29:35 UTC
For what it's worth, I'm not seeing this any more; musescore starts up reliably every time now.

I'm on musescore-4.2.1-8.fc39.x86_64.

Comment 26 Fedora Update System 2024-05-08 00:28:25 UTC
FEDORA-2024-41a95f1379 (musescore-4.3.0-10.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-41a95f1379

Comment 27 Fedora Update System 2024-05-08 00:28:27 UTC
FEDORA-2024-fe029d9f84 (musescore-4.3.0-10.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-fe029d9f84

Comment 28 Fedora Update System 2024-05-08 19:35:59 UTC
FEDORA-2024-fe029d9f84 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-fe029d9f84`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-fe029d9f84

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 29 Fedora Update System 2024-05-09 02:49:27 UTC
FEDORA-2024-41a95f1379 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-41a95f1379`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-41a95f1379

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 30 Fedora Update System 2024-05-16 01:51:50 UTC
FEDORA-2024-fe029d9f84 (musescore-4.3.0-10.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 31 Fedora Update System 2024-05-17 01:30:23 UTC
FEDORA-2024-41a95f1379 (musescore-4.3.0-10.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.