Select to view content in your preferred language

Crash during Pan ("Scale is less than or equal to zero")

724
1
09-20-2023 08:44 AM
Labels (1)
JeremyBridges
Frequent Contributor

In a Xamarin.Forms app, we see some customers encounter a crash that results from a pan on the map. We don't know the specific reproduction steps. So, I'm reporting this here for an eventual fix. This doesn't appear to be catchable in managed code. I'd love to see this kind of issue dealt with internally when the cause is something so mundane as panning the map. Error details and stack trace below. Thanks in advance!

mono_handle_exception_internal

SIGABRT: Invalid argument: Scale is less than or equal to zero.
  • ArcGISException.HandleCoreError (RuntimeCoreNet.GeneratedWrappers.CoreError error, System.Boolean throwException)
  • Interop.CheckError (System.IntPtr errorHandle, System.Boolean throwOnFailure, System.Runtime.InteropServices.GCHandle wrapperHandle)
  • CoreMapView.InteractionZoomToScale (System.Double scale, RuntimeCoreNet.GeneratedWrappers.CoreCoordinate2D screenPoint)
  • MapView.OnGeoViewManipulationDelta (CoreGraphics.CGPoint origin, CoreGraphics.CGPoint screenLocation, System.Double translateX, System.Double translateY, System.Double scale, System.Double rotation, System.Boolean isFlick, Esri.ArcGISRuntime.UI.DeviceIndependentPointingDevice device)
  • UserInteractionHandler.OnManipulationDelta (CoreGraphics.CGPoint origin, CoreGraphics.CGPoint screenLocation, System.Double translateX, System.Double translateY, System.Double scale, System.Double rotation, System.Boolean isFlick, Esri.ArcGISRuntime.UI.DeviceIndependentPointingDevice device)
  • IosDeviceInteractionHandler.OnPan (UIKit.UIPanGestureRecognizer recognizer)
  • IosDeviceInteractionHandler+<>c__DisplayClass29_0`1[T].<CreateWeakGestureAction>b__0 (T gr)
  • UIGestureRecognizer+Callback`1[T].Activated (T sender)
  • (wrapper managed-to-native) UIKit.UIApplication.xamarin_UIApplicationMain(int,string[],intptr,intptr,intptr&)
  • UIApplication.UIApplicationMain (System.Int32 argc, System.String[] argv, System.IntPtr principalClassName, System.IntPtr delegateClassName)
  • UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
  • Application.Main (System.String[] args)
0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor

What version of ArcGIS Runtime is this app using?

0 Kudos