Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Application crashes when pressing Tab+Spacebar while video is playing using CommunityToolkit.Maui.MediaElement on Windows platform #1863

Open
2 tasks done
SanthoshAthili3101 opened this issue May 6, 2024 · 2 comments · May be fixed by #1870
Assignees
Labels
bug Something isn't working in-progress 📽️ MediaElement Issue/PR that has to do with MediaElement

Comments

@SanthoshAthili3101
Copy link

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

The application crashes immediately upon pressing the "Tab" key and the "Spacebar" key simultaneously while the video is playing. The crash occurs consistently, and no error message or exception is displayed to the user.

Expected Behavior

The application should handle the key press combination without crashing, and the video playback should continue uninterrupted.

Steps To Reproduce

  1. Launch the .NET MAUI application on a Windows platform.
  2. Navigate to the screen where a video is displayed using the MediaElement control.
  3. Start playing the video.
  4. While the video is playing, press the "Tab" key and the "Spacebar" key simultaneously.

Link to public reproduction project repository

NA

Environment

- .NET MAUI CommunityToolkit:2.0.0
- OS: Windows
- .NET MAUI:7

Anything else?

No response

Copy link
Contributor

Hi @SanthoshAthili3101. We have added the "needs reproduction" label to this issue, which indicates that we cannot take further action. This issue will be closed automatically in 5 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@vhugogarcia vhugogarcia added 📽️ MediaElement Issue/PR that has to do with MediaElement and removed needs reproduction labels May 7, 2024
@olekssokol olekssokol self-assigned this May 7, 2024
@olekssokol
Copy link
Member

Hi @SanthoshAthili3101, I have managed to reproduce this in the CommunityToolkit.Maui.Sample project. In my case, this happens only when the "Tab" key switches the active state to the "Change Aspect" button, and then the "Space" key executes it.
In this case, the problem is due to the DisplayActionSheet call from the Microsoft.Maui.Controls package, it should display the window and return the pressed button, but instead of the window, it immediately returns null, which was not handled in the Sample project. I fixed it at the project level in my branch (1863-bug-application-crashes), but this is an issue in Maui.Controls of older versions and in 8.0.21 everything works without crash.

If you are experiencing the issue in a different way, please provide details so I can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-progress 📽️ MediaElement Issue/PR that has to do with MediaElement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants