Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 181

trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
05/06/13 02:01 AM (12 years ago)

GameCenter causing app to crash

When installing the app and first launch, if i'm NOT logged into gamecenter, the app crashes: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a modal transition from <GKModalRootViewController: 0x1edd4a30> to <GKHostedAuthenticateViewController: 0x1ed7f500> while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to know the current transition has completed' but, if i AM logged into Game Center, it loads up correctly. Any idea's?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/06/13 04:59 AM (12 years ago)
Honestly not sure; the only game center experience I have is adding the SDK for Nad's new Quiz Plugin. But I bet that recent tutorial by Chris might shed some light on things? https://www.buzztouch.com/files/howtos/exception%20debugging%20how-to.pdf Hope it helps! Cheers! -- Smug
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/06/13 09:11 AM (12 years ago)
The error is saying hey I'm already trying to show this why are you calling it again before its loaded. It sounds like the check for game centre is being called twice somewhere. When you are loaded it just sets a bool saying yes game centre logged in and a cheeky welcome banner pops up. When you are not logged in it pushes the game centre login. I'm guessing that calling this twice in view did load and view did appear for example would cause the app to panic and crash. I remember coming across this when following a tutorial to add it to a game. PM me if you want me to take a more detailed look
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/06/13 09:41 AM (12 years ago)
That makes sense, will look for that when I can get near a 'puter Cheers
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
05/07/13 02:15 PM (12 years ago)
Hmmm, no double calls that I could see. Seems intermittent now so will see how it goes...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.