Skip to content

MIDI keyboard causing crashes on OSX #400

@LeWolfYT

Description

@LeWolfYT

Every time I try pressing a note on my keyboard while recording, the program crashes. Sometimes, by doing other things (I don't know what exactly), it doesn't crash.
This is the error log:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow geometry should only be modified on the main thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018ac37ae0 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000018a6fab90 objc_exception_throw + 88
	2   CoreFoundation                      0x000000018ac5c154 _CFBundleGetValueForInfoKey + 0
	3   AppKit                              0x000000018f479f70 -[NSWindow(Regions) _postWindowNeedsToResetDragMargins] + 412
	4   AppKit                              0x000000018eb17d7c -[NSThemeFrame _tileTitlebarAndRedisplay:] + 88
	5   AppKit                              0x000000018eb25960 -[NSTitledFrame _titleDidChange] + 116
	6   AppKit                              0x000000018f58d198 -[NSTitledFrame setTitle:subtitle:] + 420
	7   AppKit                              0x000000018eb256cc -[NSThemeFrame setTitle:] + 52
	8   AppKit                              0x000000018f26f158 -[NSFrameView _updateTitleProperties:animated:] + 44
	9   AppKit                              0x000000018f57fed4 -[NSThemeFrame _updateTitleProperties:animated:] + 156
	10  CoreFoundation                      0x000000018abbb46c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
	11  CoreFoundation                      0x000000018ac4ab28 ___CFXRegistrationPost_block_invoke + 92
	12  CoreFoundation                      0x000000018ac4aa6c _CFXRegistrationPost + 436
	13  CoreFoundation                      0x000000018ab8a8b8 _CFXNotificationPost + 740
	14  Foundation                          0x000000018c144680 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
	15  AppKit                              0x000000018f449788 -[NSWindowTitleController _propertiesChanged:] + 128
	16  AppKit                              0x000000018eb254e4 -[NSWindow _dosetTitle:andDefeatWrap:] + 156
	17  MilkyTracker                        0x0000000102449264 _ZN15PPDisplayDevice8setTitleERK8PPString + 76
	18  MilkyTracker                        0x00000001023d31c0 _ZN7Tracker17updateWindowTitleEv + 208
	19  MilkyTracker                        0x00000001023ba924 _ZN7Tracker11handleEventEP8PPObjectP7PPEvent + 5336
	20  MilkyTracker                        0x0000000102433fe0 _ZN9PPControl13notifyChangesEv + 72
	21  MilkyTracker                        0x000000010234a39c _ZN10EditorBase14notifyListenerENS_19EditorNotificationsE + 72
	22  MilkyTracker                        0x000000010235ab60 _ZN13PatternEditor10finishUndoENS_11LastChangesEb + 216
	23  MilkyTracker                        0x000000010235d090 _ZN13PatternEditor9writeNoteEibPNS_23PatternAdvanceInterfaceE + 136
	24  MilkyTracker                        0x0000000102368544 _ZN20PatternEditorControl13handleKeyDownEttt + 264
	25  MilkyTracker                        0x0000000102364538 _ZN20PatternEditorControl13dispatchEventEP7PPEvent + 1788
	26  MilkyTracker                        0x0000000102432250 _ZN11PPContainer13dispatchEventEP7PPEvent + 996
	27  MilkyTracker                        0x0000000102352480 _ZN20InputControlListener8sendNoteEii + 236
	28  MilkyTracker                        0x0000000102449cb0 _ZN12MidiReceiver8readProcEPK14MIDIPacketListPvS3_ + 256
	29  CoreMIDI                            0x00000001a7145ea4 _ZN4MIDI14PacketizerBaseINS_16LegacyPacketListEED2Ev + 60
	30  CoreMIDI                            0x00000001a7145e08 _ZN4MIDI24MIDIPacketList_DelivererclEPKNS_9EventListE + 1988
	31  CoreMIDI                            0x00000001a718c87c _ZN11MIDIProcess16MIDIInPortThread3RunEv + 464
	32  CoreMIDI                            0x00000001a718176c _ZN12CADeprecated7XThread9RunHelperEPv + 48
	33  CoreMIDI                            0x00000001a718be44 _ZN12CADeprecated9CAPThread5EntryEPS0_ + 96
	34  libsystem_pthread.dylib             0x000000018aadbc0c _pthread_start + 136
	35  libsystem_pthread.dylib             0x000000018aad6b80 thread_start + 8
)

I've also attached a recording of what happens. The crash occurs when I press down a note. Here I'm running the ARM version of 1.03, but it also happens on all subsequent versions regardless of architecture. Interestingly, the x86_64 version of 1.03 is the latest version that works perfectly fine for me.

milkytrackercrash.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions