FYI: we received the following stack trace from our telemetry recently. This was using the .NET Runtime running on iOS, using Xamarin. Hopefully, it helps to fix some bugs that haven't been discovered yet.
System.ArgumentException: Invalid argument: The position's spatial reference is null
Stack trace:
- at Esri.ArcGISRuntime.ArcGISException.HandleCoreError (RuntimeCoreNet.GeneratedWrappers.CoreError error, System.Boolean throwException)
- at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError (System.IntPtr errorHandle, System.Boolean throwOnFailure, System.Runtime.InteropServices.GCHandle wrapperHandle)
- at RuntimeCoreNet.GeneratedWrappers.CoreLocation..ctor (RuntimeCoreNet.GeneratedWrappers.CoreDateTime timestamp, RuntimeCoreNet.GeneratedWrappers.CorePoint pointHandle, System.Double horizontalAccuracy, System.Double verticalAccuracy, System.Double velocity, System.Double course, System.Boolean lastKnown)
- at Esri.ArcGISRuntime.Location.Location..ctor (System.Nullable timestamp, Esri.ArcGISRuntime.Geometry.MapPoint position, System.Double horizontalAccuracy, System.Double verticalAccuracy, System.Double velocity, System.Double course, System.Boolean isLastKnown)
- at Esri.ArcGISRuntime.Location.SystemLocationDataSource.RaiseLocationChanged (Esri.ArcGISRuntime.Internal.Geoposition geoposition, System.Boolean isLastKnown)
- at Esri.ArcGISRuntime.Location.SystemLocationDataSource.Locator_PositionChanged (System.Object sender, Esri.ArcGISRuntime.Internal.PositionChangedEventArgs args)
- at Esri.ArcGISRuntime.Internal.Geolocator.OnPositionChanged ()
- at Esri.ArcGISRuntime.Internal.Geolocator.UpdateCurrentPosition (CoreLocation.CLLocation location)
- at Esri.ArcGISRuntime.Internal.Geolocator.LocationManager_LocationsUpdated (System.Object sender, CoreLocation.CLLocationsUpdatedEventArgs e)
- at CoreLocation.CLLocationManager+_CLLocationManagerDelegate.LocationsUpdated (CoreLocation.CLLocationManager manager, CoreLocation.CLLocation[] locations)
- at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
- at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
- at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)