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
Registry Preview window crashes when trying to open a file #25250
Comments
Hi, can you post /bugreport ? Also, does this happen every time ? |
The bug report is already provided in the "Bug report log" link. And yes, it happens every time for me |
Sorry, missed it. Thanks! |
@randyrants FYI |
@CodingWonders Does Registry Preview works fine if you right-click .reg file -> Preview? /needinfo |
Ok. Thanks for the feedback. We'll look into it |
@stefansjfw |
@htcfreek I can confirm It crashes for me under those conditions as well. If I run the Registry Preview EXE directly unelevated, Open File also works fine. Right clicking a file and clicking Preview works fine as well. One possible fix could be to have the launch button in settings run the preview tool unelevated to work around this issue. Not sure if a real fix would be trivial or not since the crash happens in Microsoft.ui.xaml.dll. Not to mention it is probably a good idea to unelevate any of the tools launched through Settings anyway, since the user is unlikely to expect them to all run elevated. |
I'll get on this straightaway - thanks for the easy to follow repro steps! |
After upgrading, i just launch it from what's news and it showed. But when i click to open a .reg file, it crashed. I found some .dmp files, hope useful. |
Indeed: the crash is a known issue with WinUI and calling this API while elevated, per microsoft/WindowsAppSDK#2504 I'll see about using one of their workarounds for now. |
By the way, it works when i use right click to open a .reg file, after this, i can open another files in the preview window. |
I can confirm that the Registry Preview windows crashes when running elevated as Admin, but not only when trying to Open a file, but when pressing the Save file as button as well. Opening the Registry Editor does not result in a crash. |
Microsoft PowerToys version
0.69.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Registry Preview
Steps to reproduce
Open the Registry Preview window from PowerToys settings and click "Open file..."
Bug report log
✔️ Expected Behavior
I was expecting an "Open file" dialog to show up
❌ Actual Behavior
The window crashes, although PowerToys itself doesn't
Other Software
No response
The text was updated successfully, but these errors were encountered: