my cocos2d-x game crashes when entering the background. here is the code from AppDelegate:
and error message:
libGPUSupportMercury.dylib`gpus_ReturnNotPermittedKillClient: 0x3797e094: trap 0x3797e096: nop
Note that it always crashes for the iPhone, but 99% crashes on Android (well, when the game does not load large images, etc.)
EDIT: I tried CCDirector :: sharedDirector () -> stopAnimation () and it works great for iOS. But it still crashes for Android (not immediately.) When you return to the application, the screen turns black (but I think that it still works because the background music is still playing, and then after about 5 seconds it crashes)
EDIT 2: Error message in Eclipse:
libEGL call to OpenGL ES API with no current context (logged once per thread) (red warning text) libc Fatal signal 11 (SIGSEGV) at 0x5f012000 (code=2) (black text)
source share