microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.79k stars 320 forks source link

UWP window fails to fill client area #4068

Open HO-COOH opened 8 months ago

HO-COOH commented 8 months ago

Describe the bug

UWP window will suddenly fails to fill client area when dragging the window to resize, usually after some extended period of system up time (something like 1 week of not restarting). And when this happens, all UWP window (including system settings) behaves the same. If you drag the window border to enlarge the window, new client area becomes transparent. Note: The app is NOT freezing, and is still interactive (even buttons in the transparent area is clickable if you try)

This issues happens universally, throughout any Windows 10 and 11 versions, and any hardware. (There are intel, amd, and nvidia gpu users reporting this)

WinUI3 window, win32 window and XAML island does not have such issue.

Restarting dwm.exe does NOT fix this issue.

Steps to reproduce the bug

  1. Not sure how to reproduce, just keep the system running for some days. The longer it runs, it happens more likely.

Expected behavior

No response

Screenshots

image

7cc4992aa5cc6a89d933bce7486f5cc0

image

image

Also this reddit

image

https://github.com/microsoft/WindowsAppSDK/assets/42881734/db993c36-96cf-4008-a09d-d2859fb2ca29

NuGet package version

None

Packaging type

Packaged (MSIX)

Windows version

No response

IDE

No response

Additional context

No response

1357310795 commented 1 month ago

the same issue here for my Microsoft Todo

20240815233626

version: Microsoft Todo 2.114.7122.0 Windows 11 Professional 22621.3880