Crash on delete measure

• Dec 1, 2009 - 09:49
Type
Functional
Severity
S4 - Minor
Status
closed
Project

On deleting the last measures from an imported MIDI score, the application crashes. Here is the crash report:

Process: mscore [659]
Path: /Applications/Music/MuseScore.app/Contents/MacOS/mscore
Identifier: net.sourceforge.mscore
Version: 0.9 (0.9.5)
Code Type: X86 (Native)
Parent Process: launchd [88]

Date/Time: 2009-12-01 01:06:08.040 -0800
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 net.sourceforge.mscore 0x00055389 Score::cmdDeleteSelectedMeasures() + 41
1 net.sourceforge.mscore 0x000558b9 Score::cmdDeleteSelection() + 905
2 net.sourceforge.mscore 0x0004bf39 Score::cmd(QString const&) + 3321
3 net.sourceforge.mscore 0x0013b425 MuseScore::cmd(QAction*) + 7397
4 net.sourceforge.mscore 0x0000d369 MuseScore::qt_metacall(QMetaObject::Call, int, void**) + 361
5 QtCore 0x02b7dfec QMetaObject::activate(QObject*, int, int, void**) + 556
6 QtGui 0x01f3ab5e QActionGroup::triggered(QAction*) + 62
7 QtGui 0x01f3ae13 QActionGroup::setEnabled(bool) + 243
8 QtGui 0x01f3b311 QActionGroup::qt_metacall(QMetaObject::Call, int, void**) + 625
9 QtCore 0x02b7dfec QMetaObject::activate(QObject*, int, int, void**) + 556
10 QtGui 0x01f3689c QAction::triggered(bool) + 76
11 QtGui 0x01f389ff QAction::activate(QAction::ActionEvent) + 159
12 QtGui 0x01f38b33 QAction::event(QEvent*) + 211
13 QtGui 0x01f3dc0f QApplicationPrivate::notify_helper(QObject*, QEvent*) + 191
14 QtGui 0x01f4473c QApplication::notify(QObject*, QEvent*) + 268
15 QtCore 0x02b6bbd2 QCoreApplication::notifyInternal(QObject*, QEvent*) + 98
16 QtGui 0x01f6caa1 QShortcut::QShortcut(QWidget*) + 929
17 QtGui 0x01f6e605 QShortcut::QShortcut(QWidget*) + 7941
18 QtGui 0x01f45c8b QApplication::notify(QObject*, QEvent*) + 5723
19 QtCore 0x02b6bbd2 QCoreApplication::notifyInternal(QObject*, QEvent*) + 98
20 QtGui 0x01f3bc4c QApplicationPrivate::currentPlatform() + 76
21 QtGui 0x01f9c159 qt_mac_secure_keyboard(bool) + 505
22 QtGui 0x01f9d551 qt_mac_secure_keyboard(bool) + 5617
23 QtGui 0x01ed4bf4 QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2708
24 com.apple.HIToolbox 0x94fcfe29 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
25 com.apple.HIToolbox 0x94fcf0f0 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
26 com.apple.HIToolbox 0x94fcef4f SendEventToEventTargetWithOptions + 58
27 com.apple.HIToolbox 0x95003713 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1957
28 com.apple.HIToolbox 0x94fd027a DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2672
29 com.apple.HIToolbox 0x94fcf0f0 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
30 com.apple.HIToolbox 0x94ff1981 SendEventToEventTarget + 52
31 QtGui 0x01ee96d4 non-virtual thunk to QDesktopWidget::~QDesktopWidget() + 2276
32 QtCore 0x02b6b171 QEventLoop::processEvents(QFlags) + 65
33 QtCore 0x02b6b33d QEventLoop::exec(QFlags) + 189
34 QtCore 0x02b6f0ae QCoreApplication::exec() + 174
35 net.sourceforge.mscore 0x00143278 main + 9880
36 net.sourceforge.mscore 0x00009652 _start + 216
37 net.sourceforge.mscore 0x00009579 start + 41

Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x96cee0ea kevent + 10
1 libSystem.B.dylib 0x96cee804 _dispatch_mgr_invoke + 215
2 libSystem.B.dylib 0x96cedcc3 _dispatch_queue_invoke + 163
3 libSystem.B.dylib 0x96ceda68 _dispatch_worker_thread2 + 234
4 libSystem.B.dylib 0x96ced4f1 _pthread_wqthread + 390
5 libSystem.B.dylib 0x96ced336 start_wqthread + 30

Thread 2:
0 libSystem.B.dylib 0x96ce6856 select$DARWIN_EXTSN + 10
1 com.apple.CoreFoundation 0x95961ddd __CFSocketManager + 1085
2 libSystem.B.dylib 0x96cf4fbd _pthread_start + 345
3 libSystem.B.dylib 0x96cf4e42 thread_start + 34

Thread 3:
0 libSystem.B.dylib 0x96cc78da mach_msg_trap + 10
1 libSystem.B.dylib 0x96cc8047 mach_msg + 68
2 ....audio_hijack_server.hermes 0x03d9a9b2 ah_serv_loop + 132
3 libSystem.B.dylib 0x96cf4fbd _pthread_start + 345
4 libSystem.B.dylib 0x96cf4e42 thread_start + 34

Thread 4:
0 libSystem.B.dylib 0x96cc78da mach_msg_trap + 10
1 libSystem.B.dylib 0x96cc8047 mach_msg + 68
2 com.apple.audio.midi.CoreMIDI 0x02ddcf31 XServerMachPort::ReceiveMessage(int&, void*, int&) + 155
3 com.apple.audio.midi.CoreMIDI 0x02dfb8fe MIDIProcess::RunMIDIInThread() + 150
4 com.apple.audio.midi.CoreMIDI 0x02dde149 XThread::RunHelper(void*) + 17
5 com.apple.audio.midi.CoreMIDI 0x02dddb16 CAPThread::Entry(CAPThread*) + 96
6 libSystem.B.dylib 0x96cf4fbd _pthread_start + 345
7 libSystem.B.dylib 0x96cf4e42 thread_start + 34

Thread 5:
0 libSystem.B.dylib 0x96cc793a semaphore_timedwait_signal_trap + 10
1 libSystem.B.dylib 0x96cf5445 _pthread_cond_wait + 1066
2 libSystem.B.dylib 0x96d24028 pthread_cond_timedwait_relative_np + 47
3 com.apple.audio.CoreAudio 0x94020965 CAGuard::WaitFor(unsigned long long) + 219
4 com.apple.audio.CoreAudio 0x94023997 CAGuard::WaitUntil(unsigned long long) + 289
5 com.apple.audio.CoreAudio 0x94021294 HP_IOThread::WorkLoop() + 1892
6 com.apple.audio.CoreAudio 0x94020b2b HP_IOThread::ThreadEntry(HP_IOThread*) + 17
7 com.apple.audio.CoreAudio 0x94020a42 CAPThread::Entry(CAPThread*) + 140
8 libSystem.B.dylib 0x96cf4fbd _pthread_start + 345
9 libSystem.B.dylib 0x96cf4e42 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x209baa00 ebx: 0x00000000 ecx: 0x1fccf8d0 edx: 0x00000000
edi: 0x1fce6950 esi: 0x209ba730 ebp: 0xbfffdcf8 esp: 0xbfffdcc0
ss: 0x0000001f efl: 0x00010206 eip: 0x00055389 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000004

Binary Images:
0x1000 - 0x1000fe3 +net.sourceforge.mscore 0.9 (0.9.5) <60416914-22CB-FF6A-F138-45B980E42919> /Applications/Music/MuseScore.app/Contents/MacOS/mscore
0x19cc000 - 0x1c32ff6 +QtDesigner ??? (???) /Applications/Music/MuseScore.app/Contents/Frameworks/QtDesigner.framework/Versions/4/QtDesigner
0x1d21000 - 0x1e3dfe2 +QtScript ??? (???) <9D999A78-2A0E-1675-1936-23530BBF67F5> /Applications/Music/MuseScore.app/Contents/Frameworks/QtScript.framework/Versions/4/QtScript
0x1e66000 - 0x1ea8ff7 +QtSvg ??? (???) <4C01E6B2-0993-3C68-EA2C-E8677658A48A> /Applications/Music/MuseScore.app/Contents/Frameworks/QtSvg.framework/Versions/4/QtSvg
0x1ebd000 - 0x26bcff2 +QtGui ??? (???) <5A44D8AC-4606-B3D8-4B64-94DFE5950375> /Applications/Music/MuseScore.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui
0x28af000 - 0x28fdfff +QtXml ??? (???) <7E457FBF-F7AD-C985-3D24-A0E5ECADFB91> /Applications/Music/MuseScore.app/Contents/Frameworks/QtXml.framework/Versions/4/QtXml
0x2915000 - 0x29f6fe2 +QtNetwork ??? (???) <0E5618C9-F554-B3D4-8995-51AFB76B6234> /Applications/Music/MuseScore.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork
0x2a30000 - 0x2a56fff libssl.0.9.7.dylib ??? (???) <8BF98B2F-0F55-40CA-C082-43C76707BD24> /usr/lib/libssl.0.9.7.dylib
0x2a65000 - 0x2c3aff3 +QtCore ??? (???) /Applications/Music/MuseScore.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore
0x2c9f000 - 0x2d24ff2 +QtScriptTools ??? (???) <66C1E9FD-84F4-116B-85F5-3F198FAAF00E> /Applications/Music/MuseScore.app/Contents/Frameworks/QtScriptTools.framework/Versions/4/QtScriptTools
0x2d50000 - 0x2d5efff +libportaudio.2.dylib ??? (???) /Applications/Music/MuseScore.app/Contents/Frameworks/libportaudio.2.dylib
0x2d63000 - 0x2dbfff3 +libsndfile.1.dylib ??? (???) <2E0FDBAE-F552-F9C4-B022-CC7CC74DFD8D> /Applications/Music/MuseScore.app/Contents/Frameworks/libsndfile.1.dylib
0x2dcd000 - 0x2e19fff com.apple.audio.midi.CoreMIDI 1.7 (42) <670CB7F9-AA00-86F3-6623-E1335F7AEA83> /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
0x2e3e000 - 0x36214b7 com.apple.CoreGraphics 1.536.12 (???) <263EB5FC-DEAD-7C5B-C486-EC86C173F952> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x36e8000 - 0x3a07fe7 com.apple.CoreServices.CarbonCore 861.2 (861.2) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x3a7b000 - 0x3b30fe7 libcrypto.0.9.7.dylib ??? (???) <4917E4F2-817F-5AC4-3FBE-54BC96360448> /usr/lib/libcrypto.0.9.7.dylib
0x3b76000 - 0x3bbafef +libFLAC.8.dylib ??? (???) /Applications/Music/MuseScore.app/Contents/Frameworks/libFLAC.8.dylib


Comments

Can you attach the midi file as well or post the link to it? This way we can reproduce the problem and possibly fix it. Thanks.

Version 0.9.6
Revision 2205:2269

Measure operations cause crashes in files created with prerelease version, but not with files created with 0.9.5.

Insert measure, delete measure, changing actual duration all cause immediate crash unless the file was created with 0.9.5.

Tried keyboard and menu options, same difference.

Attachment Size
New file.mscx 76.07 KB
Old file.mscx 31.2 KB