I am having a problem with a cocos2d app for IPhone I am developing. The prolem comes out sometimes during a scene change. The app stucks and the console starts printing this statement:
Assertion failure in -[CCSprite setTexture:]
I would like you to suggest me the right way to debug it since the problem does not always happen and there is not a precise indication of where the bug might be.
Thank you in advance
... some hours after: The problem occurs after a memory warning. It its therefore due to the sprite cache which is flushed while an animation is exploiting a cached texture atlas and related sheet. What can I do to handle it?