The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
Game Center & Yosemite
campbelljc
Joined: 13 Sep 2015
Posts: 2
Posted: Tue Sep 15, 2015 1:56 am
I am trying to get Game Center working under SDL in Yosemite. Specifically, to display the achievements window. My code (below) worked fine under Mavericks, but I am pretty sure that it was when Yosemite came out that the code no longer worked properly. Game Center will still authenticate on program launch, but when I open the achievements window, it displays for 1-2 seconds before the program crashes with the error "not running on main (AppKit) thread". Has anyone gotten this error under Yosemite?
It seems like a pretty basic error, unfortunately I am not quite sure how to fix it...
Error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'not running on AppKit (main) thread'.
Assertion failure in void assertRunningOnAppKitThread()(), /SourceCache/ViewBridge/ViewBridge-105/ViewBridgeUtilities.m:535
An uncaught exception was raised
not running on AppKit (main) thread
And this is in the crash log, which I believe shows that some part of Game Center is running in a separate thread from the main one which might be causing the problem, but not sure how to fix that: