EXC_BAD_ACCESS - Broad Question

Hey everyone, this is going to be a rather broad question i’m just trying to get a better handle on.

Basically … what does that typically me when i get EXC_BAD_ACCESS? Xcode doesn’t really give me any REAL answers to anything it just pops up a bunch of hex tables (or whatever they are called) and shows me the thread list. Thats great, but i have no idea what could possibly be causing this.

I’m pretty sure its NOT memory related because it does it on everything past a point. I’m able to get the app to run to a point then it always bombs out w/this message on pretty much every level after that.

Note this is only on older devices so i’m tinkering around with weak linking to see if perhaps something is causing it to bomb out. I do have a multitude of plugins i’m using that DO get initiated but i’ve tried taking them out one by one and that doesn’t seem to help. For instance i have prime31’s gamecenter plugin which i know gamecenter doesn’t work on the 3G so i’ve taken it out and all the references to it at that point and it still bombs.

Anyways, i know that this is absolutely a very very general question i’m just wondering if there’s anyway in xcode to get a better handle on where its dying beyond something thats super cryptic.

The help is greatly appreciated!
Cheers
Bryan

remote debug?

http://unity3d.com/support/documentation/Manual/Debugger.html

EXC_BAD_ACCESS is normally the xcode / gdb answer on something that would throw a NullReferenceException inside of Unity.
If you did a development build from unity, slow and safe and run it in debug mode - debug build from xcode you will get a callstack that tells you which function is firing it. Just expand the call stack at the top left of the debugger window

@Ostwind - don’t think so… i’m not using the remote at all.

@Dremora - interesting. Honestly i’ve never used the development build option in unity. Gonna give that a try now see what i get.

@Dremora So the question i have is is this something i can do on device? Or is this only a unity editor deal? because as noted i don’t get any errors in unity and the build runs fine on anything above a 3G… what i really need to be able to do is test on the 3G level and see where is breaking there.

thanks for the help everyone… i’ve figured out how to talk to my device! :slight_smile: haha… thanks again!