ios 游戏退到后台重启闪退

闪退类型
SIGSEGV

SEGV_ACCERR

机型:iPhone 5s
系统:iOS 12.3.1

堆栈信息:
0 libGPUSupportMercury.dylib _gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver gldUpdateDispatch + 7184
2 libGPUSupportMercury.dylib gpusSubmitDataBuffers + 176
3 AGXGLDriver gldUpdateDispatch + 12604
4 GLEngine _gliPresentViewES_Exec + 184
5 OpenGLES -[EAGLContext presentRenderbuffer:] + 80
6 xxxx std::__1::__hash_table<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::__unordered_map_hasher<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, true>, std::__1::__unordered_map_equal<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > >::__rehash(unsigned long) + 9484
7 xxxx cocos2d::Application::getScheduler() const + 2632
8 QuartzCore CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 636
9 IOKit IODispatchCalloutFromCFMessage + 488
10 CoreFoundation ___CFMachPortPerform + 188
11 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 56
12 CoreFoundation ___CFRunLoopDoSource1 + 440
13 CoreFoundation ___CFRunLoopRun + 2096
14 CoreFoundation CFRunLoopRunSpecific + 436
15 GraphicsServices GSEventRunModal + 104
16 UIKitCore UIApplicationMain + 212
17 xxxx 0x000000010115c000 + 3297036
18 libdyld.dylib _start + 4

退到后台时的log:
2019-07-09 20:41:58.971088+0800 xxxx[5078:267481] [Snapshotting] Snapshotting a view (0x15e90aa00, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.

warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.

断点位置:(崩溃在这里)
if(![_context presentRenderbuffer:GL_RENDERBUFFER])

     NSLog(@"cocos2d: Failed to swap renderbuffer in %s\n", __FUNCTION__);
1赞