gpus_ReturnNotPermittedKillClient崩溃了很多

时间:2015-03-27 03:36:05

标签: ios mkmapview

我在iOS 8上收到了很多关于此堆栈跟踪的崩溃报告:

Thread : Crashed: com.apple.mapdisplay.dispatch.tiledecodequeue
0  libGPUSupportMercury.dylib     0x2ce478fe gpus_ReturnNotPermittedKillClient + 9
1  libGPUSupportMercury.dylib     0x2ce483cb gpusSubmitDataBuffers + 110
2  libGPUSupportMercury.dylib     0x2ce48249 gldCreateContext + 208
3  GLEngine                       0x28a4e93b gliCreateContextWithShared + 602
4  OpenGLES                       0x28b2aab3 -[EAGLContext initWithAPI:properties:] + 406
5  OpenGLES                       0x28b2a8ff -[EAGLContext initWithAPI:sharegroup:] + 114
6  VectorKit                      0x30fb3e65 ggl::OESContext::OESContext(ggl::GLDevice*, std::__1::shared_ptr<ggl::OESSharegroup>) + 492
7  VectorKit                      0x30fad45d ggl::GLDevice::vendLoader() + 204
8  VectorKit                      0x30f885c5 -[VKRoadTile buildGglMeshesWithDevice:] + 2032
9  VectorKit                      0x30f870c9 -[VKRoadTile initWithKey:modelTile:styleManager:sharedResources:contentScale:device:] + 84
10 VectorKit                      0x30c3a893 -[VKRoadTileSource tileForData:downloadKey:sourceKey:] + 154
11 VectorKit                      0x30c34bc5 __49-[VKTileSource decodeData:downloadKey:sourceKey:]_block_invoke + 84
12 libdispatch.dylib              0x33e917bb _dispatch_call_block_and_release + 10
13 libdispatch.dylib              0x33e98577 _dispatch_async_redirect_invoke + 550
14 libdispatch.dylib              0x33e9adab _dispatch_root_queue_drain + 866
15 libdispatch.dylib              0x33e9a9a9 _dispatch_worker_thread + 72
16 libsystem_pthread.dylib        0x33ff4e93 _pthread_body + 138
17 libsystem_pthread.dylib        0x33ff4e07 _pthread_start + 118

大部分都发生在iOS 8.2.0上,而应用程序在后台运行。

我确定在后台工作时,除了setCenterCoordinatesetRegion外,mapview不会执行任何操作。

根据Apple Q&A我知道我不应该在后台重绘MKMapView。但是我尝试在后台编程改变mapview的centerCoordinate和region,但它并没有崩溃。

这是iOS 8.2.0的错误吗?有没有办法解决或避免这种情况?谢谢!

1 个答案:

答案 0 :(得分:5)

输入背景后,您需要立即停止渲染到任何OpenGL ES曲面。

正如Apple在链接文章中所建议的,使用AppDelegate方法结合NSNotificationCenter ...

请参阅this answer以供参考......