2.2.0也有同样的问题。
iPhonex锁屏后4秒就会卡死。
锁屏后详细日志如下:
2019-10-23 17:57:12.131046+0800 [903:285862] failed to call context
2019-10-23 17:57:13.135262+0800 [903:285862] failed to call context
2019-10-23 17:57:14.272970+0800 [903:285862] failed to call context
2019-10-23 17:57:15.273989+0800 [903:285862] failed to call context
2019-10-23 17:57:15.282005+0800 [903:285862] Can’t end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
OpenGL error 0x0506 in -[CCEAGLView swapBuffers] 433
OpenGL error 0x0502 in -[CCEAGLView swapBuffers] 442
OpenGL error 0x0506 in -[CCEAGLView swapBuffers] 433
OpenGL error 0x0502 in -[CCEAGLView swapBuffers] 442
E/renderer (172): glClear(mask); GL error 0x506: GL_INVALID_FRAMEBUFFER_OPERATION:clear
E/renderer (422): glDrawElements(static_cast(_nextState->primitiveType), count, static_cast(nextIndexBuffer->getFormat()), (GLvoid *)(base * nextIndexBuffer->getBytesPerIndex())); GL error 0x506: GL_INVALID_FRAMEBUFFER_OPERATION:draw
E/renderer (422): glDrawElements(static_cast(_nextState->primitiveType), count, static_cast(nextIndexBuffer->getFormat()), (GLvoid *)(base * nextIndexBuffer->getBytesPerIndex())); GL error 0x506: GL_INVALID_FRAMEBUFFER_OPERATION:draw
E/renderer (422): glDrawElements(static_cast(_nextState->primitiveType), count, static_cast(nextIndexBuffer->getFormat()), (GLvoid *)(base * nextIndexBuffer->getBytesPerIndex())); GL error 0x506: GL_INVALID_FRAMEBUFFER_OPERATION:draw
E/renderer (422): glDrawElements(static_cast(_nextState->primitiveType), count, static_cast(nextIndexBuffer->getFormat()), (GLvoid *)(base * nextIndexBuffer->getBytesPerIndex())); GL error 0x506: GL_INVALID_FRAMEBUFFER_OPERATION:draw
@jare