Error in drumtools.cpp cause crash when inserting note

• Dec 21, 2013 - 19:42
Type
Functional
Severity
S2 - Critical
Status
closed
Project

i'm using f8187c9 on kxstudio 12.04.

To reproduce :
1- Create new score with unpitched percussion like snare drum
2- Press the N key
3- try to click on note shape at the bottom of the window to enter note in the score
4- mscore crashes

here is the gdb backtrace :
(gdb) run
Starting program: /home/daeavelwyn/MuseScore/build.release/mscore/mscore
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe7850700 (LWP 13032)]
false
QDateTime("") QDateTime("sam. déc. 21 20:08:35 2013")
read shortcuts from <:/data/shortcuts.xml>
no audio driver found
ScoreFont: symId not found
ScoreFont: symId not found
TextStyleType not found
[New Thread 0x7fffddda0700 (LWP 13033)]
loop toggled 0 - 0
loop toggled 0 - 0

Program received signal SIGSEGV, Segmentation fault.
Ms::DrumTools::drumNoteSelected(int) () at /home/daeavelwyn/MuseScore/mscore/drumtools.cpp:176
176 seq->startNote(staff->part()->instr()->channel(0).channel, pitch, 80, ticks, 0.0);


Comments

I can reproduce every time I try.

Here is the result from bt command in gdb :

(gdb) bt
#0 Ms::DrumTools::drumNoteSelected(int) () at /home/daeavelwyn/MuseScore/mscore/drumtools.cpp:176
#1 0x00007ffff7275261 in QMetaObject::activate(QObject*, int, int, void**) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5
#2 0x0000000000642351 in Ms::Palette::boxClicked(int) () at /home/daeavelwyn/MuseScore/build.release/mscore/moc_palette.cpp:384
#3 0x0000000000724f1b in Ms::Palette::mousePressEvent(QMouseEvent*) () at /home/daeavelwyn/MuseScore/mscore/palette.cpp:250
#4 0x00007ffff54c1e6f in QWidget::event(QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#5 0x0000000000725bae in Ms::Palette::event(QEvent*) () at /home/daeavelwyn/MuseScore/mscore/palette.cpp:725
#6 0x00007ffff548ab54 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#7 0x00007ffff548de39 in QApplication::notify(QObject*, QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#8 0x00007ffff724ddd4 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5
#9 0x00007ffff548cfa8 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#10 0x00007ffff54e0865 in ?? () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#11 0x00007ffff54e2a70 in ?? () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#12 0x00007ffff548ab54 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#13 0x00007ffff548dfe6 in QApplication::notify(QObject*, QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5
#14 0x00007ffff724ddd4 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5
#15 0x00007ffff6a7701b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Gui.so.5
#16 0x00007ffff6a778ed in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Gui.so.5
#17 0x00007ffff6a60a98 in QWindowSystemInterface::sendWindowSystemEventsImplementation(QFlags) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Gui.so.5
#18 0x00007fffe848d940 in ?? () from /opt/Qt5.1.1/5.1.1/gcc_64/plugins/platforms/libqxcb.so
#19 0x00007fffef4a2d13 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007fffef4a3060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007fffef4a3124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff7298314 in QEventDispatcherGlib::processEvents(QFlags) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5
#23 0x00007ffff724cb6b in QEventLoop::exec(QFlags) () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5
#24 0x00007ffff7250bbe in QCoreApplication::exec() () from /opt/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5
#25 0x000000000062474c in main () at /home/daeavelwyn/MuseScore/mscore/musescore.cpp:4916