Gpus_ReturnNotPermittedKillClient error reset by MKMapView when application is highlighted

After doing some research on the Internet, I noticed what gpus_ReturnNotPermittedKillClienthappens when an OpenGL action fires during a background connection of an application. I am currently working on a project that includes map presentation and overlay (using Apple's Breadcrumb Code Example ). These actions are performed in the main thread, but it is possible that the application may receive help information, since the map view will be initialized or the view will be popped onto the screen.

I also use location services to get points via GPS, but I do not update the overlay unless we are in the foreground.

As far as I understand, starting with iOS 6, MKMapView is now created using OpenGL? If so, is it possible to overlay also through OpenGL? This may help explain why I accidentally got this error.

I heard about some ways to undo all OpenGL actions, such as calling glFinish()in applicationDidEnterBackgroundand applicationWillResignActiveor using [[CCDirector sharedDirector] pause]. Given this, would it be a better solution to eliminate any OpenGL drawing with MKMapView / MKOverlayView?

+5
source share
1 answer

, , , , , , . , . - () , , .

, UIApplicationStateActive. , .

+13

All Articles