Silent crash after opening up and closing the GameCenter

Greetings everyone,

I’m having a problem where the game crashes if I show the user the GameCenter interface on iOS.

I tested this on iOS 7.1.1 and iOS 6.1.6(not sure about the version number though) and I’m using Corona build 2014.2189.

It happens like this:

1- Tap Game Center in-game icon.

2- Show leaderboards/achievements.

3- Tap ‘Done’ on the Apple GameCenter UI so it’s closed down.

4- After the UI is closed, I don’t get any responses from the buttons on the same screen and it gives no errors. I just get those warnings from the Console of Xcode. 

<Warning>: CoreAnimation: timed out fence eee0b

<Warning>: CoreAnimation: updates deferred for too long"

I couldn’t find anything to solve this issue, so any help would be greatly appreciated.

Thank you,

Serkan

Anyone?

Is this a landscape only app?

What is your build.settings?

Rob

Hi @Rob,

Yes it’s a landscape only app. Is it because of the “portrait bug” of Apple? Does it still exist? I’m going to try now by adding portrait to the supported list.

build.settings:

orientation = { default = "landscapeRight", content = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } },

I tried adding portrait to the supported table but didn’t work. Still, the game is stuck whenever I submit score. I’m using GGLibs right now but I think I will try the sample code and tell you the result again.

Drop these in your build.settings… in the plist area

            CoronaUseIOS6LandscapeOnlyWorkaround = true,
            CoronaUseIOS7LandscapeOnlyWorkaround = true,
            CoronaUseIOS7IPadPhotoPickerLandscapeOnlyWorkaround = true,
            CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround = true,

See if that helps.

Rob

This is a temporary workaround, isn’t it? Aren’t you guys dropping those settings in the latest builds? Sooner or later, I’m gonna face that problem again with the new SDK versions. Do you think it would help if I use the latest daily build? (by the way, this is my personal account but we have a “Pro” account)

I figured out the problem. It was because of a flag that I forgot to change to false.

I’m sorry for taking your time.

Anyone?

Is this a landscape only app?

What is your build.settings?

Rob

Hi @Rob,

Yes it’s a landscape only app. Is it because of the “portrait bug” of Apple? Does it still exist? I’m going to try now by adding portrait to the supported list.

build.settings:

orientation = { default = "landscapeRight", content = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } },

I tried adding portrait to the supported table but didn’t work. Still, the game is stuck whenever I submit score. I’m using GGLibs right now but I think I will try the sample code and tell you the result again.

Drop these in your build.settings… in the plist area

            CoronaUseIOS6LandscapeOnlyWorkaround = true,
            CoronaUseIOS7LandscapeOnlyWorkaround = true,
            CoronaUseIOS7IPadPhotoPickerLandscapeOnlyWorkaround = true,
            CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround = true,

See if that helps.

Rob

This is a temporary workaround, isn’t it? Aren’t you guys dropping those settings in the latest builds? Sooner or later, I’m gonna face that problem again with the new SDK versions. Do you think it would help if I use the latest daily build? (by the way, this is my personal account but we have a “Pro” account)

I figured out the problem. It was because of a flag that I forgot to change to false.

I’m sorry for taking your time.