Xcode: Simulate Location Crash when using German region format with a GPX

Originator:futuretap
Number:rdar://10298164 Date Originated:17-Oct-2011 10:32 PM
Status:Duplicate/10122362/Closed Resolved:
Product:Developer Tools Product Version:4.2
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
When using the system region format "Germany", Xcode does immediately crash when using the new Debug=>Simulate Location feature with a custom GPX file.

Steps to Reproduce:
Use the attached GPX file and switch the system region to Germany.

Expected Results:
It should just work.

Actual Results:
Xcode crashes with an exception (see attached)

Notes:
I assume the German decimal comma (and dot for the thousands delimiter) is causing the problem.

Comments

Here is a workaround...

As you correctly suspected, it's to do with the decimal separator being a comma in the German (and in my case Portuguese) localizations. To work around this I just used a comma instead of a dot in my GPX file and it works fine. Here's an example:

<wpt lat="38,78465" lon="-9,09550">
     <name>Lisboa</name>
</wpt>

Hope that helps.

By michaelab1 at Nov. 15, 2011, 6:23 p.m. (reply...)

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!