Skip to main content
Inspiring
October 18, 2012
Question

IOS App Crash

  • October 18, 2012
  • 15 replies
  • 4396 views

I am hoping I can get some help on my app crashing.  I was able to connect to XCODE and get the crash report

Exception Type: EXC_BAD_ACCESS (SIGSEGV)

Exception Codes: KERN_INVALID_ADDRESS at 0x...

From what I can tell, this is about an object pointing to an invalid memory space.  It seems to happen at random and the Adobe debugger does not show anything.  I am not sure if this is a native extension I am using or how to go about troubleshooting it.  Hoping someone can provide some insight into some things I can try to resolve it.  I can post the entire crash report if that will help.

Thanks

This topic has been closed for replies.

15 replies

mola2alexAuthor
Inspiring
October 19, 2012

So after further testing, the above is what I get when it crashes but this doesn't happen too often.  My app freezes which is something that seems to be happening more often (and maybe causing the crash?).  In the instance of the freeze, I get the exception code:

Exception Type:  00000020

Exception Codes: 0x000000008badf00d

Highlighted Thread:  0

Now I realize this looks like 'ate bad food' and that is what it means.  The error code is associated to Apple's watch dog for non responsive apps so the watch dog ate some bad food (my app) and decided my app was non responsive.  This seems to happen at random points with no clear indication of what code in my app could be triggering a non responsive UI.  The same code works fine in Android and windows so either iOS is stricter on apps or I do have some error.  Does anyone have any ideas on direction?  I can try commenting out sections of code but it takes over 5 minutes to compile my app and then random amount of time to trigger the error so this approach is not really ideal.  I can post the crash files if that will help but was hoping someone may have insight into troubleshooting ios logs.

Inspiring
October 20, 2012

Which native extension are you using?

Which version of AIR?

Flash Builder? Flash CS?

Does the app exit on suspend?

mola2alexAuthor
Inspiring
October 21, 2012

Using Flash CS6 with latest beta AIR 3.5

Device is iPhone 4 running IOS6

The extension I am using is the native alert found here

Now I think I have made a bit of progress.  I was using Mouse Events on the UI which seem to be ok for Android but not IOS.  What seems to be happening is that sometimes when the native alert is displayed, all future mouse events do not fire so the app appears to freeze.  I replaced all mouse events with equivalent Touch events and it seems to be working much better except for my buttons.  Once a native alert happens, the buttons do not show the DOWN state although the touch event does work.  Also, the color picker and text box cannot be selected.  Seems very bizarre.