Selecting all notes on this MIDI imported file gives a segfault
GIT commit: 6f951ec
The attached file is based on a MIDI file import, slightly edited in MuseScore (there is another report with another version of this file, but it is a different issue). When selecting the first note then press ctrl+shift+end to select everything, the program segfaults. I'm using Ubuntu 12.04. Here follows a stack trace:
Program received signal SIGSEGV, Segmentation fault.
0x00000000006a852e in Element::parent (this=0x0) at /home/johan/Projects/MuseScore/libmscore/element.h:303
303 Element* parent() const { return _parent; }
(gdb) bt
#0 0x00000000006a852e in Element::parent (this=0x0) at /home/johan/Projects/MuseScore/libmscore/element.h:303
#1 0x00000000006a8eca in Segment::measure (this=0x0) at /home/johan/Projects/MuseScore/libmscore/segment.h:136
#2 0x0000000000adf59a in Selection::updateSelectedElements (this=0x5b7b9a0) at /home/johan/Projects/MuseScore/libmscore/select.cpp:276
#3 0x0000000000ad6f64 in Score::select (this=0x5b7b5c0, e=0x5c78a30, type=SELECT_RANGE, staffIdx=0)
at /home/johan/Projects/MuseScore/libmscore/score.cpp:2979
#4 0x0000000000b53bde in Score::selectMove (this=0x5b7b5c0, cmd=...) at /home/johan/Projects/MuseScore/libmscore/cmd.cpp:1818
#5 0x0000000000699951 in ScoreView::cmd (this=0x5b6ce80, a=0x1ad3930) at /home/johan/Projects/MuseScore/mscore/scoreview.cpp:2526
#6 0x00000000007ae9a4 in MuseScore::cmd (this=0x1a377c0, a=0x1ad3930, cmd=...) at /home/johan/Projects/MuseScore/mscore/musescore.cpp:4418
#7 0x00000000007aca32 in MuseScore::cmd (this=0x1a377c0, a=0x1ad3930) at /home/johan/Projects/MuseScore/mscore/musescore.cpp:4054
#8 0x00000000006737ce in MuseScore::qt_static_metacall (_o=0x1a377c0, _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0x7fffffffc1d0)
at /home/johan/Projects/MuseScore/build.debug/mscore/moc_musescore.cxx:583
#9 0x00007ffff3947281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ffff43e0c9f in QActionGroup::triggered(QAction*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff43e0d27 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007ffff3947281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007ffff43de132 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x00007ffff43de31f in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007ffff43de48f in QAction::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007ffff43e4894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007ffff43e9713 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007ffff3932e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007ffff44168b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007ffff4417d8a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007ffff43eaf92 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007ffff3932e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ffff4488c49 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007ffff44890bb in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007ffff4463637 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007ffff448d0d2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x00007fffefaa0d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fffefaa10a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007fffefaa1164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff39623bf in QEventDispatcherGlib::processEvents(QFlags) ()
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007ffff448cd5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#32 0x00007ffff3931c82 in QEventLoop::processEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007ffff3931ed7 in QEventLoop::exec(QFlags) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007ffff3936f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
---Type to continue, or q to quit---
#35 0x00000000007a1ae4 in main (argc=1, av=0x7fffffffe238) at /home/johan/Projects/MuseScore/mscore/musescore.cpp:2475
(gdb)
Attachment | Size |
---|---|
Kullerullvisan.mscz | 2.65 KB |
Comments
Can you attach the MIDI file?
Here is the MIDI file. I can't remember the exact editing steps performed.
https://github.com/musescore/MuseScore/commit/6d79b4db7499ac1510c8ebc02…
Automatically closed -- issue fixed for 2 weeks with no activity.