I worked on the game, and I tested it with the previous version of iOS, playing hundreds of times, and I did not see a single crash after I installed iOS7 and updated xcode. just tried my app and ... now sometimes it crashes. A failure does not occur at a certain moment or action, they are just completely random, sometimes it crashes instantly, sometimes after 2-3 games, I tried to do the same to check if this is something special, but it seems to not be or at least not so noticeable. I use sprites and batchnodes in the game scene.
It is in this line of code (about 522) in the CCTextureAtlas.m file:
glDrawElements(GL_TRIANGLES, (GLsizei) n*6, GL_UNSIGNED_SHORT, (GLvoid*) (start*6*sizeof(_indices[0])) );
since I didn’t make any changes to the code, I doubt very much that it could be something that I did, maybe this is due to changes in iOS7 that affect cocos2d? I'm not even an expert with opengl, so it's hard for me to understand what is happening ...
obviously in the game I have an animation going on ...
Additional Information:
- this does NOT happen after a memory warning (I don't have a memory warning at all).
source share