Amazon/Nook Rejection: Crash Bug w/ Portrait only App

I’ve started receiving rejection notices from Amazon & Nook because of a crash bug in my Chip Breaker app. They are both running into the same issue: Chip Breaker crashes on load SOME of the time (which means that I’ve been able to sneak by the approval process some of the time). I have an ICS tablet on which I was finally able to reproduce the error 100% of the time. The problem does not occur on iOS.

Here’s the issue:
If the app has not been started or has been suspended for any reason, and the device is in portrait or portrait upside-down orientation when the app is started/resumed, the app will start/resume with no issue.

If the app has not been started or has been suspended for any reason, and the device is in landscape orientation when the app is started/resumed, the app will crash and will become corrupted, unable to work until it is force stopped. Plus, if you are in the app and hit the “home” button while the device is in landscape orientation, the app will pop-up that it has been stopped after exiting and will become corrupted as well.

Keep in mind that at all times, my app displays in portrait/portrait upside down mode, it never does landscape.

Has this problem hit anyone else? Any thoughts on what the fix might be or if it is a Corona issue?

Here is my build.settings:

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

android =
{
versionCode = “3”
},

androidPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”
},

iphone =
{
plist =
{
UILaunchImageFile = “Default”,
UIInterfaceOrientation = “UIInterfaceOrientationPortrait”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationPortrait”, “UIInterfaceOrientationPortraitUpsideDown”,
},
UIPrerenderedIcon = true,
MinimumOSVersion = “4.3”,
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true,
CFBundleDisplayName = “Chip Breaker”,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-Small-50.png”,
“Icon-Small.png”,
“Icon-Small@2x.png” },
UIAppFonts = { “ComicSansMS.ttf”, “Verdana-Bold.ttf” },
},
components = {}
},
}
[/code] [import]uid: 36054 topic_id: 24667 reply_id: 324667[/import]

Update: Ugh. False alarm. Apparently I can’t figure this one out.

Removing the system and orientation events seems to stop the issue from happening on start/resume. But if you exit the app while in landscape it always corrupts.

Hope someone can provide some insight. [import]uid: 36054 topic_id: 24667 reply_id: 99936[/import]