Remove the last inserted vertical frame make musecore hangs
I inserted a vertical canvas (Create->Measures-> insert vertical canvas (cadre in french)).
Then I selected it and press the suppr key.
Once I lclicked in the last measure, musecore hangs.
This behavior is verified on 0.9.6 and on the trunk.
Here is the gdb log:
#0 0x081575a7 in Element::canvasPos (this=0xcdf5340)
at /home/collette/repositories/mscore/mscore/mscore/element.cpp:342
#1 0x0815671b in Element::abbox (this=0xcdf5340)
at /home/collette/repositories/mscore/mscore/mscore/element.cpp:205
#2 0x082b128f in Selection::clear (this=0xcf80670)
at /home/collette/repositories/mscore/mscore/mscore/select.cpp:197
#3 0x082b1245 in Selection::deselectAll (this=0xcf80670)
at /home/collette/repositories/mscore/mscore/mscore/select.cpp:187
#4 0x082b19d8 in Score::select (this=0xcf804f8, e=0xcf8cd20, type=SELECT_SINGLE, staffIdx=0)
at /home/collette/repositories/mscore/mscore/mscore/select.cpp:298
#5 0x080ffedd in ScoreView::select (this=0xcf97330, ev=0xcd58368)
at /home/collette/repositories/mscore/mscore/mscore/scoreview.cpp:2983
#6 0x081059ab in SelectTransition::onTransition (this=0xcd55f28, e=0xcdf4bc8)
at /home/collette/repositories/mscore/mscore/mscore/scoreview.cpp:416
#7 0xb5d53d2a in QAbstractTransitionPrivate::callOnTransition () from /usr/lib/libQtCore.so.4
#8 0xb5d4454b in QStateMachinePrivate::executeTransitionContent () from /usr/lib/libQtCore.so.4
#9 0xb5d4c53d in QStateMachinePrivate::microstep () from /usr/lib/libQtCore.so.4
#10 0xb5d4c753 in QStateMachinePrivate::_q_process () from /usr/lib/libQtCore.so.4
#11 0xb5d4ccb1 in QStateMachinePrivate::processEvents () from /usr/lib/libQtCore.so.4
#12 0xb5d4e8fc in QStateMachinePrivate::handleFilteredEvent () from /usr/lib/libQtCore.so.4
#13 0xb5d4ea0e in QStateMachine::eventFilter () from /usr/lib/libQtCore.so.4
#14 0xb5d0824e in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
from /usr/lib/libQtCore.so.4
#15 0xb63016fd in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#16 0xb6308f3e in QApplication::notify () from /usr/lib/libQtGui.so.4
#17 0xb5d08f7e in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#18 0xb6307e84 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#19 0xb63955aa in ?? () from /usr/lib/libQtGui.so.4
#20 0xb6394b54 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#21 0xb63c2268 in ?? () from /usr/lib/libQtGui.so.4
#22 0xb5afab92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb5afe468 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0xb5afe58e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0xb5d35ac1 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#26 0xb63c1dba in ?? () from /usr/lib/libQtGui.so.4
#27 0xb5d075ed in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#28 0xb5d07a39 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#29 0xb5d0bbb0 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#30 0xb63017d4 in QApplication::exec () from /usr/lib/libQtGui.so.4
#31 0x08231601 in main (argc=1, av=0xbfe38944)
at /home/collette/repositories/mscore/mscore/mscore/mscore.cpp:2023
Comments
I can't reproduce with 0.9.6. The whole trace is nice but it's better if you can give step by step instructions to reproduce the bug. You started from an existing score? or from scratch? Which measure is selected before you add the vertical frame?
I started using a new score with a guitar staff.
I selected the last measure and then I performed as described previously:
I inserted a vertical canvas (Create->Measures-> insert vertical canvas (cadre in french)).
Then I selected it and press the suppr key.
Once I lclicked in the last measure, musecore hangs.
YC
Fixed in r3235
Automatically closed -- issue fixed for 2 weeks with no activity.