Hi,
I know this was asked a lot with different causes. I have read all that I could find on the subject, but I am still stuck - so any help would be greatly appreciated.
Here is the story:
1. Upgraded Unity from 3.5.7 to 4.2.
2. Successfully upgraded my project (all the `SetActive` stuff mostly)
3. The project runs in the Editor, no errors.
4. The project used to run with Unity 3.5.7 on the device with no problems.
5. I am now getting a crash with `EXC_BAD_ACCESS` when I load my third scene.
6. I have [enabled NSZombies][1] in Xcode to try and better understand whats going on, its still cryptic for me.
7. I have tried [attaching MonoDevelop][2] debugger, but I didn't see anything I can use (I am not usually using MonoDevelop so I could be missing some debug technique).
8. The exact same thing happened to me with another project, when upgraded to an older Unity 4 version (and this was the reason I avoided upgrading for so long).
9. UPDATE: Managed to get it to not crash in the simulator, still crashing on the device.
10. UPDATE: I have created an "export package" for my entire project, and reloaded it into a new blank project. At first, it seemed to be working, but then I realized it still crashes, only at a different place now...
Finally, here are two screenshots: One, without NSZombies (generating `EXC_BAD_ACCESS`) and one with NSZombies (generating `EXC_BREAKPOINT` - needless to say, I did not place any breakpoint...)
**Without NSZombies:**
![alt text][3]
**With NSZombies:**
![alt text][4]
[1]: http://www.touch-code-magazine.com/how-to-debug-exc_bad_access/
[2]: http://docs.unity3d.com/Documentation/Manual/Debugger.html
[3]: /storage/temp/14880-crash.png
[4]: /storage/temp/14881-crash2.png
↧