I'm running Mac OS 10.12.6. Building proceeds fine, but at runtime I'm getting the error Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'.
Searching on this issue results in a lot of results, but not a lot of solutions, related to events/graphics calls being made outside the main thread.
Full error follows; thanks for any thoughts or ideas.
> ./snipes
2018-01-29 23:39:36.891 snipes[7435:42033] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff935632cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffa837a48d objc_exception_throw + 48
2 AppKit 0x00007fff9174ce82 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 4480
3 libSDL2-2.0.0.dylib 0x0000000109bc040c Cocoa_PumpEvents + 211
4 libSDL2-2.0.0.dylib 0x0000000109b5dca5 SDL_PumpEvents_REAL + 23
5 libSDL2-2.0.0.dylib 0x0000000109b5dd20 SDL_WaitEventTimeout_REAL + 76
6 snipes 0x0000000109ab1808 _ZL17ConsoleThreadFuncPv + 1112
7 libSDL2-2.0.0.dylib 0x0000000109b896f0 SDL_RunThread + 60
8 libSDL2-2.0.0.dylib 0x0000000109bc8b9b RunThread + 9
9 libsystem_pthread.dylib 0x00007fffa8e7993b _pthread_body + 180
10 libsystem_pthread.dylib 0x00007fffa8e79887 _pthread_body + 0
11 libsystem_pthread.dylib 0x00007fffa8e7908d thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
I'm running Mac OS 10.12.6. Building proceeds fine, but at runtime I'm getting the error
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'nextEventMatchingMask should only be called from the Main Thread!'.Searching on this issue results in a lot of results, but not a lot of solutions, related to events/graphics calls being made outside the main thread.
Full error follows; thanks for any thoughts or ideas.