App works in Corona simulator but goes to a black screen on device & simulator

Since your doing iOS have you tethered your device to your laptop, and used XCode’s Organizer to look at the console.log for your device? [import]uid: 199310 topic_id: 5682 reply_id: 143051[/import]

Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Builtin profile: container (sandbox)
Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Container: /private/var/mobile/Applications/1F2E6FFF-B634-4BB5-AD47-7B1BA61A004E (sandbox)
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.927 AcquireLock – the mutex was already locked
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.930 AcquireLock – the mutex was already locked
Feb 17 13:55:09 Joannes-iPad-4G backboardd[26] : CoreAnimation: updates deferred for too long
Feb 17 13:55:10 Joannes-iPad-4G backboardd[26] : CoreAnimation: timed out fence 298ab
[import]uid: 52900 topic_id: 5682 reply_id: 143081[/import]

Is that all in the log? I would have expected to see a lot more in particular messages from your app. [import]uid: 199310 topic_id: 5682 reply_id: 143134[/import]

Hi all
I am back to this issue.
I have checked all of my file names.
Running good on simulator.
Black screen comes straight after loadingmenu.lua

Getting mad now. And no Carlos or Peach. Who willl help? [import]uid: 52900 topic_id: 5682 reply_id: 142929[/import]

Errors in build.settings will cause the app to not run on device as well. Also you may be hitting some other error. Do you have the “adb” tools installed? Can you run an “adb logcat” with your device tethered and watch for errors and see why it’s crashing?
[import]uid: 199310 topic_id: 5682 reply_id: 142957[/import]

I don’t even know what adb tools are. I am building for ios not android.
I have checked and re-checked all of my file names. [import]uid: 52900 topic_id: 5682 reply_id: 143018[/import]

my build settings look fine too.

settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
}
},

android =
{
versionCode = “1”
},
androidPermissions =
{
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.RECORD_AUDIO”
},

iphone =
{
plist=
{
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}

settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
}
[import]uid: 52900 topic_id: 5682 reply_id: 143021[/import]

Since your doing iOS have you tethered your device to your laptop, and used XCode’s Organizer to look at the console.log for your device? [import]uid: 199310 topic_id: 5682 reply_id: 143051[/import]

Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Builtin profile: container (sandbox)
Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Container: /private/var/mobile/Applications/1F2E6FFF-B634-4BB5-AD47-7B1BA61A004E (sandbox)
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.927 AcquireLock – the mutex was already locked
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.930 AcquireLock – the mutex was already locked
Feb 17 13:55:09 Joannes-iPad-4G backboardd[26] : CoreAnimation: updates deferred for too long
Feb 17 13:55:10 Joannes-iPad-4G backboardd[26] : CoreAnimation: timed out fence 298ab
[import]uid: 52900 topic_id: 5682 reply_id: 143081[/import]

Is that all in the log? I would have expected to see a lot more in particular messages from your app. [import]uid: 199310 topic_id: 5682 reply_id: 143134[/import]

Hi all
I am back to this issue.
I have checked all of my file names.
Running good on simulator.
Black screen comes straight after loadingmenu.lua

Getting mad now. And no Carlos or Peach. Who willl help? [import]uid: 52900 topic_id: 5682 reply_id: 142929[/import]

Errors in build.settings will cause the app to not run on device as well. Also you may be hitting some other error. Do you have the “adb” tools installed? Can you run an “adb logcat” with your device tethered and watch for errors and see why it’s crashing?
[import]uid: 199310 topic_id: 5682 reply_id: 142957[/import]

I don’t even know what adb tools are. I am building for ios not android.
I have checked and re-checked all of my file names. [import]uid: 52900 topic_id: 5682 reply_id: 143018[/import]

my build settings look fine too.

settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”
}
},

android =
{
versionCode = “1”
},
androidPermissions =
{
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.RECORD_AUDIO”
},

iphone =
{
plist=
{
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}

settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
}
[import]uid: 52900 topic_id: 5682 reply_id: 143021[/import]

Since your doing iOS have you tethered your device to your laptop, and used XCode’s Organizer to look at the console.log for your device? [import]uid: 199310 topic_id: 5682 reply_id: 143051[/import]

Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Builtin profile: container (sandbox)
Feb 17 13:54:09 Joannes-iPad-4G kernel[0] : launchd[4446] Container: /private/var/mobile/Applications/1F2E6FFF-B634-4BB5-AD47-7B1BA61A004E (sandbox)
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.927 AcquireLock – the mutex was already locked
Feb 17 13:55:07 Joannes-iPad-4G mediaserverd[39] : 13:55:07.930 AcquireLock – the mutex was already locked
Feb 17 13:55:09 Joannes-iPad-4G backboardd[26] : CoreAnimation: updates deferred for too long
Feb 17 13:55:10 Joannes-iPad-4G backboardd[26] : CoreAnimation: timed out fence 298ab
[import]uid: 52900 topic_id: 5682 reply_id: 143081[/import]

Is that all in the log? I would have expected to see a lot more in particular messages from your app. [import]uid: 199310 topic_id: 5682 reply_id: 143134[/import]

I’m seeing something like this too, hoping Rob can help.

In my App, I launch a text message, which works on most iOS devices. But some see this issue, and the text never gets sent. In fact, it seems to kill the native iOS messaging app.

If I go directly into text messages through iOS, it’s still operating just fine. But when I get there through my Corona app, we get this:

Feb 14 16:12:59 iPhone backboardd[28] \<Warning\>: CoreAnimation: updates deferred for too long Feb 14 16:12:59 iPhone backboardd[28] \<Warning\>: CoreAnimation: timed out fence 3c203 Feb 14 16:12:59 iPhone MessagesViewService[737] \<Warning\>: CoreAnimation: failed to receive fence reply: 10004003 Feb 14 16:12:59 iPhone LLP[918] \<Warning\>: CoreAnimation: failed to receive fence reply: 10004003 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] \*\*\*\*\*\* Failed to complete all history queries in a blocking request: ( "0F8D21F5-2976-4A46-A29E-9E1A03C8F3D7" ) Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] \*\*\*\*\*\* Failed to complete all history queries in a blocking request: ( "0F8D21F5-2976-4A46-A29E-9E1A03C8F3D7" ) Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 1 IMFoundation 0x3295a09f IMLogBacktraceToDepth + 54 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 2 IMCore 0x32880aed \_NSStringFromIMMessageError + 21076 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 3 IMCore 0x32877357 IMPersonStatusComparator + 231446 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 4 IMCore 0x32876883 IMPersonStatusComparator + 228674 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 5 ChatKit 0x314fc211 \<redacted\> + 200 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 6 ChatKit 0x314cc5db \<redacted\> + 70 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 7 ChatKit 0x314b7445 \<redacted\> + 812 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 8 ChatKit 0x3153eabf \<redacted\> + 66 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 9 Foundation 0x2e2ec33f \_\_NSFireDelayedPerform + 414 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 10 CoreFoundation 0x2d8dce7f \<redacted\> + 14 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 11 CoreFoundation 0x2d8dca9b \<redacted\> + 794 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 12 CoreFoundation 0x2d8dae23 \<redacted\> + 1218 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 13 CoreFoundation 0x2d845471 CFRunLoopRunSpecific + 524 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 14 CoreFoundation 0x2d845253 CFRunLoopRunInMode + 106 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 15 GraphicsServices 0x3257f2eb GSEventRunModal + 138 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 16 UIKit 0x300fa845 UIApplicationMain + 1136 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 17 MessagesViewService 0x00067e13 MessagesViewService + 3603 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 18 libdyld.dylib 0x38167ab7 \<redacted\> + 2 

We’re just using the following with some pretty basic options:

native.showPopup("sms", options)&nbsp;

It’s very troubling that the iOS messaging app still operates, but we can’t get to it through Corona. We really can’t being doing much wrong since it’s just one line. And it does work on most devices. But today I watched it work on my iPhone 5s and yet got the errors above for someone else’s iPhone 5s.

I’m seeing something like this too, hoping Rob can help.

In my App, I launch a text message, which works on most iOS devices. But some see this issue, and the text never gets sent. In fact, it seems to kill the native iOS messaging app.

If I go directly into text messages through iOS, it’s still operating just fine. But when I get there through my Corona app, we get this:

Feb 14 16:12:59 iPhone backboardd[28] \<Warning\>: CoreAnimation: updates deferred for too long Feb 14 16:12:59 iPhone backboardd[28] \<Warning\>: CoreAnimation: timed out fence 3c203 Feb 14 16:12:59 iPhone MessagesViewService[737] \<Warning\>: CoreAnimation: failed to receive fence reply: 10004003 Feb 14 16:12:59 iPhone LLP[918] \<Warning\>: CoreAnimation: failed to receive fence reply: 10004003 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] \*\*\*\*\*\* Failed to complete all history queries in a blocking request: ( "0F8D21F5-2976-4A46-A29E-9E1A03C8F3D7" ) Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] \*\*\*\*\*\* Failed to complete all history queries in a blocking request: ( "0F8D21F5-2976-4A46-A29E-9E1A03C8F3D7" ) Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 1 IMFoundation 0x3295a09f IMLogBacktraceToDepth + 54 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 2 IMCore 0x32880aed \_NSStringFromIMMessageError + 21076 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 3 IMCore 0x32877357 IMPersonStatusComparator + 231446 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 4 IMCore 0x32876883 IMPersonStatusComparator + 228674 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 5 ChatKit 0x314fc211 \<redacted\> + 200 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 6 ChatKit 0x314cc5db \<redacted\> + 70 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 7 ChatKit 0x314b7445 \<redacted\> + 812 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 8 ChatKit 0x3153eabf \<redacted\> + 66 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 9 Foundation 0x2e2ec33f \_\_NSFireDelayedPerform + 414 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 10 CoreFoundation 0x2d8dce7f \<redacted\> + 14 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 11 CoreFoundation 0x2d8dca9b \<redacted\> + 794 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 12 CoreFoundation 0x2d8dae23 \<redacted\> + 1218 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 13 CoreFoundation 0x2d845471 CFRunLoopRunSpecific + 524 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 14 CoreFoundation 0x2d845253 CFRunLoopRunInMode + 106 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 15 GraphicsServices 0x3257f2eb GSEventRunModal + 138 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 16 UIKit 0x300fa845 UIApplicationMain + 1136 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 17 MessagesViewService 0x00067e13 MessagesViewService + 3603 Feb 14 16:13:09 iPhone MessagesViewService[737] \<Warning\>: [Warning] 18 libdyld.dylib 0x38167ab7 \<redacted\> + 2 

We’re just using the following with some pretty basic options:

native.showPopup("sms", options)&nbsp;

It’s very troubling that the iOS messaging app still operates, but we can’t get to it through Corona. We really can’t being doing much wrong since it’s just one line. And it does work on most devices. But today I watched it work on my iPhone 5s and yet got the errors above for someone else’s iPhone 5s.

[Edit] Simplified and updated code snippets below even farther, still same issue. Also test on iPhone 5s - same problem.

I’ve got this exact same issue. Stripped my app back trying to nail it down so that it does nothing now but display a background after startup. Running Corona 2013.2091on iPad 4 iOS 7.0.4

Runs perfectly on simulator. Installed on device I get my Default@2x~ipad.png splash screen shows correctly, then the screen goes black and I have the following console log with the CoreAnimation error the OP had. If I put the app in the background and go back to it m background screen shows up correctly as I would have expected at startup. So something is preventing it from rendering on startup. Any clues? Am I using something in my code that is deprecated?

This is the entire log tethered to the device:

Mar 16 12:49:54 Jeffreys-iPad kernel[0] \<Debug\>: launchd[1215] Container: /private/var/mobile/Applications/A0C38D99-03A0-4758-8E7B-E0E61C3CF453 (sandbox) Mar 16 12:49:55 Jeffreys-iPad Hominids[1215] \<Warning\>: loading Mar 16 12:49:55 Jeffreys-iPad backboardd[28] \<Warning\>: CoreAnimation: updates deferred for too long Mar 16 12:49:55 Jeffreys-iPad Hominids[1215] \<Warning\>: done &nbsp;

This is my settings file:

settings = { orientation = { default = "portrait", supported = { "portrait" }, }, iphone = { plist = { MinimumOSVersion="7.0", UILaunchImageFile = "Default", UIRequiredDeviceCapabilities= {}, UIStatusBarHidden=true, CFBundleIconFiles = { "icon", "icon-small-40", "icon-60", "icon-72", "icon-76", "icon-small-50", "icon-small", }, CFBundleIdentifier = "com.domain.app", CFBundleDisplayName = "App Name", UIApplicationExitsOnSuspend = false, }, } }

This is my config.lua:

application = {&nbsp; &nbsp; content =&nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; width = 768, &nbsp; &nbsp; &nbsp; &nbsp; height = 1024, &nbsp; &nbsp; &nbsp; &nbsp; scale = "letterbox", &nbsp; &nbsp; &nbsp; &nbsp; fps = 30, &nbsp; &nbsp; &nbsp; &nbsp; antialias = true, &nbsp; &nbsp; &nbsp; &nbsp; imageSuffix =&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ["@2x"] = 2, &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; } } &nbsp;

And this is my entire main.lua:

print "loading" splashBG = display.newImageRect("background\_IPAD.png",768,1024) splashBG.anchorX = 0 splashBG.anchorY = 0 print "done"