Bug 2255420

Summary: [abrt] musescore: mu::engraving::StaffTypeList::staffType(): mscore killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Karel Volný <kvolny>
Component: musescoreAssignee: Jerry James <loganjerry>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: kvolny, loganjerry
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/65e4096db48ab13d77f61275edbcb5f0d7ba19f
Whiteboard: abrt_hash:bca32ba067a01e2a959523c1979e27dfe0d0146c;VARIANT_ID=;
Fixed In Version: musescore-4.2.1-8.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-14 02:24:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: proc_pid_status
none
File: maps
none
File: limits
none
File: environ
none
File: open_fds
none
File: mountinfo
none
File: os_info
none
File: cpuinfo
none
File: core_backtrace
none
File: exploitable
none
File: dso_list
none
File: backtrace none

Description Karel Volný 2023-12-20 16:51:45 UTC
Description of problem:
I've just tried to open advanced staff properties ...

Version-Release number of selected component:
musescore-4.1.1-4.fc39

Additional info:
reporter:       libreport-2.17.11
type:           CCpp
reason:         mscore killed by SIGSEGV
journald_cursor: s=35f52281eea64f37b2b7c8905858fd02;i=f001844;b=881f643a59e34f6a8bbd2a76e306b76e;m=2dd07eb13f;t=60cf1ffff3877;x=18898c39f35f6d53
executable:     /usr/bin/mscore
cmdline:        mscore 2000-04-28.mid
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-eb3fb9de2d25415cbdb85eb5fd4f5718.scope
rootdir:        /
uid:            1000
kernel:         6.6.7-200.fc39.x86_64
package:        musescore-4.1.1-4.fc39
runlevel:       N 5
backtrace_rating: 4
crash_function: mu::engraving::StaffTypeList::staffType
comment:        I've just tried to open advanced staff properties ...

Truncated backtrace:
Thread no. 0 (61 frames)
 #0 mu::engraving::StaffTypeList::staffType at /usr/include/c++/13/bits/stl_tree.h:1029
 #1 mu::engraving::Staff::staffType at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/engraving/libmscore/staff.cpp:1009
 #2 mu::notation::EditStaff::showStaffTypeDialog at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/notation/view/widgets/editstaff.cpp:652
 #3 QtPrivate::QSlotObjectBase::call at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #4 doActivate<false> at kernel/qobject.cpp:3925
 #5 QMetaObject::activate at kernel/qobject.cpp:3985
 #6 QAbstractButton::clicked at .moc/moc_qabstractbutton.cpp:308
 #7 QAbstractButtonPrivate::emitClicked at widgets/qabstractbutton.cpp:416
 #8 QAbstractButtonPrivate::click at widgets/qabstractbutton.cpp:409
 #9 QAbstractButton::mouseReleaseEvent at widgets/qabstractbutton.cpp:1045
 #10 QWidget::event at kernel/qwidget.cpp:9045
 #11 QApplicationPrivate::notify_helper at kernel/qapplication.cpp:3640
 #12 QApplication::notify at kernel/qapplication.cpp:3084
 #13 QCoreApplication::notifyInternal2 at kernel/qcoreapplication.cpp:1064
 #14 QCoreApplication::sendSpontaneousEvent at kernel/qcoreapplication.cpp:1474
 #15 QApplicationPrivate::sendMouseEvent at kernel/qapplication.cpp:2622
 #16 QWidgetWindow::handleMouseEvent at kernel/qwidgetwindow.cpp:684
 #17 QWidgetWindow::event at kernel/qwidgetwindow.cpp:300
 #18 QApplicationPrivate::notify_helper at kernel/qapplication.cpp:3640
 #19 QCoreApplication::notifyInternal2 at kernel/qcoreapplication.cpp:1064
 #20 QCoreApplication::sendSpontaneousEvent at kernel/qcoreapplication.cpp:1474
 #21 QGuiApplicationPrivate::processMouseEvent at kernel/qguiapplication.cpp:2278
 #22 QWindowSystemInterface::sendWindowSystemEvents at kernel/qwindowsysteminterface.cpp:1169
 #23 userEventSourceDispatch(_GSource*, int (*)(void*), void*)
 #25 g_main_context_dispatch_unlocked at ../glib/gmain.c:4284
 #26 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4349
 #27 g_main_context_iteration at ../glib/gmain.c:4414
 #28 QEventDispatcherGlib::processEvents at kernel/qeventdispatcher_glib.cpp:423
 #29 QEventLoop::exec at ../../include/QtCore/../../src/corelib/global/qflags.h:69
 #30 QDialog::exec at ../../include/QtCore/../../src/corelib/global/qflags.h:121
 #31 mu::ui::InteractiveProvider::openWidgetDialog at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/framework/ui/view/interactiveprovider.cpp:595
 #32 mu::ui::InteractiveProvider::open at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/framework/ui/view/interactiveprovider.cpp:194
 #33 mu::framework::Interactive::open at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/framework/global/internal/interactive.cpp:254
 #35 mu::notation::NotationActionController::openStaffProperties at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/notation/internal/notationactioncontroller.cpp:1533
 #36 std::function<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mu::engraving::PropertyValue const&)>::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mu::engraving::PropertyValue const&) const at /usr/include/c++/13/bits/std_function.h:591
 #37 mu::actions::ActionsDispatcher::dispatch at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/framework/actions/internal/actionsdispatcher.cpp:67
 #38 mu::inspector::InstrumentNameSettingsModel::openStaffAndPartProperties at /usr/include/c++/13/bits/basic_string.tcc:238
 #39 mu::inspector::InstrumentNameSettingsModel::qt_static_metacall at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/redhat-linux-build/src/inspector/inspector_autogen/CX6HD45EKC/moc_instrumentnamesettingsmodel.cpp:77
 #41 mu::inspector::InstrumentNameSettingsModel::qt_metacall at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/redhat-linux-build/src/inspector/inspector_autogen/CX6HD45EKC/moc_instrumentnamesettingsmodel.cpp:114
 #42 QQmlObjectOrGadget::metacall at qml/qqmlobjectorgadget.cpp:51
 #43 CallMethod at jsruntime/qv4qobjectwrapper.cpp:1303
 #44 CallPrecise at jsruntime/qv4qobjectwrapper.cpp:1557
 #45 CallOverloaded at jsruntime/qv4qobjectwrapper.cpp:1629
 #46 QV4::QObjectMethod::callInternal at jsruntime/qv4qobjectwrapper.cpp:2117
 #47 QV4::FunctionObject::call at ../../include/QtQml/5.15.11/QtQml/private/../../../../../src/qml/jsruntime/qv4functionobject_p.h:202
 #49 QQmlDelayedCallQueue::DelayedFunctionCall::execute at qml/qqmldelayedcallqueue.cpp:77
 #50 QQmlDelayedCallQueue::executeAllExpired_Later at qml/qqmldelayedcallqueue.cpp:203
 #51 QObject::event at kernel/qobject.cpp:1347
 #52 QApplicationPrivate::notify_helper at kernel/qapplication.cpp:3640
 #53 QCoreApplication::notifyInternal2 at kernel/qcoreapplication.cpp:1064
 #54 QCoreApplication::sendEvent at kernel/qcoreapplication.cpp:1462
 #55 QCoreApplicationPrivate::sendPostedEvents at kernel/qcoreapplication.cpp:1821
 #56 QCoreApplication::sendPostedEvents at kernel/qcoreapplication.cpp:1680
 #57 postEventSourceDispatch at kernel/qeventdispatcher_glib.cpp:277
 #59 g_main_context_dispatch_unlocked at ../glib/gmain.c:4284
 #60 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4349
 #61 g_main_context_iteration at ../glib/gmain.c:4414
 #62 QEventDispatcherGlib::processEvents at kernel/qeventdispatcher_glib.cpp:423
 #63 QEventLoop::exec at ../../include/QtCore/../../src/corelib/global/qflags.h:69
 #64 QCoreApplication::exec at ../../include/QtCore/../../src/corelib/global/qflags.h:121
 #65 mu::app::App::run at /usr/src/debug/musescore-4.1.1-4.fc39.x86_64/src/app/app.cpp:334

Comment 1 Karel Volný 2023-12-20 16:51:49 UTC
Created attachment 2005182 [details]
File: proc_pid_status

Comment 2 Karel Volný 2023-12-20 16:51:51 UTC
Created attachment 2005183 [details]
File: maps

Comment 3 Karel Volný 2023-12-20 16:51:53 UTC
Created attachment 2005184 [details]
File: limits

Comment 4 Karel Volný 2023-12-20 16:51:54 UTC
Created attachment 2005185 [details]
File: environ

Comment 5 Karel Volný 2023-12-20 16:51:57 UTC
Created attachment 2005186 [details]
File: open_fds

Comment 6 Karel Volný 2023-12-20 16:51:58 UTC
Created attachment 2005187 [details]
File: mountinfo

Comment 7 Karel Volný 2023-12-20 16:52:00 UTC
Created attachment 2005188 [details]
File: os_info

Comment 8 Karel Volný 2023-12-20 16:52:02 UTC
Created attachment 2005189 [details]
File: cpuinfo

Comment 9 Karel Volný 2023-12-20 16:52:04 UTC
Created attachment 2005190 [details]
File: core_backtrace

Comment 10 Karel Volný 2023-12-20 16:52:06 UTC
Created attachment 2005191 [details]
File: exploitable

Comment 11 Karel Volný 2023-12-20 16:52:08 UTC
Created attachment 2005192 [details]
File: dso_list

Comment 12 Karel Volný 2023-12-20 16:52:10 UTC
Created attachment 2005193 [details]
File: backtrace

Comment 13 Jerry James 2023-12-21 18:44:11 UTC
Thank you for the report, Karel.  Version 4.2.0 was released a few days ago, with many bug fixes.  I have built it for Fedora 39, in this update: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f3ec63f399.  It should be pushed to the testing repository tonight.  Can you try that and see if it resolves the issue?

Comment 14 Karel Volný 2024-01-08 12:16:31 UTC
trying to reproduce, I got bug 2257257 ...

Comment 15 Karel Volný 2024-01-08 12:38:27 UTC
ok, seems that it no longer crashes on opening advanced staff properties, but the crash on exit is pretty reproducible

Comment 16 Fedora Update System 2024-02-05 20:41:38 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 17 Jerry James 2024-02-05 20:42:44 UTC
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 18 Fedora Update System 2024-02-06 01:46:12 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 19 Fedora Update System 2024-02-14 02:24:04 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.