microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Crash at the end of playback in MediaPlayerElement under specific screen resolution and scale

Open JimmyRespawn opened this issue 8 months ago • 3 comments

Which version of the app?

WinUI 2 Gallery

Description

Resolution: 3840 x 2160, Scale: 225% or 175%

Detail: If you play a long media streaming file in MediaPlayerElement at this two specific resolution and scale rate. At the end of playback, probably when thumb in the slider come to the edge of the slider. It'll instant crash the app.

Currently the only way to avoid this is to detect user's resolution and scale. Remove the slider manually to avoid the crash.

WinUI version: v2.8.7

Screenshots

Image

Windows version

Windows 11 24H2 (26100)

Additional context

No response

JimmyRespawn avatar Apr 26 '25 01:04 JimmyRespawn

@JimmyRespawn You have mentioned WinUI2 Gallery in the version app section, but I don't find the long media streaming file option in the gallery app. Can you add more context on the repro steps, whether the attached screenshot is from WinUI2 gallery app or from a separate app? Please provide more details.

ayushjai30 avatar Apr 28 '25 10:04 ayushjai30

@JimmyRespawn You have mentioned WinUI2 Gallery in the version app section, but I don't find the long media streaming file option in the gallery app. Can you add more context on the repro steps, whether the attached screenshot is from WinUI2 gallery app or from a separate app? Please provide more details.

@ayushjai30 I've made an example repo. https://github.com/JimmyRespawn/WinUIMediaPlayerCrashExample Be sure to run it under Resolution: 3840 x 2160, Scale: 225% or 175%. Direct drag the audio to 1:12:18 and play it. Wait it until the end. It'll crash at the time like 5seconds remaining.

JimmyRespawn avatar Apr 29 '25 13:04 JimmyRespawn

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.