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
- Clone the repository.
- Run the project.
- 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
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
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