microsoft / microsoft/microsoft-ui-xaml

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

Open
#10,554 3 comments 0 reactions 0 assignees View on GitHub
area-MediaPlayerElement bug product-winui2
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

Start with MediaPlayerElement in the WinUI 2 Gallery and reproduce playback on Windows 11 at 3840 x 2160 with 175% or 225% scaling. Test a long streaming file until the slider reaches its edge; done means playback ends without crashing and the slider remains usable without resolution-specific removal.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.