I'm having an intermittent problem with my game where it crashes in the middle of a scene transition. Each scene has a single layer. The crash happens right around when the layer of the first scene is being dealloc'd and the second scene and layer inits have run.
The message in the debugger is:
Program received signal: “EXC_BAD_ACCESS”.
The crash appears to occur at Line 316 of ActionManager, inside tick:,
currentTarget = (tHashElement*) bin->elt;
This is called by Scheduler tick which in turn called by Director main loop.
Obviously ActionManager is trying to access an object that is already gone, but I'm unclear how to figure out what object and why. Probably something in the Layer that just got dealloc'd? I'm not using the Scheduler at all myself.
Any tips on how to track this down?
Thanks in advance!