I think I know the answer but I want to confirm it and I think it would be a valuable answer to the forums.
I have a really cool game built and I am really trying to optimize it and test it before I send it off to the iTunes store.
After doing what I think is optimizing the program I ran into a snag. I have one level that is now triggering a error code status 101 in xcode when I am debugging it. It is also happening randomly in this one scene.
Any comments on how to handle a error status code 101? I did some research on the apple iphone forum and other sites but the general consensus is it is still up in the air on the cause of the error. Again, it is not GDB it is the application itself.
Snap shoot attached of the game to give you ideas. How much memory is the default unity application declaring on the iphone?
101 is an error that happens when the memory in the iPhone gets full, and you try to add more to it. The OS kills your program if you run it on the device to keep from crashing. Do a google search on it. All you really need to do it get rid of as much stuff as you can from the RAM. I would love to hear from the Unity guys about this though. I have the same problem (stayed up late tonight trying to fix it). I added one transparent texture GUI call and it made it crash, so I got rid of that, then I added a bunch of weapons and scenery, and now it loads up for an instant, goes through the first maybe 2 update loops and then quits. What’s that bug reporting app you were talking about?
It eems like the GUI images are what really kill you. Adding ten 10-20 kb images made my program crash from memory overuse. There must be a memory leak somewhere in the Unity code.
Yep I realize that gizzerd. The console in the organizer will also have a message indicating out of memory. Resetting the device can reset the other processes which might have various amounts of memory allocated depending on usage for that session.
Generally if you are using non-interactive GUI like HUDs. You are going to get better performance using the 1.x style GUI on the iPhone using GUITexture and GUIText.