Crash when deleting last measure or changing measure to irregular

• Apr 28, 2009 - 12:32
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Windows Vista Ultimate 32-bit, latest version from SVN (updated today), running from GDB with all symbols on (removed -Wl -s from Makefile)

In a previous version of the attached file (not available yet, I will have to redo all the steps), I set the previous measure from last as irregular of duration 3/4. This worked, then I control clicked the last measure to delete it.
Crash in importmidi.cpp (see GDB back trace below) when trying to delete last measure.

When I tried to reproduce the bug for this report, I got a crash in moc_measureproperties.cxx (see below) when trying to set as "irregular of duration 3/4" the previous measure from last in attached file.

Program received signal SIGSEGV, Segmentation fault.
0x0188af43 in std::_Rb_tree_increment () at include/c++/3.4.5/iostream:77
77 static ios_base::Init __ioinit;
(gdb) tb
Breakpoint 1 at 0x188af43: file include/c++/3.4.5/iostream, line 77.
(gdb) bt
#0 0x0188af43 in std::_Rb_tree_increment () at include/c++/3.4.5/iostream:77
#1 0x01b5078f in std::_Rb_tree_const_iterator >::operator++ (this=0x225918)
at include/c++/3.4.5/bits/stl_tree.h:255
#2 0x004607fb in Score::cmdRemoveTime (this=0xa9b8d80, tick=28800, len=480) at trunk/mscore/mscore/edit.cpp:984
#3 0x005098d1 in Measure::adjustToLen (this=0xb556f28, ol=1920, nl=1440) at trunk/mscore/mscore/measure.cpp:2456
#4 0x0059a62b in MeasureProperties::apply (this=0x22a588) at trunk/mscore/mscore/measureproperties.cpp:193
#5 0x0059a117 in MeasureProperties::bboxClicked (this=0x22a588, button=0xb507c08)
at trunk/mscore/mscore/measureproperties.cpp:85
#6 0x004061d5 in MeasureProperties::qt_metacall (this=0x22a588, _c=InvokeMetaMethod, _id=0, _a=0x225c80)
at trunk/win32build/mscore/moc_measureproperties.cxx:67
#7 0x6a34072f in ZN11QMetaObject8activateEP7QObjectiiPPv () from trunk\win32install\bin\QtCore4.dll
#8 0x655eeee5 in ZN16QDialogButtonBox7clickedEP15QAbstractButton () from trunk\win32install\bin\QtGui4.dll
#9 0x655f078c in ZN16QDialogButtonBoxC2EP7QWidget () from trunk\win32install\bin\QtGui4.dll
#10 0x655f1e9b in ZN16QDialogButtonBox11qt_metacallEN11QMetaObject4CallEiPPv () from trunk\win32install\bin\QtGui4.dll
#11 0x6a34072f in ZN11QMetaObject8activateEP7QObjectiiPPv () from trunk\win32install\bin\QtCore4.dll
#12 0x6593ee97 in ZN15QAbstractButton7clickedEb () from trunk\win32install\bin\QtGui4.dll
#13 0x655aacd6 in ZN15QAbstractButton5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#14 0x655ab905 in ZN15QAbstractButton12focusInEventEP11QFocusEvent () from trunk\win32install\bin\QtGui4.dll
#15 0x655abc16 in ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent () from trunk\win32install\bin\QtGui4.dll
#16 0x6517bc2d in ZN7QWidget5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#17 0x655aab97 in ZN15QAbstractButton5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#18 0x65691852 in ZN11QPushButton5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#19 0x6510c85c in ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent () from trunk\win32install\bin\QtGui4.dll
#20 0x6510f267 in ZN12QApplication6notifyEP7QObjectP6QEvent () from trunk\win32install\bin\QtGui4.dll
#21 0x6a3295ca in ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent () from trunk\win32install\bin\QtCore4.dll
#22 0x6510dad7 in ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E ()
from trunk\win32install\bin\QtGui4.dll
#23 0x6518b9c6 in ZN15QSessionManager6cancelEv () from trunk\win32install\bin\QtGui4.dll
#24 0x6518e570 in ZN19QApplicationPrivate10closePopupEP7QWidget () from trunk\win32install\bin\QtGui4.dll
#25 0x7603f8d2 in USER32!GetMessageW () from C:\Windows\system32\user32.dll
#26 0x005303e6 in Score::convertTrack (this=0x6518d270, midiTrack=0x5303e6) at trunk/mscore/mscore/importmidi.cpp:1281
#27 0x7603f794 in USER32!GetWindowLongW () from C:\Windows\system32\user32.dll
#28 0x6518d270 in ZN19QApplicationPrivate10closePopupEP7QWidget () from trunk\win32install\bin\QtGui4.dll
#29 0x76040008 in USER32!PeekMessageW () from C:\Windows\system32\user32.dll
#30 0x00000000 in ?? ()

When I tried to reproduce it, during changing of measure to irregular 3/4 duration, I got:

Program received signal SIGSEGV, Segmentation fault.
0x0188af43 in std::_Rb_tree_increment () at include/c++/3.4.5/iostream:77
77 static ios_base::Init __ioinit;
(gdb) bt
#0 0x0188af43 in std::_Rb_tree_increment () at include/c++/3.4.5/iostream:77
#1 0x01b5078f in std::_Rb_tree_const_iterator >::operator++ (this=0x225918)
at include/c++/3.4.5/bits/stl_tree.h:255
#2 0x004607fb in Score::cmdRemoveTime (this=0xbc7b048, tick=30720, len=480) at trunk/mscore/mscore/edit.cpp:984
#3 0x005098d1 in Measure::adjustToLen (this=0xb900f70, ol=1920, nl=1440) at trunk/mscore/mscore/measure.cpp:2456
#4 0x0059a62b in MeasureProperties::apply (this=0x22a588) at trunk/mscore/mscore/measureproperties.cpp:193
#5 0x0059a117 in MeasureProperties::bboxClicked (this=0x22a588, button=0xaacdd30)
at trunk/mscore/mscore/measureproperties.cpp:85
#6 0x004061d5 in MeasureProperties::qt_metacall (this=0x22a588, _c=InvokeMetaMethod, _id=0, _a=0x225c80)
at trunk/win32build/mscore/moc_measureproperties.cxx:67
#7 0x6a34072f in ZN11QMetaObject8activateEP7QObjectiiPPv () from trunk\win32install\bin\QtCore4.dll
#8 0x655eeee5 in ZN16QDialogButtonBox7clickedEP15QAbstractButton () from trunk\win32install\bin\QtGui4.dll
#9 0x655f078c in ZN16QDialogButtonBoxC2EP7QWidget () from trunk\win32install\bin\QtGui4.dll
#10 0x655f1e9b in ZN16QDialogButtonBox11qt_metacallEN11QMetaObject4CallEiPPv () from trunk\win32install\bin\QtGui4.dll
#11 0x6a34072f in ZN11QMetaObject8activateEP7QObjectiiPPv () from trunk\win32install\bin\QtCore4.dll
#12 0x6593ee97 in ZN15QAbstractButton7clickedEb () from trunk\win32install\bin\QtGui4.dll
#13 0x655aacd6 in ZN15QAbstractButton5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#14 0x655ab905 in ZN15QAbstractButton12focusInEventEP11QFocusEvent () from trunk\win32install\bin\QtGui4.dll
#15 0x655abc16 in ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent () from trunk\win32install\bin\QtGui4.dll
#16 0x6517bc2d in ZN7QWidget5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#17 0x655aab97 in ZN15QAbstractButton5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#18 0x65691852 in ZN11QPushButton5eventEP6QEvent () from trunk\win32install\bin\QtGui4.dll
#19 0x6510c85c in ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent () from trunk\win32install\bin\QtGui4.dll
#20 0x6510f267 in ZN12QApplication6notifyEP7QObjectP6QEvent () from trunk\win32install\bin\QtGui4.dll
#21 0x6a3295ca in ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent () from trunk\win32install\bin\QtCore4.dll
#22 0x6510dad7 in ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E ()
from trunk\win32install\bin\QtGui4.dll
#23 0x6518b9c6 in ZN15QSessionManager6cancelEv () from trunk\win32install\bin\QtGui4.dll
#24 0x6518e570 in ZN19QApplicationPrivate10closePopupEP7QWidget () from trunk\win32install\bin\QtGui4.dll
#25 0x7603f8d2 in USER32!GetMessageW () from C:\Windows\system32\user32.dll
#26 0x000b036e in ?? ()
#27 0x00000202 in ?? ()
#28 0x00000000 in ?? ()

Attachment Size
Little Brown Jug.mscz 2.43 KB

Comments