MAUI: Exception in GeoViewHandler

295
1
11-22-2023 08:59 AM
esp1rl
by
New Contributor III

Hi, we´re getting some crash events collected in Sentry for a specific device.

OnePlus8Pro / Android 11

System.InvalidOperationException: PlatformView cannot be null here
  ?, in MapView ViewHandler<IMapView, MapView>.get_PlatformView()
  ?, in void GeoViewHandler<IMapView, MapView>.GeoViewHandler_Unloaded(object sender, EventArgs e)
  ?, in void VisualElement.OnUnloadedCore()
  ?, in void VisualElement.HandlePlatformUnloadedLoaded()
  ?, in void VisualElement.UpdatePlatformUnloadedLoadedWiring(Window window)
  ?, in void VisualElement.remove_Loaded(EventHandler value)
  ?, in void GeoViewHandler<IMapView, MapView>.DisconnectHandler(MapView nativeView)
  ?, in void MapViewHandler.DisconnectHandler(MapView nativeView)
  ?, in void ViewHandler<IMapView, MapView>.OnDisconnectHandler(View platformView)
  ?, in void ViewHandler.OnDisconnectHandler(object platformView)
  ?, in void ElementHandler.DisconnectHandler(object platformView)
  ?, in void ElementHandler.Microsoft.Maui.IElementHandler.DisconnectHandler()
  ?, in void Element.SetHandler(IElementHandler newHandler)
  ?, in void Element.set_Handler(IElementHandler value)
  ?, in void VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
  ?, in IElementHandler ElementExtensions.ToHandler(IElement view, IMauiContext context)
  ?, in View ElementExtensions.ToPlatform(IElement view, IMauiContext context)
  ?, in void LayoutHandler.SetVirtualView(IView view)
  ?, in void ViewHandler<ILayout, LayoutViewGroup>.SetVirtualView(IElement view)
  ?, in void Element.SetHandler(IElementHandler newHandler)
  ?, in void Element.set_Handler(IElementHandler value)
  ?, in void VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
  ?, in IElementHandler ElementExtensions.ToHandler(IElement view, IMauiContext context)
  ?, in View ElementExtensions.ToPlatform(IElement view, IMauiContext context)
  ?, in void LayoutHandler.SetVirtualView(IView view)
  ?, in void ViewHandler<ILayout, LayoutViewGroup>.SetVirtualView(IElement view)
  ?, in void Element.SetHandler(IElementHandler newHandler)
  ?, in void Element.set_Handler(IElementHandler value)
  ?, in void VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
  ?, in IElementHandler ElementExtensions.ToHandler(IElement view, IMauiContext context)
  ?, in View ElementExtensions.ToPlatform(IElement view, IMauiContext context)
  ?, in void ContentViewHandler.UpdateContent(IContentViewHandler handler)
  ?, in void ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page)
  ?, in void PropertyMapper<TVirtualView, TViewHandler>.Add(string key, Action<TViewHandler, TVirtualView> action)+(IElementHandler h, IElement v) => { }
  ?, in void PropertyMapper.UpdatePropertyCore(string key, IElementHandler viewHandler, IElement virtualView)
  ?, in void PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
  ?, in void ElementHandler.SetVirtualView(IElement view)
  ?, in void ViewHandler.SetVirtualView(IElement element)
  ?, in void ViewHandler<IContentView, ContentViewGroup>.SetVirtualView(IView view)
  ?, in void ContentViewHandler.SetVirtualView(IView view)
  ?, in void ViewHandler<IContentView, ContentViewGroup>.SetVirtualView(IElement view)
  ?, in void Element.SetHandler(IElementHandler newHandler)
  ?, in void Element.set_Handler(IElementHandler value)
  ?, in void VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
  ?, in IElementHandler ElementExtensions.ToHandler(IElement view, IMauiContext context)
  ?, in IPlatformViewHandler ViewExtensions.ToHandler(IView view, IMauiContext context)
  ?, in View ShellFragmentContainer.OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  ?, in IntPtr Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_(IntPtr, IntPtr, IntPtr, IntPtr, IntPtr)
  ?, in IntPtr JNINativeWrapper.Wrap_JniMarshal_PPLLL_L(_JniMarshal_PPLLL_L, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr)

 

0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

This is a known issue and is fixed in the upcoming v200.3 release.