[BUG] Media Element Windows Crash on Exit
ne0rrmatrix opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
When playing video with MediaElement and you click on close window it can crash intermittently.
Expected Behavior
When you click close while playing video/audio it should not crash.
Steps To Reproduce
- Open solution from Repository.
- Run solution.
- Navigate to MediaElement.
- Exit app while media is playing.
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/tree/main/samples
Environment
- .NET MAUI CommunityToolkit: 9.0.2
- OS: Windows 10 Build 10.0.19041.0
- .NET MAUI: 8.0.60
- .NET MAUI MediaElement: 3.x - current Main
Anything else?
This issue has been ongoing for more than a year.
2024-07-28.21-28-31.mp4
I'm new to MAUI and my project is consistently reproducing this bug. Glad to see you've put out a fix!