1st Generation iPad crashes on launch

Hello Corona Forum,

We recently submitted a Corona app to testing company that tested it on multiple iOS devices and configurations.  The corona app worked for all of the devices, except for the “iPad (1st generation) running on 5.1” which crashes on launch. 

I’ve attached the device crash log and it appears to be a “EXC_BAD_ACCESS (SIGSEGV)”  and raises KERN_INVALID_ADDRESS at 0x00000000 exception.  How can I fix this error?  

Thanks

Are you getting any messages in your console log?

What kind of memory foot print does your app have?

Please try building the “Hello World” sample app and installing it.

Thanks

Rob

Oh and what version of of Corona SDK are you using?

How big are your graphics?

Hi Rob, thanks for taking interest in this query!

Answers to your questions are as follows:

  • I’m not sure what is meant by “console log”.  If you’re referring to the console window that appears when running the simulator, then I’m just getting the following messages. It is important to note that the crash only occurs on the device (simulator runs fine):

    Copyright © 2009-2013 C o r o n a L a b s I n c . 2013-07-15 09:42:31.999 Corona Simulator[42759:707] Version: 2.0.0 2013-07-15 09:42:32.000 Corona Simulator[42759:707] Build: 2013.1101 2013-07-15 09:42:32.009 Corona Simulator[42759:707] The file sandbox for this project is located at the following folder: (/Users/22582577/Library/Application Support/Corona Simulator/RtI-A56BC2E9BC2970477D402C53BD6449AB)

  • Memory footprint at 314 and texture at 43.  I think the units are KB but not entirely sure – I got them from the code snippet defined in http://coronalabs.com/blog/2011/08/15/corona-sdk-memory-leak-prevention-101/

  • Corona SDK Version “Build: 2013.1101”

  • The graphics that I feed into the corona engine are in “png” format and range from 177KB to 631KB.  I load the graphics up “lazily”, and the first one that it loads is a splash screen that is 177 KB (768 x 1024 pixels).

  • It’s going to take me a couple days (maybe a week, maybe longer) to get the testing company to run the “Hello World” sample amp to see if it crashes (I don’t personally own a 1st gen iPad and it’s the only one available to me for testing)

Thanks

Hey Rob, I thought corona only supported ipad 2 and above (3gs and above for phones).

Are you saying current SDK builds support the ipad 1? Did not know that.

On the IOS side, what we support is dictated by what version’s of the OS that Apple supports when they produce the SDK that we are using.  Generally Apple supports the current major iOS version and one major version back.  So with iOS 6.x, they still support iOS 5.x devices.  We use whatever they give us, since we are now building for iOS 6.1 as our standard, 5.x devices should still work.  iOS 5.1 is the latest version that will run on iPad 1’s.  When iOS 7 is released, the iPad 1 will be not buildable since it cannot be updated to iOS 6.

But for now, you should be able to build iPad 1 apps as long as it’s running iOS 5.1.  That said, there have been several reports of problems with the iPad 1 and the engineers are looking into it.  Though I think it may be things like running out of memory.

Are you getting any messages in your console log?

What kind of memory foot print does your app have?

Please try building the “Hello World” sample app and installing it.

Thanks

Rob

Oh and what version of of Corona SDK are you using?

How big are your graphics?

Hi Rob, thanks for taking interest in this query!

Answers to your questions are as follows:

  • I’m not sure what is meant by “console log”.  If you’re referring to the console window that appears when running the simulator, then I’m just getting the following messages. It is important to note that the crash only occurs on the device (simulator runs fine):

    Copyright © 2009-2013 C o r o n a L a b s I n c . 2013-07-15 09:42:31.999 Corona Simulator[42759:707] Version: 2.0.0 2013-07-15 09:42:32.000 Corona Simulator[42759:707] Build: 2013.1101 2013-07-15 09:42:32.009 Corona Simulator[42759:707] The file sandbox for this project is located at the following folder: (/Users/22582577/Library/Application Support/Corona Simulator/RtI-A56BC2E9BC2970477D402C53BD6449AB)

  • Memory footprint at 314 and texture at 43.  I think the units are KB but not entirely sure – I got them from the code snippet defined in http://coronalabs.com/blog/2011/08/15/corona-sdk-memory-leak-prevention-101/

  • Corona SDK Version “Build: 2013.1101”

  • The graphics that I feed into the corona engine are in “png” format and range from 177KB to 631KB.  I load the graphics up “lazily”, and the first one that it loads is a splash screen that is 177 KB (768 x 1024 pixels).

  • It’s going to take me a couple days (maybe a week, maybe longer) to get the testing company to run the “Hello World” sample amp to see if it crashes (I don’t personally own a 1st gen iPad and it’s the only one available to me for testing)

Thanks

Hey Rob, I thought corona only supported ipad 2 and above (3gs and above for phones).

Are you saying current SDK builds support the ipad 1? Did not know that.

On the IOS side, what we support is dictated by what version’s of the OS that Apple supports when they produce the SDK that we are using.  Generally Apple supports the current major iOS version and one major version back.  So with iOS 6.x, they still support iOS 5.x devices.  We use whatever they give us, since we are now building for iOS 6.1 as our standard, 5.x devices should still work.  iOS 5.1 is the latest version that will run on iPad 1’s.  When iOS 7 is released, the iPad 1 will be not buildable since it cannot be updated to iOS 6.

But for now, you should be able to build iPad 1 apps as long as it’s running iOS 5.1.  That said, there have been several reports of problems with the iPad 1 and the engineers are looking into it.  Though I think it may be things like running out of memory.