x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

IOS GameCenter crash on release

Hi.

After releasing a game on App Store we noticed some users reported crashing. It turns out it happens only when attemtping to log in to GameCenter. We are using some of the blueprints to gather data from GameCenter( uch as Read Friends) + some functionality to use the native GC window ( leaderboards, achievements). The tricky part is the crashes are not reproducible in sandbox - they only happen on live app and only to some users.

Did anyone encounter anything similar?

Product Version: Not Selected
Tags:
more ▼

asked Apr 24 '15 at 04:11 PM in Bug Reports

avatar image

Zimo
61 5 9 11

avatar image wittlief ♦♦ STAFF Apr 27 '15 at 04:57 PM

Hi Zimo,

Unfortunately this is something of a sticky issue to try and reproduce because Game Center can sometimes be unreliable, and because your shipped user version can't provide crash logs. Are you able to reproduce this crash with a development version on a device, at all?

avatar image Zimo Apr 28 '15 at 07:27 AM

That's exactly the problem. We weren't able to reproduce this issue on development version at all. Even if the store version would crash on the same device.

avatar image Ravlek STAFF May 04 '15 at 06:09 PM

Try creating a test build of your game and seeing if that fails on the same device. A test build has limited logging and is very similar to the shipping build. If that doesn't fail, then you can try a local build of the shipping and see if that fails. If so, then you can make calls to NSLog around the code which tries to access Game Center and potentially get some more information.

-Pete

avatar image Zimo May 05 '15 at 09:05 AM

Hey, thanks for the answer. I misspoke in earlier reply. What i meant, is we tested shipping(and development) build on a device, but it still resulted in no crashes. The only difference between this one and one on App Store is that the App Store one is signed by apple so it has access to normal GameCenter, while everything you build locally is locked to Sandbox.

But i have one more question: did you get reports of GC crashes while using only your code/blueprints (such as ReadFriends)? I'm asking because we added a bit of our code, that acts similarly but gets more info from GC, and i'm trying to narrow the possibilities.

avatar image intoxicat3 May 05 '15 at 09:30 AM

Hello,

Basically this crash occurs for over 50% of iOS users :(

We are not able to track it because everything is working well in development/game center sandbox. It only occurs in live product.

I will be really grateful if you guys can check out the source (I've sent whole project to you guys) and try to help with resolving this issue!

Best!

avatar image alexga May 05 '15 at 05:09 PM

Hello guys, Same thing happen with my App, Framework is Sprite kit and it connects to game center (live server) on didloadview.

I change setting back and forth until it works, I still do not know what fixed.

  • Logo off from Game Center

  • Log off from App Store

  • Login to Game Center with the same apple ID used to buy the App

  • Login to Game Center with a different apple ID

  • Change Game Center alias name

  • Play game from within the game Center Button [ ... ]

I did this in not particular order trying to avoid the crash and suddenly I works. I'm still frustrated because I still do not know why is crashing

That is correct this intermittent Issue do not affect to all users cause I can see people on the Leaderboard with points.

This crash happen to user with or without Jail-broken devices.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello Guys, This works for me.

I followed Apple instructions how to get Crashes from the App Store for my App:

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AnalyzingCrashReports/AnalyzingCrashReports.html

"Open in Project" took me to the line when the App Crashes. Aha! I was reading the leaderboard that was nil and casting as Int !!! After adding a if ( THIS != nil ) { } The App do not crash anymore

I notice that when there is not value on the leaderboard GameCenter says "Not ranked" meaning the value is nil

I hope this help. Thanks

more ▼

answered May 05 '15 at 06:01 PM

avatar image

alexga
21 1

avatar image Zimo May 06 '15 at 10:24 AM

Thanks for the tip, we also think it might be related to leaderboards, gonna check that out!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question