Skip to content

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

@lucas-zimerman

Description

@lucas-zimerman

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions