Turn on accessibility will cause MKMapView memory leak

Originator:flora.wang
Number:rdar://31418634 Date Originated:4/4/2017
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 10.2
Classification:Crash Reproducible:Always
 
Area:
Accessibility

Summary:
Once the voice over is turned on, map view(MKMapView instance) will have memory leak. Even after the voice over is turned off, the leak is still existing. Eventually it will cause app crash.

Steps to Reproduce:
1. Create a simple app that has two screens with navigation controller. One contains a MKMapView instance. One has a button that will segue to show the map screen.
2. Navigate between the two screens and the memory status is normal (memory got released after navigate away from the map view).
3. Turn on voice over and then turn off. Repeat step 2, and the memory that used for map is never released.

Expected Results:
Expect to see memory get released once the view controller is released.

Actual Results:
Memory for the map view is never released.
Version:
iOS 10, didn't test other version.

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!