MKMapView (VectorKit) very crashy when adding/removing overlays

Originator:jwight
Number:rdar://22098789 Date Originated:
Status:Duplicate Resolved:
Product:iOS Product Version:
Classification: Reproducible:Hell yes
 
Summary:
Our application (3DRobotics Solo) is extremely crashy deep inside of MapKit - specifically inside the private API VectorKit.

After much review of the code we cannot identify any issues with our MapKit usage that is incorrect. We're not abusing the APIs or doing anything weird.

We have narrowed this down to a test app (attached) that can reproduce the issue by repeatedly adding and removing MKAttachements to a map.

The test app fails repeatedly on iOS 8.4. We've been stress testing this app on as many devices as possible and our findings are

iPhone 6, iOS 9 beta: Not crashing
iPad Mini 2, iOS 9 beta: Not crashing
iPhone C: iOS 8.4: Crashes after approx 15-30 minutes of running
iPad Air 1 (A1475): Crashes after approx 1 minute of running.

This _could_ indicate that the problem is fixed on iOS 9 - however we are receiving a variety of MapKit/VectorKit related crashes from the app in the field - and the test code provide only reproduces one of the many crashes we've seen.

It's also very interesting how the iPad Air 1 crashes very reliably while the other devices do not.

Steps to Reproduce:
1: Build and run MapCrasher on iOS 8.4 and run it on an iPad Air 1.
2: Wait a few minutes
3: Crash!

Expected Results:
As far as we can tell we're not abusing MKMapView.

This _seems_ to be a common problem for MapKit users on iOS 8 and even older: https://duckduckgo.com/?q=vectorkit+crashes&t=osx

Actual Results:
See attached crash

Version:
iOS 8.4

Notes:


Configuration:
iPad Air 1 (A1475)

Attachments:
'Mapcrasher  7-31-15, 14-22.crash' and 'Mapcrasher.zip' were successfully uploaded.

Comments

This appears to be a problem still.

By jwarmkessel at July 25, 2017, 9:43 p.m. (reply...)

Duplicate of 20863894 (Closed)

Fixed in iOS 9


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!