I'm uncertain if this is related to Cocos2d or something else I am doing wrong, but I'm not even sure how to diagnose the problem.
My game works perfectly in the simulator. I've done a lot of testing for memory leaks and there don't seem to be any (as far as I can tell as an amateur with Instruments).
My game is made up of a series of minigames each with their own scene. When I run the game on my device (3.0) the game crashes after a few scenes (anywhere from 2 to 5). It's not any particular scene, but it always crashes after the next scene init is called but before the replaceScene transition runs. The error it crashes with is this:
--
Program received signal: “0”.
warning: check_safe_call: could not restore current frame
--
Nothing else. I tried enabled NSZombieEnabled, but still received the same error.
Again, it never crashes in the simulator and will run through dozens of scenes with no complaint.
I know it's hard to diagnose this sort of thing without code, but does anyone have any tips for what might be causing this error? My google searches are turning up nothing useful.
Thanks in advance!