MKMapView attempts to call OpenGL rendering while backgrounded

Originator:SlaunchaMan
Number:rdar://14202745 Date Originated:19-Jun-2013 10:25 AM
Status:Insufficient information Resolved:
Product:iOS SDK Product Version:6.1
Classification:Other Bug Reproducible:Always
 
Summary:
When using an MKMapView, it’s possible that the app will be in the background but MKMapView will attempt to call into OpenGL drawing code.

Steps to Reproduce:
1. Create an app with a method that adds an MKMapView to the app’s UI
2. Create a condition where this code is called while the app is backgrounded

Expected Results:
The app will not crash.

Actual Results:
The app crashes, as seen in this tech note: http://developer.apple.com/library/ios/#qa/qa1766/_index.html

Regression:
This StackOverflow post (http://stackoverflow.com/questions/12713781/occasionally-ios-6-mkmapview-crashes-in-initwithframe) seems to indicate that this started in iOS 6. My own crash logs support this, as no iOS 5 devices have reported this crash.

Notes:
Adding an MKMapView to the UI is definitely not something we should be doing while the app is backgrounded, but if someone does so accidentally, it shouldn’t crash the app.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!