bugTutka - Bugs: bug #56861, Tutka crashes when saving an empty...

 
 

bug #56861: Tutka crashes when saving an empty song as MIDI right after startup

Submitter:  Vesa Halttunen <vesuri>
Submitted:  Thu 05 Sep 2019 08:38:07 PM UTC
   
 
Category:  MIDI Priority:  5 - Normal
Status:  Confirmed Assigned to:  vesuri
Open/Closed:  Open Release:  * 1.1.3
Operating System:  * Mac OS X Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 Sep 2019 08:38:07 PM UTC, original submission:  

Steps:

1. Run tutka
2. Save as ~/tmp/test.mid

Expected:

An empty MIDI file

Actual:

Crash:

  • thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xffffffffffffffff)

    frame #0: 0x000000010002101f Tutka`Player::init(this=0x0000000112322d00) at player.cpp:1084 [opt]
   1081     emit songChanged(song);
   1082     updateLocation(true);
   1083
-> 1084     delete oldSong;
   1085     oldSong = NULL;
   1086 }
   1087
Target 0: (Tutka) stopped.
(lldb) bt

  • thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xffffffffffffffff)

  * frame #0: 0x000000010002101f Tutka`Player::init(this=0x0000000112322d00) at player.cpp:1084 [opt]
    frame #1: 0x0000000100eb7a7f QtCore`QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const + 1295
    frame #2: 0x0000000100eb708c QtCore`QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) + 2044
    frame #3: 0x000000010005da0f Tutka`songToSMF(Song*) [inlined] QMetaObject::invokeMethod(obj=0x0000000112322d00, member=<unavailable>, val1=<unavailable>) at qobjectdefs.h:460 [opt]
    frame #4: 0x000000010005d90e Tutka`songToSMF(song=0x000000010156e5a0) at conversion.cpp:573 [opt]
    frame #5: 0x0000000100030512 Tutka`MainWindow::saveAs(this=0x00000001013a6870) at mainwindow.cpp:881 [opt]
    frame #6: 0x0000000100edea3c QtCore`QMetaObject::activate(QObject*, int, int, void**) + 3132
    frame #7: 0x000000010019a6d5 QtWidgets`QAction::activate(QAction::ActionEvent) + 309
    frame #8: 0x0000000100ed70f1 QtCore`QObject::event(QEvent*) + 753
    frame #9: 0x00000001001a3c3d QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
    frame #10: 0x00000001001a5042 QtWidgets`QApplication::notify(QObject*, QEvent*) + 594
    frame #11: 0x0000000100ead6e4 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
    frame #12: 0x0000000100eae91e QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 878
    frame #13: 0x00000001059bd499 libqcocoa.dylib`QCocoaEventDispatcherPrivate::processPostedEvents() + 313
    frame #14: 0x00000001059bdc00 libqcocoa.dylib`QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 32
    frame #15: 0x00007fff3674f981 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #16: 0x00007fff36807cac CoreFoundation`__CFRunLoopDoSource0 + 108
    frame #17: 0x00007fff36732930 CoreFoundation`__CFRunLoopDoSources0 + 208
    frame #18: 0x00007fff36731dad CoreFoundation`__CFRunLoopRun + 1293
    frame #19: 0x00007fff36731607 CoreFoundation`CFRunLoopRunSpecific + 487
    frame #20: 0x00007fff35a11d96 HIToolbox`RunCurrentEventLoopInMode + 286
    frame #21: 0x00007fff35a11a0f HIToolbox`ReceiveNextEventCommon + 366
    frame #22: 0x00007fff35a11884 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
    frame #23: 0x00007fff33cc1a73 AppKit`_DPSNextEvent + 2085
    frame #24: 0x00007fff34457e34 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
    frame #25: 0x00007fff33cb6885 AppKit`-[NSApplication run] + 764
    frame #26: 0x00000001059bcb7b libqcocoa.dylib`QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2955
    frame #27: 0x0000000100ea8cff QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
    frame #28: 0x0000000100eadcf2 QtCore`QCoreApplication::exec() + 130
    frame #29: 0x0000000100004d7e Tutka`runWithGUI(argc=1, argv=0x00007ffeefbff698) at main.cpp:82 [opt]
    frame #30: 0x00007fff5e6fb015 libdyld.dylib`start + 1
    frame #31: 0x00007fff5e6fb015 libdyld.dylib`start + 1

Vesa Halttunen <vesuri>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vesuri (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code