Game Center Crash

Sometime after daily build 2014.2454 a Game Center crash was introduced. I assume this was when it was moved to a plugin. When an individual high score board is opened it works fine, but tapping the “done” button causes the whole app to crash.

Anyone else experiencing this with the latest daily build?

Hi @dfoxinator,

Thanks for pointing this out. Can you give me some more specific details for your case, i.e. which exact version of Corona you’re using, which version of iOS, etc.

Thanks,

Brent

Same thing is happing to my Game Center game with daily build 2014.2460, exiting Game Center UI is crashing entire app.

gameNetwork calling Game Center with daily build 4014.2449 works fine when compiling with iOS 8 & 8.1.

I’m still waiting for my iOS 8 test device but it crashes the same way on iOS 6.1.6 and iOS 7.1.2 building with iOS SDK 8.0 or 8.1.

 

Calling

gameNetwork.show(‘matches’, {minPlayers=2, maxPlayers=2, listener=showMatchesEventHandler})

or

gameNetwork.show(‘createMatch’, {minPlayers=2, maxPlayers=2, listener=showCreateMatchEventHandler})

crashes entire app when exiting Game Center UI screen by selecting a match or taping the cancel/done button.

 

Calling

gameNetwork.request(‘createMatch’, {playerIDs={playerOneID, playerTwoID}, minPlayers=2, maxPlayers=2, listener=requestCreateMatchEventHandler})

returns nil values.

 

Sorry, I forgot to respond to this. animonger’s description/details look good. Somehow I was able to get it working, I believe by removing the listener param. Obviously this isn’t a solution if you actually need the listener, but mine wasn’t needed.

Just tried daily build 2014.2461 and Game Center still crashes on exit. This an excerpt for the xCode 6.0.1 Console:

Oct 14 10:55:47 Touchy5 com.apple.launchd[1] (UIKitApplication:com.animonger.dayglowtictactoe[0xe557][6249]) <Warning>: (UIKitApplication:com.animonger.dayglowtictactoe[0xe557]) Job appears to have crashed: Segmentation fault: 11

Oct 14 10:55:47 Touchy5 com.apple.launchd[1] (UIKitApplication:com.animonger.dayglowtictactoe[0xe557]) <Error>: (UIKitApplication:com.animonger.dayglowtictactoe[0xe557]) assertion failed: 11D257: launchd + 74659 [1A6C526C-3CCA-3E32-B3C0-F448B1D16C89]: 0x16

Oct 14 10:55:47 Touchy5 backboardd[28] <Warning>: Application ‘UIKitApplication:com.animonger.dayglowtictactoe[0xe557]’ exited abnormally with signal 11: Segmentation fault: 11

Hi guys,

Engineering has requested a bug report and test case showing this bug. Can one of you please submit it and post the case # here for future reference?

Thanks,

Brent

Hi Brent,

Bug report filed:

(Case 36436) Game Center plugin crashes app on GC UI exit

Thanks,

Warren

Hi all,

  I’ll piggyback on your comments - I can confirm that based on my testing, this was introduced when Game Center moved to being a plugin, and it only happens when you have a listener on the ‘showAchievements’ call.  

My basis for this statement is that I left the listener intact and reverted to the daily build before it was in GameCenter, and it worked fine. Then I also the listener but used the newer daily build and it also worked … it’s only the combination of having the listener and using the new build (after it became a plugin) that seems to cause it.

Just recompiled and tested the Game Center plugin fix and the crash on GC UI exit with a callback is working now but the

gameNetwork.request(‘createMatch’, {playerIDs={playerOneID, playerTwoID}, minPlayers=2, maxPlayers=2, listener=requestCreateMatchEventHandler})

is still broken.

Hi @animonger,

Here are my thoughts on this latest issue. .request() with “createMatch” already includes the person creating the match. You’re trying to invite 2 people but you’ve set maxPlayers to 2, and this causes an error when creating the match (in this case, maxPlayers should be 3). Essentially, you shouldn’t include yourself when creating a match. Can you fix this and see if the issue persists?

Brent

Thanks for the info, Brent!

I just tested your solution and this works perfectly now:

gameNetwork.request(‘createMatch’, {playerIDs={playerTwoID}, minPlayers=2, maxPlayers=2, listener=requestCreateMatchEventHandler})

Warren

Hi @dfoxinator,

Thanks for pointing this out. Can you give me some more specific details for your case, i.e. which exact version of Corona you’re using, which version of iOS, etc.

Thanks,

Brent

Same thing is happing to my Game Center game with daily build 2014.2460, exiting Game Center UI is crashing entire app.

gameNetwork calling Game Center with daily build 4014.2449 works fine when compiling with iOS 8 & 8.1.

I’m still waiting for my iOS 8 test device but it crashes the same way on iOS 6.1.6 and iOS 7.1.2 building with iOS SDK 8.0 or 8.1.

 

Calling

gameNetwork.show(‘matches’, {minPlayers=2, maxPlayers=2, listener=showMatchesEventHandler})

or

gameNetwork.show(‘createMatch’, {minPlayers=2, maxPlayers=2, listener=showCreateMatchEventHandler})

crashes entire app when exiting Game Center UI screen by selecting a match or taping the cancel/done button.

 

Calling

gameNetwork.request(‘createMatch’, {playerIDs={playerOneID, playerTwoID}, minPlayers=2, maxPlayers=2, listener=requestCreateMatchEventHandler})

returns nil values.

 

Sorry, I forgot to respond to this. animonger’s description/details look good. Somehow I was able to get it working, I believe by removing the listener param. Obviously this isn’t a solution if you actually need the listener, but mine wasn’t needed.

Just tried daily build 2014.2461 and Game Center still crashes on exit. This an excerpt for the xCode 6.0.1 Console:

Oct 14 10:55:47 Touchy5 com.apple.launchd[1] (UIKitApplication:com.animonger.dayglowtictactoe[0xe557][6249]) <Warning>: (UIKitApplication:com.animonger.dayglowtictactoe[0xe557]) Job appears to have crashed: Segmentation fault: 11

Oct 14 10:55:47 Touchy5 com.apple.launchd[1] (UIKitApplication:com.animonger.dayglowtictactoe[0xe557]) <Error>: (UIKitApplication:com.animonger.dayglowtictactoe[0xe557]) assertion failed: 11D257: launchd + 74659 [1A6C526C-3CCA-3E32-B3C0-F448B1D16C89]: 0x16

Oct 14 10:55:47 Touchy5 backboardd[28] <Warning>: Application ‘UIKitApplication:com.animonger.dayglowtictactoe[0xe557]’ exited abnormally with signal 11: Segmentation fault: 11

Hi guys,

Engineering has requested a bug report and test case showing this bug. Can one of you please submit it and post the case # here for future reference?

Thanks,

Brent

Hi Brent,

Bug report filed:

(Case 36436) Game Center plugin crashes app on GC UI exit

Thanks,

Warren

Hi all,

  I’ll piggyback on your comments - I can confirm that based on my testing, this was introduced when Game Center moved to being a plugin, and it only happens when you have a listener on the ‘showAchievements’ call.  

My basis for this statement is that I left the listener intact and reverted to the daily build before it was in GameCenter, and it worked fine. Then I also the listener but used the newer daily build and it also worked … it’s only the combination of having the listener and using the new build (after it became a plugin) that seems to cause it.

Just recompiled and tested the Game Center plugin fix and the crash on GC UI exit with a callback is working now but the

gameNetwork.request(‘createMatch’, {playerIDs={playerOneID, playerTwoID}, minPlayers=2, maxPlayers=2, listener=requestCreateMatchEventHandler})

is still broken.

Hi @animonger,

Here are my thoughts on this latest issue. .request() with “createMatch” already includes the person creating the match. You’re trying to invite 2 people but you’ve set maxPlayers to 2, and this causes an error when creating the match (in this case, maxPlayers should be 3). Essentially, you shouldn’t include yourself when creating a match. Can you fix this and see if the issue persists?

Brent