MKMapView attempts to call OpenGL rendering while backgrounded

Originator:rmaloney27
Number:rdar://20059131 Date Originated:05-Mar-2015 12:43 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8.1
Classification:Crash/Hang/Data Loss Reproducible:Always
 
This is a duplicate of rdar://14202745

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!