MapKit MKDistanceFormatter crashes reliably when phone is in Paraguay & Spanish

Originator:zack
Number:rdar://28322950 Date Originated:9/15/2016
Status:Open Resolved:
Product:iOS Product Version:10.0.1
Classification: Reproducible:Yes
 
Summary:
The stringFromDistance: method on MKDistanceFormatter crashes reliably when the phone is in Region - Paraguay and Language - Spanish. There may be other cases that cause unreliable crashes as well (such as the crash log attached), but the Paraguay/Spanish case is most reliable.

Steps to Reproduce:
Download the repro app from https://github.com/zackzachariah/ParaguayRadarRepro or this Radar. 
Run in an iOS 10 Simulator.
It will crash immediately.

Expected Results:
The repro app should log "Hello world prepare to crash" and then log "1km". In general, the expected result is that stringFromDistance: will return a localized string for any number of meters passed in.

Actual Results:
stringFromDistance: crashes with an EXC_BAD_ACCESS crash.

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!