eqMac: Bug: eqMac crashed due to: "NSWindow drag regions should only be invalidated on the Main Thread!"

Disclaimer: Please go through existing issues to avoid creating duplicates. If you found a similar issue please post a comment there. If you are uncertain your issue is related to others then create the issue. Obvious ignorance of this rule might get you blocked from posting new issues. Please tick the box below to show that you have followed the guideline.

  • I have checked for a similar issue and sure it hasn’t been reported before.

Describe the bug Reported in #216 eqMac crashed due to error:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

Steps to Reproduce Could not reproduce my end. Waiting for users to report on what they did to cause such error to occur

Setup information: Waiting for users to report the fields below

  • macOS Version: [e.g. 10.15]
  • eqMac Version [e.g. 0.0.1] (if audio related issue)

Screenshots or Console.app logs Full crash dump from issue #216

$ /Applications/eqMac.app/Contents/MacOS/eqMac
2020-04-17 09:44:43.753 eqMac[3488:47533] Sentry Started -- Version: 4.4.0
Error: 561211770 ->  /Users/romanskisils/Programming/Bitgapp/eqmac/native/app/Source/Audio/Sources/System/Driver.swift:68

Error: 561211770 ->  /Users/romanskisils/Programming/Bitgapp/eqmac/native/app/Source/Audio/Sources/System/Driver.swift:107

2020-04-17 09:44:47.106 eqMac[3488:47573] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff3720cd07 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff6ff305bf objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3723550c -[NSException raise] + 9
	3   AppKit                              0x00007fff3443c24c -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
	4   AppKit                              0x00007fff34423cb2 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
	5   AppKit                              0x00007fff34604a15 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
	6   AppKit                              0x00007fff34423723 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
	7   AppKit                              0x00007fff346049ca -[NSPanel initWithContentRect:styleMask:backing:defer:] + 64
	8   AppKit                              0x00007fff34421709 -[NSWindowTemplate nibInstantiate] + 393
	9   AppKit                              0x00007fff343ebaa6 -[NSIBObjectData instantiateObject:] + 253
	10  AppKit                              0x00007fff343eb160 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 534
	11  AppKit                              0x00007fff343df331 loadNib + 401
	12  AppKit                              0x00007fff343de8f2 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 693
	13  AppKit                              0x00007fff343de548 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
	14  AppKit                              0x00007fff347a71c4 -[NSAlert init] + 101
	15  eqMac                               0x0000000107d62dc6 eqMac + 269766
	16  eqMac                               0x0000000107d62cba eqMac + 269498
	17  eqMac                               0x0000000107d27c14 eqMac + 27668
	18  eqMac                               0x0000000107d2798d eqMac + 27021
	19  eqMac                               0x0000000107d29e5b eqMac + 36443
	20  eqMac                               0x0000000107d2a4d9 eqMac + 38105
	21  eqMac                               0x0000000107d42660 eqMac + 136800
	22  libdispatch.dylib                   0x00007fff7107e658 _dispatch_client_callout + 8
	23  libdispatch.dylib                   0x00007fff71080818 _dispatch_continuation_pop + 414
	24  libdispatch.dylib                   0x00007fff710904be _dispatch_source_invoke + 2084
	25  libdispatch.dylib                   0x00007fff71083af6 _dispatch_lane_serial_drain + 263
	26  libdispatch.dylib                   0x00007fff710845d6 _dispatch_lane_invoke + 363
	27  libdispatch.dylib                   0x00007fff7108dc09 _dispatch_workloop_worker_thread + 596
	28  libsystem_pthread.dylib             0x00007fff712d8a3d _pthread_wqthread + 290
	29  libsystem_pthread.dylib             0x00007fff712d7b77 start_wqthread + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]    3488 abort      /Applications/eqMac.app/Contents/MacOS/eqMac

Additional information Waiting for a chance to see the error happen to myself, also waiting for more info from users.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 25

Most upvoted comments

eqMac 0.2 was working fine for me until today, where it won’t run. Starts up, I see the menu bar icon for a couple seconds, then it goes away. Here’s what seems relevant from the crash log:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should
only be invalidated on the Main Thread!'
terminating with uncaught exception of type NSException
abort() called

Reported again in #256