Crash in -[CLGeocoder gecodeAddressString:completionHander:]
| Originator: | johnhammerlund | ||
| Number: | rdar://24232128 | Date Originated: | 1-18-2016 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 9.2 |
| Classification: | Reproducible: | Always |
Summary:
When provided a specific 4-digit string as the first argument (ex. 1021, 1010, 1011, but not 1023), -[CLGeocoder geocodeAddressString:completionHandler] will cause a crash before firing its provided completion handler. The crash occurs specifically on a system serial dispatch queue, com.apple.GeoServices.PlaceDataLookup
Steps to Reproduce:
1. Download MINDBODY - Book Fitness Classes and Beauty Services
2. Log into any account
3. Once the tab bar loads, with the Home tab selected, tap the magnifying glass in the top right
4. If the keyword search field auto-focuses, tap "Cancel" in the top right
5. Tap the left segment next to "Sort and Filter" (will likely say "Location")
6. Type "1021" in the search bar
7. Tap "Search" in the system keyboard
ALTERNATIVELY:
1. Spin up a new iOS app project in Xcode and add CoreLocation.framework to the "Link Binary With Libraries" Build Phase
2. In ViewController.m, import the CoreLocation framework
3. Within -[ViewController viewDidLoad], add:
CLGeocoder *geocoder = [CLGeocoder new];
[geocoder geocodeAddressString:@"1021" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
NSLog(@"This log will never fire");
}];
4. Run the project
Expected Results:
The provided completion handler block fires with no crash.
Actual Results:
The app crashes before the provided completion handler block fires.
Version:
9.2 (13C75)
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!