Closed jaimecbernardo closed 2 years ago
@htcfreek , looks like we missed testing in some conditions ;)
Good catch.
I am confused. Is this a special system or did you disabled Virtual Desktops? Based on my testing at least one desktop must exist.
Will look into this tomorrow. Please assign me.
@jaimecbernardo
Can you please upload me the content of the registry values (especially VirtualDesktopIDs
) on the machine?
Was this crash happening after or before showing the PT Run window?
Thanks for picking it up. It's a Windows 10 VM where no new Virtual Desktop has been created yet. Those machines don't have those keys in registry.
In order to simulate a PC that has never created Virtual desktops, remove these keys from the registry:
CurrentVirtualDesktop
from \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\SessionInfo\1\VirtualDesktops
VirtualDesktopIDs
from \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktops
It's happening before showing the PT Run window. It's when trying to load the plugins, I think.
The question is what we return if this happens. "No desktop exist" or "desktop one" for each window? 🤔
The question is what we return if this happens. "No desktop exist" or "desktop one" for each window? 🤔
Perhaps empty string for this case.
The question is what we return if this happens. "No desktop exist" or "desktop one" for each window? 🤔
Perhaps empty string for this case.
Yes. This was an idea. It crashes when splitting the binary array from registry because the index that we calculate is invalid. So the idea is to set the desktop list to an empty one.
@jaimecbernardo
Are you sure that the value VirtualDesktopIDs
in \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktops
really doesn't exist? On my system the explorer crashes if I click on the desktop switcher symbol in task bar and the value is missing.
Or did you disabled virtual desktops with a gpo or something?
Perhaps Windows 11 works differently than Windows 10. This is Windows 10.
Perhaps Windows 11 works differently than Windows 10. This is Windows 10.
I am on windows 10 too. Can you try what happens when you click on this bottun in your task bar:
Perhaps Windows 11 works differently than Windows 10. This is Windows 10.
I am on windows 10 too. Can you try what happens when you click on this bottun in your task bar:
The crash on my system must be a race condition when clicking to fast and often on the button.
If I understand you correct, you don't use virtual desktops? So there isn't a condition where the key is missing unexpectedly?
found a bug on win 11 too: The current desktop
key has moved:
If I understand you correct, you don't use virtual desktops? So there isn't a condition where the key is missing unexpectedly?
This VM never used Virtual Desktops, so it's expected that the key is missing.
If I understand you correct, you don't use virtual desktops? So there isn't a condition where the key is missing unexpectedly?
This VM never used Virtual Desktops, so it's expected that the key is missing.
I have fond the crash reason and the fix is nearly ready. It crashes when trying to selecting desktop one from the empty desktop list. 😅 I will request your review in the PR.
Sent a debug build that contained this 😅
The user configuration also ran into it. https://github.com/microsoft/PowerToys/issues/16912#issuecomment-1063993782
This is fixed with 0.57.0. Please head over to https://aka.ms/installpowertoys
Microsoft PowerToys version
0.57.0-pre
Running as admin
Area(s) with issue?
PowerToys Run
Steps to reproduce
Start PowerToys Run in computers where no Virtual Desktops have been created yet, there's no registry key for the Virtual Desktops. Window Walker is running into an error and not starting in these cases. This is the current state building from main, likely after https://github.com/microsoft/PowerToys/pull/16325
In order to simulate a PC that has never created Virtual desktops, remove these keys from the registry:
CurrentVirtualDesktop
from\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\SessionInfo\1\VirtualDesktops
VirtualDesktopIDs
from\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktops
✔️ Expected Behavior
PowerToys Run starts normally.
❌ Actual Behavior
This message is shown:
This gets added to the PowerToys Run logs.
Other Software
No response