-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Cannot launch UI elements: faulting module Microsoft.UI.Xaml.dll #36028
Comments
I can confirm this behavior. It's still present in 0.87.0. We're installing PowerToys with the System-Wide Installer (extracting the MSI beforehand with Wix Toolset) and then just let it run via default settings. Issue also occurs with GPOs set. Logs in EventViewer PowerToys Run:
PowerToys Settings
Color Picker
|
Can confirm that we also still have the issue on 0.87.0. |
I tested out every PowerToys Version down from the current one and the issues do not occur on versions prior 0.85.1 (that one is also not affected). I suppose it was introduced with the addition of customizable telemetry. |
I think I have found the fix for this, but I need someone to replicate this:
It seems whatever is creating the registry entry is incorrectly doing so, with either the wrong type or wrong data. |
Thank you for these steps! Our systems are currently down, so I am unable to test this, but I will report back early next week. |
Thanks, gonna test that out on monday when I am back at work. Can't replicate this at home... Edit: |
Is it the same errors @Zagrthos? If not, can you post your logs? (Right click tray icon -> Report Bug) |
Same error, here you go: |
Oh, it just occurred to me, but I uninstalled/reinstalled PowerToys before I tried this. Though, I doubt reinstalling changes anything. |
Also, while checking the bug report, I noticed that the corrupted registry entry was still there. |
Ahoi hoi, We have/had the same Problem. We are using GroupPolicies to activate/deactivate PowerToys functions. We also deactivated "Allow sending diagnistic data". After the Policy was set and PowerToys in Version 0.86.0 or higher is started, there will be a RegKey generated as written by CatGamer23. If Policy is set under UseContext -> HKCU\Software\Classes\PowerToys -> Key AllowDataDiagnostics with corrupted Data. Only if we activate oder Remove "Allow sending diagnistic data" in Policies and remove the "HKCU\Software\Classes\PowerToys" RegKey, the PowerToys Settings are starting again. Only deactivating the Policy does not work, because the "HKCU\Software\Classes\PowerToys" is still set. Even if you remove PowerToys. The RegKey is still there. I hope i was able to help someone. Thank to CatGamer23 to show me the way to find a solution ;-) |
I didn't quite understand, but I just want to clarify: You had same/similar problem, and fixed it by not just deleting the AllowDataDiagnostics value, but the PowerToys key above it? (Sorry if this comes off as mean, not my intent) |
Everything is fine ;-) Jup we hat the same Problems. PowerToys was not starting (Settings). We removed(not configured) "Allow sending diagnistic data" Policy and we had to remove the RegKey. Only removing (not configuring) the Policy brought no solution. Yes we removed the whole RegistryKey but it also worked if we only Remove the RegKeyValue -> AllowDataDiagnostics The RegKey "HKEY_CURRENT_USER\Software\Classes\PowerToys" is only set, if the Policy "Allow sending diagnistic data" is set to "deactivate". If you set "Allow sending diagnistic data" to activate or does not set (configure) the Policy. The RegKey is not set. But as said we are using UsePolicy to configure PowerToys. |
While I don't know what UsePolicy (I assume its like Microsoft's GroupPolicy, but 3rd-party, like PolicyPlus) is, I didn't know the key Here is my current hypothesis: when writing the data the the registry, it uses a variable of some sort (int, bool, maybe even a string) which is supposed to be filtered/converted to a registry-safe format, but somehow it either misses this step, or has erroneous data, which corrupts the registry. TL;DR: Whoever implemented the disable telemetry via registry feature didn't do it right, and no one noticed. (I don't really know C# well enough to read the source code, hopefully someone with the skillset can) |
I suppose the issue lies here at this line:
It saves the boolean value as a QWORD which doesn't sound right. Should be a DWORD. |
Fixed and should be release with upcoming PowerToys version |
Thank you all for details and investigation! |
Awesome! That awful bug is finally going to be fixed! |
Thanks! Hopefully that will fix it forever, this was a nightmare 🙂 |
Microsoft PowerToys version
0.86.0
Installation method
GitHub
Running as admin
No
Area(s) with issue?
General, Settings, Advanced Paste, PowerToys Run
Steps to reproduce
Installed 0.86.0 (machine-wide) from GitHub on W11 23H2 22631 (multiple machines), both manually and through SCCM.
I get the following error when trying to launch any UI part of PowerToys:
Trying to generate a debug report results in (likely because diagnostics is disabled through GPO):
✔️ Expected Behavior
Any UI element of PowerToys opens as expected.
❌ Actual Behavior
Nothing opens (the icon is visible in the system tray), and occasionally, the system hangs (especially when trying to do something with advanced paste).
Interestingly, Always On Top works perfectly. Running the application as an administrator also works perfectly (no GPO enforced).
Other Software
No response
The text was updated successfully, but these errors were encountered: