Crash when adding a linked tablature staff

• Aug 28, 2013 - 13:51
Type
Functional
Severity
S2 - Critical
Status
closed
Project

1. Load the attached MIDI file
2. Edit Staff Properties to change the instrument to "Acoustic Guitar (nylon)"
3. Insert -> Instruments; add a linked staff to this staff. Use type "Tab 6-str simple" for the linked staff
4. Kaboom

The crash can be worked around by choosing type "Standard" for the second staff initially, then going back to change its type after the fact. I experienced the crash with several different varieties of tablature staff, but did not trace it out each time to see if the stack trace differed.

#0 0x00000000008999d4 in QBasicAtomicInteger::load() const () at /home/luser/Qt5.1.0/5.1.0/gcc_64/include/QtCore/qgenericatomic.h:96
#1 0x000000000089be90 in QtPrivate::RefCount::ref() () at /home/luser/Qt5.1.0/5.1.0/gcc_64/include/QtCore/qrefcount.h:57
#2 0x000000000089bf50 in QString::QString(QString const&) () at /home/luser/Qt5.1.0/5.1.0/gcc_64/include/QtCore/qstring.h:764
#3 0x0000000000e13f00 in Ms::StaffTypeTablature::fretString(int, bool) const () at /home/luser/git/MuseScore/libmscore/stafftype.cpp:744
#4 0x0000000000dc0458 in Ms::Note::draw(QPainter*) const () at /home/luser/git/MuseScore/libmscore/note.cpp:557
#5 0x00000000008ca156 in Ms::ScoreView::drawElements(QPainter&, QList const&) () at /home/luser/git/MuseScore/mscore/scoreview.cpp:2304
#6 0x00000000008c79b8 in Ms::ScoreView::paint(QRect const&, QPainter&) () at /home/luser/git/MuseScore/mscore/scoreview.cpp:1892
#7 0x00000000008c6417 in Ms::ScoreView::paintEvent(QPaintEvent*) () at /home/luser/git/MuseScore/mscore/scoreview.cpp:1673
#8 0x00007fe31b0c34c0 in QWidget::event(QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#9 0x00000000008d4eee in Ms::ScoreView::event(QEvent*) () at /home/luser/git/MuseScore/mscore/scoreview.cpp:3998
#10 0x00007fe31b08cb44 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#11 0x00007fe31b08fe96 in QApplication::notify(QObject*, QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#12 0x00007fe31ce4ea94 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#13 0x00007fe31b0c039b in ?? () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#14 0x00007fe31b098aa9 in ?? () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#15 0x00007fe31b0b848e in QWidgetPrivate::syncBackingStore() () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#16 0x00007fe31b0c388f in QWidget::event(QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#17 0x00007fe31b1e029b in QMainWindow::event(QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#18 0x00007fe31b08cb44 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#19 0x00007fe31b08fe96 in QApplication::notify(QObject*, QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Widgets.so.5
#20 0x00007fe31ce4ea94 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#21 0x00007fe31ce51360 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#22 0x00007fe31ce98a13 in ?? () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#23 0x00007fe314e5ed53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fe314e5f0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fe314e5f164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fe31ce98e54 in QEventDispatcherGlib::processEvents(QFlags) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#27 0x00007fe31ce4d82b in QEventLoop::exec(QFlags) () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#28 0x00007fe31ce518f0 in QCoreApplication::exec() () from /home/luser/Qt5.1.0/5.1.0/gcc_64/lib/libQt5Core.so.5
#29 0x00000000009d2178 in main () at /home/luser/git/MuseScore/mscore/musescore.cpp:4932

GIT commit: 3543170
Ubuntu 12.04.2 LTS 64-bit
Qt 5.1.0 (64-bit)

Attachment Size
spanish_ballad.mid 4.15 KB

Comments