iT2D 1.5 - Game Center Create Account Crash
by Justin Allen · in iTorque 2D · 01/11/2012 (10:01 am) · 2 replies
Build: 1.5
Platform: iPhone
Target: Simulator / On Device
Issues: Closing the Game Center account creation view crashes the application.
Steps to Repeat:
1. Call initGameCenter() in script.
2. Select Create New Account.
3. Either finish all the steps to create an account or press the cancel button.
4. The application crashes after the Game Center account creation view finishes animating.
Signing in with an existing account and showing leaderboards works fine, however.
The code originally provided by Justin Mosiman that I used with 1.4.whatever did not crash at this stage.
Platform: iPhone
Target: Simulator / On Device
Issues: Closing the Game Center account creation view crashes the application.
Steps to Repeat:
1. Call initGameCenter() in script.
2. Select Create New Account.
3. Either finish all the steps to create an account or press the cancel button.
4. The application crashes after the Game Center account creation view finishes animating.
Signing in with an existing account and showing leaderboards works fine, however.
The code originally provided by Justin Mosiman that I used with 1.4.whatever did not crash at this stage.
#2
I just realized that it's related to the fix from http://www.garagegames.com/community/forums/viewthread/128671
Without that root view controller workaround, the account creation thing closing would bring back the alert box asking you if you wanted to sign in or create an account. With it, it can't, because it's not a real root view controller. Or that's what I'm surmising from this.
It does throw a warning: Unable to restore previously selected frame. to the log, which I missed the first time around.
01/11/2012 (1:25 pm)
If you step into it, iPhoneMain.mm:350. I just realized that it's related to the fix from http://www.garagegames.com/community/forums/viewthread/128671
Without that root view controller workaround, the account creation thing closing would bring back the alert box asking you if you wanted to sign in or create an account. With it, it can't, because it's not a real root view controller. Or that's what I'm surmising from this.
It does throw a warning: Unable to restore previously selected frame. to the log, which I missed the first time around.
Employee Michael Perry
GarageGames