App crash when after update app. from App Store

Hi Emerson,

Can you please be more specific on your issue? What is occurring, what build # of Corona are you using, what devices are you testing on, etc.

Thanks,

Brent

Hi there,

The issue happens when I install the app (tested just in debug mode). It is not running at this point, just installing. Oddly enough it does not prevent the app to run correctly later.

I’m using building 1154, testing it on the iPad4 (>5GB free), almost no other apps in the memory (just safari&email)

Here is the console log excerpt

Aug 7 21:14:39 lockdownd[44] <Notice>: 00281000 copy_phonenumber: CTSettingCopyMyPhoneNumber() returned NULL
Aug 7 21:14:39 lockdownd[44] <Notice>: 00281000 special_case_get: MGCopyAnswer(kMGQMobileEquipmentIdentifier) returned NULL
Aug 7 21:14:39 lockdownd[44] <Notice>: 00281000 special_case_get: MGCopyAnswer(kMGQDeviceEnclosureColor) returned NULL
Aug 7 21:14:41 lockdownd[44] <Warning>: SSSQLiteDatabase: Could not setup database: [14, /var/root/Library/com.apple.itunesstored/kvs.sqlitedb]
Aug 7 21:14:41 lockdownd[44] <Notice>: 01688000 __copy_itunes_value_block_invoke_0: com.apple.mobile.iTunes.store/PurchaseTypes -> (null)
Aug 7 21:14:43 mobile_assertion_agent[4660] <Notice>: service_one_connection: Connection closed for client iTunes.
Aug 7 21:14:55 amfid[4926] <Error>: Aug 7 21:14:55 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Aug 7 21:14:55 kernel[0] <Debug>: launchd[4925] Builtin profile: container (sandbox)
Aug 7 21:14:55 kernel[0] <Debug>: launchd[4925] Container: /private/var/mobile/Applications/C78102C1-DF6F-43F8-B4CD-D67009B762FE (sandbox)
Aug 7 21:14:56 kbd[50] <Warning>: -[TIXPCDataTransport _handleForPurpose:withReplyBlock:] couldn’t get data source for purpose=__TIRDTAB
Aug 7 21:14:56 networkd[69] <Error>: cellular_interface_get_ifindex if_nametoindex for pdp_ip3 failed
Aug 7 21:14:56 networkd[69] <Error>: cellular_interface_get_ifindex if_nametoindex for pdp_ip3 failed
Aug 7 21:14:57 networkd[69] <Error>: cellular_interface_get_ifindex if_nametoindex for pdp_ip3 failed
Aug 7 21:14:57 LegendOfZhizz[4925] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Aug 7 21:14:57 LegendOfZhizz[4925] <Info>: 21:14:57.759671 com.apple.AVConference: GKSConnSettings: set server: {
“gk-cdx” = “17.173.254.218:4398”;
“gk-commnat-cohort” = “17.173.254.220:16386”;
“gk-commnat-main0” = “17.173.254.219:16384”;
“gk-commnat-main1” = “17.173.254.219:16385”;
}

Thank you for your interest!

Emerson

Hi, 

some more info about libmobilegestalt error message:

  1. It happens every time the app starts

  2. it happens after while, not immediately (I would say about 2 or 3 seconds after launch the app)

  3. It happens only once (after the app start)

  4. It happens for no specific line (maybe an internal call ?)

  5. No leaks in the app (confirmed with Instruments)

  6. It’s driving  me crazy!

Emerson

Hi Emerson,

I’m not sure how much more I can help, given the details. Have you tried building with #1137? Are you using plugins, and if so, which ones? Are you accessing any 3rd-party libraries or products? Does anything happen… meaning, do you see anything render to the screen before the crash?

Best regards,

Brent

Hello, 

I’ve found the cuprit,but I’m still unable to fix it.

gameNetwork = require “gameNetwork”

loggedIntoGC = false

– called after the “init” request has completed

function initCallback( event )

    if event.data then

        loggedIntoGC = true

    else

        loggedIntoGC = false

    end

end

– function to listen for system events

function onSystemEvent( event ) 

    if event.type == “applicationStart” then

        gameNetwork.init( “gamecenter”, initCallback )

        return true

    end

end

Runtime:addEventListener( “system”, onSystemEvent )

Issue is taking place in the line

       gameNetwork.init( “gamecenter”, initCallback ) 

If I remove that line, no “libMobileGestalt” error message at all (but of course no gamecenter at all too).

Any ideas?

Emerson

Hi Brent, 

thank you for your quick reply!

  1. I’m now using 1137. Same issue as 1154

  2. No plugins, 

  3. No third-party libraries (plain Corona code only)

  4. Actually everything works, despite the crash, gamecenter included, but the app has been rejected by Apple due error messages such this one.

Again. The app is launched correctly, game works perfectly, but during the app startup, that error message appears: 

Aug 13 21:25:28 iPad4-de-emerson LegendOfZhizz[18543] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary

And now I know this has something to do with GameCenter support in Corona. 

Regards, Emerson

Hi Emerson,

I’ve forwarded this to one of the engineers who’s far more familiar with GameCenter than I am. They’re an extremely busy bunch, however, so I can’t guarantee how quickly it will be looked into. Thanks for your patience in any case…

Brent

Hi Brent, Any news? Emerson

Well,

I’m not sure if this is a good news or a bad news. I’m checking every possible built with corona app that I can find at app store…every app that support gamecenter is facing the same issue, for instance: 

Aug 15 22:33:03 iPad4-de-emerson SFTycoon [1184] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary

Even Corona’s Gamecenter sample show this error.

I’m not the only one after all. I’ll submit my game to apple again. If they reject it due this problem, I’ll argue that other games are facing this issue, but nonetheless they were published.

I’m increasingly worried about things like this. I think Corona is great, but this is a sensitive area…I would like to see more responsiveness on error reports like this one. If this is not related to Corona itself (which I doubt) then at least we should be able to catch the exception thrown by the app api call. 

Emerson

ps: I’m using Corona’s Hall of Fame, this forum and even Google to identify powered with Corona apps. 

Hi Emerson,

I just built the Corona GameCenter sample app and installed it on my iPhone5, using Build #1137. It is not crashing at all. The issue might be your device. What are you testing these builds on, and which version of the OS?

Sincerely,

Brent Sorrentino

Hi, 

iPad 4, 1137, 6.1.3

Nothing really special here. Anyways, if it is something related to this specific device then we are good. Apple should not see this. 

Regards, Emerson

Hi Emerson,

I just tested our sample app on my iPad4 running 6.1.3… basically, same device you have.

Is there anything unusual about your iPad, from a functionality standpoint?

There is a known issue with GameCenter apps that are “landscape only” causing issues with iOS6 unless a flag is set in the build settings, but that wouldn’t explain why our sample app is showing the same error on your iPad. Does it actually crash on yours, or just show an error in the log?

Best regards,

Brent

Hi, 

there is no real crash, just an error message in the log. This iPad has nothing special at all. I’m using it pretty much basically to surf the web, read books and test apps. 

What is this flag that has to be set for landscape only apps? That’s how my app has been designed to work…

Regards, Emerson

Hi, 

I just test app s in another device, and the error message is still there. This time it was an iPad2, iOS 6.0.1)

Aug 16 06:50:46 iPad-de-Elisangela SFTycoon[421] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary

Aug 16 06:50:46 iPad-de-Elisangela SFTycoon[421] <Info>: 06:50:46.386630 com.apple.AVConference: GKSConnSettings: set server: {

        “gk-cdx” = “17.173.254.221:4398”;

        “gk-commnat-cohort” = “17.173.254.223:16386”;

        “gk-commnat-main0” = “17.173.254.222:16384”;

        “gk-commnat-main1” = “17.173.254.222:16385”;

    }

Aug 16 06:56:08 iPad-de-Elisangela LegendOfZhizz[437] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary

Aug 16 06:56:08 iPad-de-Elisangela LegendOfZhizz[437] <Info>: 06:56:08.185895 com.apple.AVConference: GKSConnSettings: set server: {

        “gk-cdx” = “17.173.254.218:4398”;

        “gk-commnat-cohort” = “17.173.254.220:16386”;

        “gk-commnat-main0” = “17.173.254.219:16384”;

        “gk-commnat-main1” = “17.173.254.219:16385”;

    }

So, this is unrelated to a specific iPad after all. Could it be something related to Corona support to iOS 6.x ? I don’t have anything running iOS5.x (and I do not intend to). 

Interestingly enough you didn’t see the error, but you were testing apps in an iPhone 5…

Regards, Emerson

Ok, I saw your comment about testing in an iPad. 

I’ll do some other tests to rule out other possibilities such as firewall, proxy, etc. 

Regards, Emerson

Hi Emerson,

You may want to try adding the following flag in your build settings, in the appropriate table/key:

[lua]

iphone =

    {

        plist =

        {

            CoronaUseIOS6LandscapeOnlyWorkaround = true,

        },

    }

[/lua]

We also searched on Google and this issue (the “libmobilegestalt” error you’re seeing) doesn’t appear to be isolated to Corona. There are various reports of this error showing up in the console logs of iOS6 with GameCenter.

Sincerely,

Brent

Hi there, 

it made no difference at all. Here is the complete build.settings file

settings = {

        – Supported values for orientation:

        – portrait, portraitUpsideDown, landscapeLeft, landscapeRight

    orientation =

        {

                default = “landscapeRight”,

                --content = “landscapeRight”,

                supported =

                {

                        “landscapeLeft”, “landscapeRight”,

                },

        },

    iphone = {

        components = {},

                plist = {

                        CoronaUseIOS6LandscapeOnlyWorkaround = true,

                        UIStatusBarHidden = false,

            UIPrerenderedIcon = true, – set to false for “shine” overlay                        

                        CFBundleIconFile = “Icon.png”,

                        CFBundleIconFiles = {

                         “Icon.png”, --57x57  (iPhone and iPod touch application icon)

                         “Icon@2x.png”, --114x114  (RETINA iPhone and iPod touch application icon)

                         “Icon-iPad.png”, --72x72 (iPad 1 application icon)

                         “Icon-72.png”, --72X72 (RETINA iPad 2 OLD name)

                         “Icon-iPad@2x.png”, --144x144 (RETINA iPad 3)

                         “Icon-Small.png”, --29x29 (iPhone and iPod touch Spotlight search results and Settings icon)

                         “Icon-Small@2x.png”, --58x58 (RETINA iPhone and iPod touch Spotlight search results and Settings icon)

                         “Icon-Small-50.png”, --50x50 (iPad 1 Spotlight search results and Settings icon)

                         “Icon-Small-50@2x.png”, --100x100 (RETINA iPads Spotlight search results and Settings icon)

                       }

        }

    },

}

Well, I need to publish this game. Lets hope that this issue is somehow related to my environment, only.

I really would like to see some feature that would catch any error raised by a Corona app, even when it does not have to do with direct API call (maybe to implement a function that would be called automatically by Corona runtime). 

Regards, 

Hi guys, 

just to let you know that my app, The Legend of Zhizz,  has been approved, and now is available at App Store. 

https://itunes.apple.com/us/app/the-legend-of-zhizz/id661108464?l=pt&ls=1&mt=8

Regards, Emerson

Good to hear Emerson! Best of luck with everything.

Take care,

Brent