Crash on Start-Up

Hello-
I recently submitted my app to the app store, where it was accepted. Now, that it is out there, I have been getting reports of the app crashing on the load screen. So, I downloaded it from the app store and sure enough… It is not only crashing during the start-up screen, but crashing the entire iPad as well! The odd thing is that after the iPad restarts, the app launches with no errors. I have confirmed this on two separate devices.

I am not getting any Corona or Xcode Simulator errors and, at this point, have no idea where to start or what to do. Any advice or help would be greatly appreciated!

THX [import]uid: 126736 topic_id: 26783 reply_id: 326783[/import]

An update… Was able to get some errors through the Xcode console:

May 25 13:39:08 unknown kernel[0] <debug>: launchd[3337] Builtin profile: syncdefaultsd (sandbox)<br>May 25 13:39:08 unknown syncdefaultsd[3337] <warning>: Asked to perform job com.apple.syncdefaultsd.relaunch<br>&gt; <br>May 25 13:39:11 unknown ToddlerTunesHD[3335] <warning>: Received memory warning.<br>&gt; &gt; <br>May 25 13:39:13 unknown SpringBoard[52] <warning>: Received memory warning.<br>May 25 13:39:13 unknown syncdefaultsd[3337] <warning>: received memory warning<br>&gt; <br>May 25 13:40:27 unknown com.apple.launchd[1] <notice>: (UIKitApplication:com.malphursinteractive.toddlertunes[0xa860]) Exited: Killed: 9<br>May 25 13:40:27 unknown UserEventAgent[12] <notice>: jetsam: kernel termination snapshot being created<br>May 25 13:40:28 unknown SpringBoard[52] <warning>: Application 'ToddlerTunesHD' exited abnormally with signal 9: Killed: 9<br>&gt; <br>May 25 13:40:29 unknown ReportCrash[3341] <error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0<br>May 25 13:40:29 unknown ReportCrash[3341] <notice>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-05-25-134029.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0

Any suggestions about the low memory and the “exited abnormally with signal 9” errors? [import]uid: 126736 topic_id: 26783 reply_id: 108718[/import]

Which Corona build did you use? I noticed my app crashes immediately on start on iPhone 3GS, but works well on iPod Touch. Haven’t tested on other devices, but I found that this happens if using Corona build 819 or 821. If I use Corona build 799 then there is no problem.

In my case only the app crashes, it doesn’t crash entire device.

Few days back I’ve seen that *very rarely* iPod Touch crashes (freezes) when I launch my app. This behavior is very very difficult to reproduce. I think this was because of memory consumption, so I trimmed down my app’s memory consumption and haven’t seen such a device freeze again. But I am still keeping my eyes open for this kind of device crash.

Regards,
Kapil [import]uid: 135671 topic_id: 26783 reply_id: 108744[/import]

Yeah, I am using version 704… This seems to be the suggested version that works best with retina display sizing. Unless they have fixed retina display related bugs in later versions? [import]uid: 126736 topic_id: 26783 reply_id: 108759[/import]

Can anyone confirm that the retina display issue has been fixed with any updates LATER than 704b?

Also, are there any tips or techniques on tracking down low memory and signal 9 errors?

Thanks so much! [import]uid: 126736 topic_id: 26783 reply_id: 109434[/import]

Same Problem Here.

Most interested as I have the same problem, having compiled with 2012.820. My landscape only App was tested here on iPad1 and iPad3, both seem to work fine, and approved by iTunes.

Lots of customers are reporting the App loads, shows the splash screen, then stops.

I did see this happen on my iPad 1 with iOS 5.1, upgraded to iOS 5.1.1 and then it was fine. Yet, today a customer reported the same greif with his iPad 1 on iOS 5.1.1. I believe the grief is all on iPad 1 (?).

I need to know where to look for bug clues and a way to find whats causing this new problem. [import]uid: 6114 topic_id: 26783 reply_id: 109718[/import]

This sounds like the device is low on memory and crashing the app as a result. If anyone can get this to consistently crash with a simple test case please submit it here and we will look into it asap: http://developer.anscamobile.com/content/bug-submission [import]uid: 84637 topic_id: 26783 reply_id: 109720[/import]

I was wrong. Its not iOS 5.1, its not iPad 1. Its just recent Corona compiles (820 and 828). I have had a Corona built iPad App since January 2011 with no loading grief ever. Its only the my last release this Spring that trouble loading started.

I had another developer confirm that if lots of iPad Apps are running, starting my Corona built App show the splash screen and then fails to load the App. Rebooting the iPad seems to solve that though I notice the iPad reloads all the Apps that were running on shutdown (?).

Since day 1, I have had a system function handleLowMemory( event ) in place, I wish that worked in this case. I guess the full App never fully loads to even do that ??

So is this something I should “bug report”? [import]uid: 6114 topic_id: 26783 reply_id: 111008[/import]

This is pretty much exactly what is going on with my app. Seems to be a bug with the latest releases of Corona. [import]uid: 126736 topic_id: 26783 reply_id: 111200[/import]

I did just now post s Bug Report:
We’ve received your bug information and it has been entered into our tracking system. It has been logged as case #14869.
[import]uid: 6114 topic_id: 26783 reply_id: 111203[/import]

The Coronas (Danny) are working with me to try to find the cause and fix it. After looking at Danny’s suggestions, I made my splash and background screen much smaller file sizes and removed fake splash screen display on event.type == “applicationResume”.

I can’t get the revised App to fail on iPad 1 or iPad 3 now. So I just sent iTunes this revised version. We’ll see if there is still user grief with loading the App now.
[import]uid: 6114 topic_id: 26783 reply_id: 111425[/import]

Great feedback. Thanks! [import]uid: 126736 topic_id: 26783 reply_id: 111529[/import]

Interesting to know.

I get random crashes too :slight_smile: Ie launches on IPad2 just fine, but then on ipod 4g game loads but soon as it gets to main menu just goes to home screen.

Fun fun fun!

I’ve also noticed in the simulator, I I have a 1000 ms delay on scene changes (director) when going to main menu, which works fine.

On device Ipad2, it takes like 4 or 5 seconds to load the main menu.

#weirdsauce [import]uid: 61600 topic_id: 26783 reply_id: 111551[/import]