Creating score with multiple linked staffs causes crash
I create a new score using the wizard.
First I added a guitare staff.
Then I clicked on the guitare staff and added a first linked staff.
Than I clicked again on "add linked staff".
If I clicked on "create", mscore hangs.
I use the latest mscore trunk version.
Here is the gdb log:
(gdb) where
#0 0x00007ffff07be245 in raise () from /lib64/libc.so.6
#1 0x00007ffff07bf7cb in abort () from /lib64/libc.so.6
#2 0x0000000000ae9fe5 in Staff::linkTo (this=0x5d0ec80, staff=0x5d1f1e0) at /home/collette/repositories/MuseScore/libmscore/staff.cpp:579
#3 0x000000000084a644 in InstrumentWizard::createInstruments (this=0x57dbfa0, cs=0x5d1fbf0) at /home/collette/repositories/MuseScore/mscore/newwizard.cpp:407
#4 0x000000000096b93f in NewWizardPage2::createInstruments (this=0x183a030, s=0x5d1fbf0) at /home/collette/repositories/MuseScore/mscore/newwizard.h:129
#5 0x000000000096baad in NewWizard::createInstruments (this=0x57ca800, s=0x5d1fbf0) at /home/collette/repositories/MuseScore/mscore/newwizard.h:216
#6 0x000000000095bfea in MuseScore::newFile (this=0x17328a0) at /home/collette/repositories/MuseScore/mscore/file.cpp:446
#7 0x00000000007ab591 in MuseScore::cmd (this=0x17328a0, a=0x17a2600, cmd=...) at /home/collette/repositories/MuseScore/mscore/musescore.cpp:4211
#8 0x00000000007aa9fe in MuseScore::cmd (this=0x17328a0, a=0x17a2600) at /home/collette/repositories/MuseScore/mscore/musescore.cpp:4054
#9 0x000000000067471e in MuseScore::qt_static_metacall (_o=0x17328a0, _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0x7fffffffbc10)
at /home/collette/repositories/MuseScore/build_tmp/mscore/moc_musescore.cxx:583
#10 0x00007ffff2695f11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#11 0x00007ffff336640f in QActionGroup::triggered(QAction*) () from /usr/lib64/libQtGui.so.4
#12 0x00007ffff3366497 in ?? () from /usr/lib64/libQtGui.so.4
#13 0x00007ffff2695f11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#14 0x00007ffff33638a2 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#15 0x00007ffff3363a8f in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#16 0x00007ffff37af7b9 in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007ffff37b5912 in ?? () from /usr/lib64/libQtGui.so.4
#18 0x00007ffff33ba344 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007ffff37b6eab in QMenu::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#20 0x00007ffff3369cc4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007ffff336f363 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x00007ffff26821bc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#23 0x00007ffff336ac92 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) ()
from /usr/lib64/libQtGui.so.4
#24 0x00007ffff33e6e81 in ?? () from /usr/lib64/libQtGui.so.4
#25 0x00007ffff33e567a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#26 0x00007ffff340d0d2 in ?? () from /usr/lib64/libQtGui.so.4
#27 0x00007fffee3639ba in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#28 0x00007fffee363d80 in ?? () from /lib64/libglib-2.0.so.0
#29 0x00007fffee363e44 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#30 0x00007ffff26b0f8f in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib64/libQtCore.so.4
#31 0x00007ffff340cd5e in ?? () from /usr/lib64/libQtGui.so.4
#32 0x00007ffff2680cf2 in QEventLoop::processEvents(QFlags) () from /usr/lib64/libQtCore.so.4
#33 0x00007ffff2680f47 in QEventLoop::exec(QFlags) () from /usr/lib64/libQtCore.so.4
#34 0x00007ffff2685cf5 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#35 0x000000000079fbc7 in main (argc=1, av=0x7fffffffda08) at /home/collette/repositories/MuseScore/mscore/musescore.cpp:2475
Comments
Confirmed - thanks!
1. 'New...'.
2. Add 'Guitar'.
3. Click on staff.
4. 'Add Linked Staff'.
5. 'Add Linked Staff'.
6. 'Finish'.
Result: Crash.
Discussion: A crash doesn't happen if you add the linked staffs after score creation.
Using MuseScore 2.0 Nightly Build (8d79909) - Mac 10.7.5.
Fixed in 5aa926855f
Automatically closed -- issue fixed for 2 weeks with no activity.