Thread 1 : EXC_BAD_ACCESS (Code = 1, address = 0x30000008)

I don’t think we've got enough here to diagnose any particular problem (and it’s hard to follow your description). Nonetheless, I would recommend:

  1. I would suggest running your code through the static analyzer (shift+command+B or “Analyze” on the Xcode “Product” menu) and making sure that doesn't provide any warnings. That will (amongst other things) identify many routine memory issues that can easily plague non-ARC code. There's no point in going further until you get a clean bill of health here.

  2. I would suggest turning on the Exception Breakpoint and see if that identifies a particular line of code that is the source of the issue. Sometimes that can identify the line of code without having to reverse engineer where the error occurred by looking at the stack trace.

  3. Given that you're doing non-ARC code, you might also want to temporarily turn on zombies. You can see this setting the the Scheme Configuration settings.

  4. Beyond that, I’d refer you to Ray Wenderlich article My App Crashed, Now What?.

If you continue to have errors, share the stack trace with us.


You might have dismissed a ViewController while an object is still accessing it. That was my issue and reading Rob's answer helped.


This type of problem usually happens due to memory release/allocation

Go to

Product -> Clean

will fix this problem in most cases

Tags:

Ios

Xcode