Crash Report-Game crashes randomly


#1

#0 0x05c5e985 in void glgConvertTo_32<GLGConverter_ABGR8_ARGB8, (GLGMemory)2>(GLGOperationRec const**, GLDPixelModeRec const**) ()
#1 0x05c5b100 in glgProcessPixelsWithProcessor ()
#2 0x0af2e780 in gldRestoreTextureData ()
#3 0x05c32af5 in gfxUploadPluginTextureLevel ()
#4 0x111f62b7 in gleSynchronizeTextureLevelOnCurrentDevicesForRead ()
#5 0x11152e26 in glGetTexImage_Exec ()
#6 0x111fa9f3 in gliPresentViewES ()
#7 0x00cd2884 in ~~
#8 0x000bb75c in~~[EAGLView swapBuffers]
#9 0x000b0542 in cocos2d::CCEGLView::swapBuffers()
#10 0x0003d1ca in cocos2d::CCDirector::drawScene()
#11 0x0003f2eb in cocos2d::CCDisplayLinkDirector::mainLoop()
#12 0x000b0065 in -[CCDirectorCaller doCaller:]
#13 0x00c0e2d2 in CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) ()
#14 0x00c0e75f in CA::Display::TimerDisplayLink::callback(CFRunLoopTimer*, void**)
#15 0x02d2c376 inCFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_
#16 0x02d2be06 in**CFRunLoopDoTimer
#17 0x02d13a82 in*_CFRunLoopRun ()
#18 0x02d12f44 in CFRunLoopRunSpecific ()
#19 0x02d12e1b in CFRunLoopRunInMode ()
#20 0x02bfa7e3 in GSEventRunModal ()
#21 0x02bfa668 in GSEventRun ()
#22 0x012dfffc in UIApplicationMain ()
#23 0x000045e6 in main
#24 0x00002bc5 in start ()

I used cocos2d-x 2.1.1.
I have had faced this face on both games…

How could I get way to fix this issue?