PowerToys: Periodic White Error Popups on Windows 10 Starting with v0.76.0

Microsoft PowerToys version

0.76.1

Installation method

PowerToys auto-update

Running as admin

None

Area(s) with issue?

General

Steps to reproduce

  1. Run Windows 10 Enterprise 21H2 19044.3693.
  2. Update PowerToys to v0.76.0 or v0.76.1.

✔️ Expected Behavior

No error popups.

❌ Actual Behavior

I periodically (once an hour or so) receive between 3-4 popup windows in a row. The nature of the error appears to affect the rendering of the window. See: image

The reported error contents (not visible in the screenshot) are:

Version: 0.76.1.0
OS Version: Microsoft Windows NT 10.0.19044.0
IntPtr Length: 8
х64: True
Date: 12/7/2023 1:34:35 PM
Exception:
System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002)
   at Wpf.Ui.Interop.Dwmapi.DwmGetColorizationParameters(DWMCOLORIZATIONPARAMS& dwParameters)
   at Wpf.Ui.Interop.UnsafeNativeMethods.GetDwmColor()
   at Wpf.Ui.Appearance.ApplicationAccentColorManager.GetColorizationColor()
   at Wpf.Ui.Appearance.ApplicationThemeManager.Apply(ApplicationTheme applicationTheme, WindowBackdropType backgroundEffect, Boolean updateAccent, Boolean forceBackground)
   at Wpf.Ui.Appearance.ApplicationThemeManager.ApplySystemTheme(Boolean updateAccent)
   at Wpf.Ui.Appearance.SystemThemeWatcher.UpdateObservedWindow(IntPtr hwnd)
   at Wpf.Ui.Appearance.SystemThemeWatcher.WndProc(IntPtr hwnd, Int32 msg, IntPtr waram, IntPtr 1Param, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr 1Param, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr waram, IntPtr 1Param, Boolean& handled)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchwhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Other Software

No response

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Ok, @stefansjfw I haven’t seen the popup since I installed the hotfix, I will download the new version, Thanks Again!

Thanks again for the help 😃 The new official version contains the same fix you were testing

Ok, @stefansjfw I haven’t seen the popup since I installed the hotfix, I will download the new version, Thanks Again!

This was hotfixed with 0.76.2. Please update PowerToys.

@stefansjfw If I am not wrong the new WPF-UI release (preview 12) from yesterday contains the fix.