CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier

Home Page:https://learn.microsoft.com/dotnet/communitytoolkit/maui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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?

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

  1. Open solution from Repository.
  2. Run solution.
  3. Navigate to MediaElement.
  4. 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!