Undo the edit of beamed notes in tablature causes crash
Version:
Nightly 2.0, pulled form github as of June 14, 2013
I've reproduced this on both windows and linux with these steps.
Steps to reproduce:
1 Create a score and add a staff for Guitar (nylon string in my case, though it probably doesn't matter).
2 Right click the staff, select "Staff Properties"
3 Change "Type" (in the upper right corner) to "Tablature", click OK
4 Add a number of 16th notes connected in a tuplet (doesn't mater if theyre 8th, 16, 32 etc... as long the result is a tuplet)
5 Hit CTRL-Z (undo)
6 Boom goes to dynamite, app crashes with a seg fault
Here's a stack trace from QT creater if it helps.
Thread 1 (Thread 0xb3b60740 (LWP 24145)):
#0 0x0871744c in Ms::Score::removeElement (this=0x9b8d2b0, element=0x9c4a510) at /home/james/musecoreCode/MuseScore/libmscore/score.cpp:1508
parent = 0x8
et = 163357868
#1 0x08782454 in Ms::AddElement::undo (this=0x9bb73f8) at /home/james/musecoreCode/MuseScore/libmscore/undo.cpp:1363
No locals.
#2 0x0877d115 in Ms::UndoCommand::undo (this=0x9b7ccc8) at /home/james/musecoreCode/MuseScore/libmscore/undo.cpp:126
i = 10
n = 15
#3 0x0877d523 in Ms::UndoStack::undo (this=0x9973db8) at /home/james/musecoreCode/MuseScore/libmscore/undo.cpp:292
No locals.
#4 0x083d340b in Ms::MuseScore::undo (this=0x94b4658) at /home/james/musecoreCode/MuseScore/mscore/musescore.cpp:2865
No locals.
#5 0x083d8d25 in Ms::MuseScore::cmd (this=0x94b4658, a=0x9525d98, cmd=...) at /home/james/musecoreCode/MuseScore/mscore/musescore.cpp:3962
No locals.
#6 0x083d8272 in Ms::MuseScore::cmd (this=0x94b4658, a=0x9525d98) at /home/james/musecoreCode/MuseScore/mscore/musescore.cpp:3816
cmdn = {static null = {}, static shared_null = {ref = {_q_value = 13042}, alloc = 0, size = 0, data = 0x8e5df52, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 7382}, alloc = 0, size = 0, data = 0xb50cd49e, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x9522aa8, static codecForCStrings = 0x0}
sc = 0x8e5e224
#7 0x082f26b9 in Ms::MuseScore::qt_static_metacall (_o=0x94b4658, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfffe408) at /home/james/musecoreCode/qtcreator-build/mscore/moc_musescore.cxx:582
_t = 0x94b4658
#8 0xb4f856b1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#9 0xb5392925 in QActionGroup::triggered(QAction*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#10 0xb53929c9 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#11 0xb4f856b1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#12 0xb538f9bd in QAction::triggered(bool) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#13 0xb538fc5b in QAction::activate(QAction::ActionEvent) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#14 0xb538fdf0 in QAction::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#15 0xb5396ed4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#16 0xb539c30d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#17 0xb4f6e97e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#18 0xb53cf5f7 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#19 0xb53d0bd5 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#20 0xb539e1ec in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#21 0xb4f6e97e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#22 0xb5394ced in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#23 0xb544b401 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#24 0xb544b8ab in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#25 0xb54227b5 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#26 0xb544feac in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#27 0xb422fd86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#28 0xb4230125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#29 0xb4230201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#30 0xb4fa1887 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#31 0xb544faaa in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#32 0xb4f6d50d in QEventLoop::processEvents(QFlags) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#33 0xb4f6d7a9 in QEventLoop::exec(QFlags) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#34 0xb4f72eba in QCoreApplication::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
No symbol table info available.
#35 0xb5394a74 in QApplication::exec() () from /usr/lib/i386-linux-gnu/libQtGui.so.4
No symbol table info available.
#36 0x083dcbe5 in main (argc=1, av=0xbffff854) at /home/james/musecoreCode/MuseScore/mscore/musescore.cpp:4831
wi =
sc = 0x90771b0
files = 0
app = 0x8e77b48
argv = {> = {{p = {static shared_null = {ref = {_q_value = 13012}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x8fd0710}, d = 0x8fd0710}}, }
writeWorkspaceFile = false
dir = {d_ptr = {d = 0x8fcfe60}}
f =
Comments
Hi
I was recently able to reproduce a crash involving undoing the paste to a tablature stave.
Perhaps the bug is wider?
I've noticed that if you use the "Tab. 6-str simple" tablature stave (only availble from the Create -> Instruments dialog) it seems to be a little less buggy than the "Tablature (built-in)" stave.
Because of the tablature undo crash, this maybe related: #21762: Backspace or Ctrl+Z with tablatures causes crash
Automatically closed -- issue fixed for 2 weeks with no activity.