Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error auto launching after update via Microsoft store. #36558

Open
Ruzaid-aman opened this issue Dec 25, 2024 · 5 comments
Open

Error auto launching after update via Microsoft store. #36558

Ruzaid-aman opened this issue Dec 25, 2024 · 5 comments
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-PowerToys Run Improved app launch PT Run (Win+R) Window

Comments

@Ruzaid-aman
Copy link

Microsoft PowerToys version

0.87.1.0

Installation method

Microsoft Store

Running as admin

No

Area(s) with issue?

General

Steps to reproduce

restart system, and wait for auto launch, and see thit i.e. error

✔️ Expected Behavior

should lauch the powerToys run in background

❌ Actual Behavior

Version: 0.87.1.0
OS Version: Microsoft Windows NT 10.0.22000.0
IntPtr Length: 8
x64: True
Date: 12/25/2024 11:42:03 AM
Exception:

System.ArgumentException: Value does not fall within the expected range.
   at PowerLauncher.MainWindow.DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE attribute, DWM_WINDOW_CORNER_PREFERENCE& pvAttribute, UInt32 cbAttribute)
   at PowerLauncher.MainWindow.OnSourceInitialized(Object sender, EventArgs e)
   at PowerLauncher.MainWindow.OnSourceInitialized(EventArgs e)
   at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   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)

saw this error

LOGS
2024-12-25.txt

Other Software

@Ruzaid-aman Ruzaid-aman added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 25, 2024
@htcfreek htcfreek added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Dec 29, 2024
@jaimecbernardo
Copy link
Collaborator

Wonder if it's a Windows 10.0.22000.0 issue.

DWMWA_SYSTEMBACKDROP_TYPE I think is needed for Fluent UI but it's not available until Windows 11 Build 22621, according to the docs: https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute

@mantaionut
Copy link
Contributor

mantaionut commented Jan 2, 2025

According to the stack, the crash happens due to DWMWINDOWATTRIBUTE.DWMWA_WINDOW_CORNER_PREFERENCE

DwmSetWindowAttribute(hWnd, attribute, ref preference, sizeof(uint));
which is supposed to be supported in Windows 11 Build 22000.

@Jay-o-Way
Copy link
Collaborator

Pardon my directness, not an expert, but... Rounded corners have been around since the beginning of Windows 11, right? Are we sure we understand (the nature of) the error - and not pasting band-aids over band-aids?

@mantaionut
Copy link
Contributor

@Ruzaid-aman I've created a local build https://github.com/mantaionut/PowerToys/releases/tag/rond_corner_crash which should fix your crash. Can you check if it fixes your issue?

@jaimecbernardo
Copy link
Collaborator

@Ruzaid-aman , please also uninstall your current installed PowerToys before trying any of these installers that we're using to check if the problem is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
None yet
Development

No branches or pull requests

5 participants