now having my 1st game finished, i experience major problems with the stability of the iphone client. the game works just fine on a mac, but as soon as it is running native on the iphone (or ipod touch in my case) it dissappears without any message.
in xcode there are error logs shown with info like:
this happens after only a few minutes, which is absolutely inacceptable so i cant publish the game in the moment.
anyone had experienced such problems and found a solution or at least reason?
it seems to happen just at any time after a few minutes, even if the game just stands in the main menu, which is nothing more than a background graphic and a few GUI.Button’s
The most effective way to find out what happened is to run the app via XCode connected to your device and when it crashes, type “bt” into the debugger console followed by a hit on the return key. If it not works the first time, type bt again and wait and see what the last call stack was and where it crashed. Should give you hopefully more information about the crash.
90% of the crashes I have experienced are due to bad memory management or memory leaks. For 1.0.0 there is a memory leak when switching scenes - so if you do that often, then you will crash eventually.
The other one can be checked using Instruments through Xcode. If it reports that you use more than approx 25 MB, then you are in danger territory of being closed by the iPhone operating system. Classics in that end is to have dolby encoded stereo sound files or large textures that dont use compression.
thanx for the tips, i tried to find out what is going on through backtraces, but there were several different occasions, but most happened while malloc, though the application only using about 5 or 6 megs of ram.
i do switch scenes a lot, infact currently every 20-30 seconds, due to the nature of the game. i will try to decrease it, but i think it’s time for the promised not so quick quickfix, i can’t publish a game that is crashing for sure.