We have an app that uses OpenGL and MKMapView
. When we switched to iOS 6 it started crashing at [EAGLContext setCurrentContext:]
with EXC_BAD_ACCESS whenever we tried to display a map after setting our own EAGLContext
.
Asked
Active
Viewed 3,249 times
6
-
Hi Darren, does the backtrace end on `gpus_ReturnNotPermittedKillClient`? – Breezeight Oct 03 '12 at 17:32
1 Answers
8
iOS 6 maps are OpenGL based. Your app will crash if you don't call
[EAGLContext setCurrentContext:nil]
after you have set your own EAGLContext. We fixed our bug by putting the above call into the dealloc method of our class that was interacting with EAGLContext.

Darren
- 2,888
- 1
- 23
- 34
-
Same problem here (iOS 6.1.3). Your workaround reduces the crashes, but sadly doesn't eliminate it completely. – AGPX Jun 30 '13 at 13:30
-
It does not work : I can systematically reproduce the crash on 6.1 . – floydaddict Jul 02 '13 at 13:22
-
saved my life, VLC was crashing after watching other camera providers – Aleksey Mazurenko Jul 30 '19 at 11:21