question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UWP apps freeze for few seconds when system theme/accent color changes

See original GitHub issue

Describe the bug All UWP apps seem to be affected by this bug, some of them less (I guess simpler UI tree) and some more. Whenever the system theme changes, the apps will freeze for few seconds (1-5?). Something interesting that we found out while researching about this behavior:

  • The freeze affects the app in any case, even if it explicitly sets a RequestedTheme in App.
  • Resizing the app window while it is frozen seems to restore the app usability.
  • Changing RequestedTheme from code behind is instant, and it works so nicely that I’ve added animations for that: transition

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Go to System settings > Personalization > Colors
  2. Change theme or accent color
  3. Try to interact with a UWP app, Settings included.

Expected behavior

The app won’t freeze, and the user can continue to interact with it. This is specially important if they have automatic theme/accent color switch based on current system wallpaper, and they have a wallpaper playlist enabled.

Screenshots

Version Info

Windows 10 version Saw the problem?
Insider Build (xxxxx) Yes
May 2020 Update (19041) Yes
November 2019 Update (18363) Yes
May 2019 Update (18362) Yes
October 2018 Update (17763) Yes
April 2018 Update (17134) Yes
Fall Creators Update (16299) Yes
Creators Update (15063) Yes
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:32 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
riverarcommented, Jun 1, 2021

@jevansaks Windows 10 grinds to a halt when changing theme. I suspect that’s the underlying issue that @FrayxRulez is referring to here. Agree though, this is more of an OS issue than anything MUX related.

It’s not very productive to even talk about theme change performance relative to the app when the entire system is locked up.

1reaction
riverarcommented, May 31, 2021

This repros everywhere, even in a vm, and is well known, so not sure why you need traces from us?

Read more comments on GitHub >

github_iconTop Results From Across the Web

UWP Apps Has This Ugly Background Based on Accent ...
A leftover from legacy UWP app icons which were monochrome, thus needing a background to be visible on a white explorer window.
Read more >
UWP app freezing every 30 seconds
When it freezes, moving the mouse over the app works, but the controls do not get highlighted on hover, no control gets focus...
Read more >
Micro-Freeze Windows 10 at regular intervals affecting all ...
Short freezes of 1-3 seconds occurring at somewhat regular intervals. ... After turning the automatic accent color change off, I experienced ...
Read more >
Observing system color changes in UWP apps - Martin Zikmund
Anytime the user changes the accent color or switches between dark and light mode, the resource is updated. To access the current accent...
Read more >
Why is Windows 10 freezing for a second everytime the ...
The background will change, the computer will freeze for a full three seconds, and then the accent color will change.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found