Skip to content

Capturing a photo using MediaPicker.CapturePhotoAsync crashes if the user takes too long to take the picture. #35308

@rgsilva20

Description

@rgsilva20

Description

Capturing a photo using MediaPicker.CapturePhotoAsync crashes if the user takes too long to take the picture.

When the user takes a picture quickly, it works as expected.

[Video demonstrating the MediaPicker crash]
https://github.com/rgsilva20/MediaPickerCrashes/blob/master/demo.mp4

Steps to Reproduce

  1. Clone the repository.
  2. Run the project.
  3. Click the button and wait 5 to 10 seconds with the camera open.

Link to public reproduction project repository

https://github.com/rgsilva20/MediaPickerCrashes

Version with bug

10.0.60

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

.NET 8 (Please specify exact version)

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions