Google Maps API -> OpenGLES crash

狂风中的少年 提交于 2019-12-23 19:25:28

问题


Log is pasted from Crashlytics. Crash happens very often, to many users and as far as I can see it is independent from the device/iOS version. I can't find any fault in my code, it seems like pure library problem. Is it Google Maps API bug? What can I do to fix it or should I fill some bug report on Google API page..?

Crashlog:

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000001


libGPUSupportMercury.dylib  
gpus_ReturnNotPermittedKillClient + 9

libGPUSupportMercury.dylib  
gldCreateContext

GLEngine    
gliCreateContextWithShared

OpenGLES    
-[EAGLContext initWithAPI:properties:] + 524

OpenGLES    
-[EAGLContext initWithAPI:sharedWithCompute:] + 142

!MYAPP! 
-[GMSIOSGLContext initWithAPI:]

!MYAPP! 
gmscore::renderer::GMSIOSGLContextPool::GMSIOSGLContextPool()

!MYAPP! 
___ZN7gmscore8renderer13GLContextPool16GetGLContextPoolEv_block_invoke

libdispatch.dylib   
_dispatch_client_callout + 22

libdispatch.dylib   
dispatch_once_f + 46

!MYAPP! 
gmscore::renderer::GLContextPool::GetGLContextPool()

!MYAPP! 
gmscore::renderer::GLScopedContextFromPool::GLScopedContextFromPool()

!MYAPP! 
-[GMSVectorMapSharedResourceCache init]

!MYAPP!     
__43-[GMSAsyncInitServices sharedInitWithSync:]_block_invoke

!MYAPP!     
-[GMSAsyncInitServices sharedInitWithSync:]

!MYAPP!     
-[GMSAsyncInitServices initSync]

!MYAPP!     
+[GMSServices sharedServicesSync]

!MYAPP!     
-[GMSGeocoder initWithConnection:]

!MYAPP!     
+[GMSGeocoder geocoder]

!MYAPP!     
AClass.m line 64
-[AClass doSomething:]

Where aClass doSomething is moreover like:

- (void)doSomething {
    [[GMSGeocoder geocoder] reverseGeocodeCoordinate:CLLocationCoordinate2DMake(_latitude, _longitude) 
                                   completionHandler:^(GMSReverseGeocodeResponse* response, NSError* error) {
    }
}

来源:https://stackoverflow.com/questions/25135185/google-maps-api-opengles-crash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!