Regression v1.6: App crash when changing system theme after closing one of the windows #9888
Labels
area-TitleBar
Issues related to custom window title bars.
area-Windowing
bug
Something isn't working
closed-Fixed
Described behavior has been fixed.
Crash
whenever user reports a crash or app freeze
fix-released
The fix has been in a release (experimental, preview, stable, or servicing).
Regression
team-Reach
Issue for the Reach team
Milestone
Describe the bug
If I have a window set to
AppWindow.TitleBar.ExtendsContentIntoTitleBar = true
, and I close that window (but other WinUI windows are still live), then changing the system theme, the following crash is observed:Steps to reproduce the bug
Expected behavior
No app crash.
Screenshots
No response
NuGet package version
Any of these 3 versions reproduces the issue:
WinUI 3 - Windows App SDK 1.6 Experimental 1: 1.6.240531000-experimental1
WinUI 3 - Windows App SDK 1.6 Experimental 2: 1.6.240701003-experimental2
WinUI 3 - Windows App SDK 1.6 Preview 1: 1.6.240807006-preview1
Windows version
Windows 11 (22H2): Build 22621
Additional context
This crash prevents users from creating things like splash screens or startup screens, or any type of temporary windows.
Setting ExtendsContentIntoTitleBar to false in the StartupWindow class avoids the issue, but means you can't use the new titlebar.
This is a regression from 1.5.240802000 where this is a non-issue.
Full callstack:
The text was updated successfully, but these errors were encountered: