sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

(MAUI) It's hard to know if an event made an app crash

Open lucas-zimerman opened this issue 5 months ago • 3 comments

https://sentry.lkp.app.br/share/issue/6a79ea41e23348e9ad9680c4887ca800/

System.InvalidOperationException: PlatformView cannot be null here
  ?, in UIImageView ViewHandler<IImage, UIImageView>.get_PlatformView()
  ?, in UIImageView ImageHandler.Microsoft.Maui.Handlers.IImageHandler.get_PlatformView()
  ?, in void ImageImageSourcePartSetter.SetImageSource(UIImage platformImage)
  ?, in async Task<IImageSourceServiceResult<UIImage>> ImageSourcePartExtensions.UpdateSourceAsync(IImageSourcePart image, UIView destinationContext, IImageSourceServiceProvider services, Action<UIImage> setImage, float imageScale, CancellationToken cancellationToken)
  ?, in async Task ImageSourcePartLoader.UpdateImageSourceAsync()
  ?, in async Task ImageHandler.MapSourceAsync(IImageHandler handler, IImage image)
  ?, in async void TaskExtensions.FireAndForget(Task task, Action<Exception> errorCallback)

This issue is marked as unhandled, but the trace shows user used the app after the unhandled exception (all those stacktraces came from the Maui Assembly)

With that said, it's hard to know when an app actually crashed due to an event, that is helpful information to prioritize issues.

lucas-zimerman avatar May 13 '25 15:05 lucas-zimerman