MKMapSnapshotter startWithQueue:completionHandle never returns under some conditions

Originator:hotngui
Number:rdar://24528420 Date Originated:2/5/2016
Status:Closed Resolved:No
Product:iOS Product Version:9.2.1
Classification:Major Bug Reproducible:AlwaysWhen the "+" (plus sign) is used in a query parameter it needs to be percent encoded, but NSURLComponents does not do that. The result is that when sent to a web server the "+" gets erroneously interpreted as a "space" character when decoded.
 
On an iPad, if I request a snapShot size of 1024:1024 and set the region span to something really small such as 0.006:0.006 for some locations the completion handler never returns.

Increasing the span or decreasing the image size does allow it to work, however there is no way to calculate a working combination of values.

Steps to Reproduce:
1. Build and run the attached sample app
2. Tap the "SnapShot" button in the upper right of the screen


Expected Results:
You should see the snapShot image appear in the lower portion of the screen.

Actual Results:
The completion handler never gets called, so its impossible to display an image or see an error indication.

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!