-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
"Run" sees incorrect version info ("1903+" on "2004") #4432
Comments
Can you take a screenshot of your settings? this looks to be an OS detection bug. @arjunbalgovind / @enricogior did #4253 fix this issue? This looks to be settings related as well if they are pulling out old settings. |
No this isn't fixed. #4253 only prevented PowerLauncher.exe from starting up on older OS versions. This seems to be the same issue reported in #3925 , it looks like right after the updating to 2004 users are hitting this, but after "some reboots" (I'm not sure if anything else changed in between this for users), it starts working again. It sounds like maybe the updated "hasn't completed"? I tried to reproduce this on a VM by upgrading an 1809 VM to 2004 but I couldn't repro it. |
I'm still thinking we should just check the registry since it's more robust and can't fail as the current approach. |
@enricogior You mean detect contracts VS the WinVer? |
@crutkas |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment. |
Is this bug reproducible? The code for IsApiContractPresent hasn't seen many changes lately (over 1 year, in fact), so I'd be surprised if this suddenly stopped working. There's also nothing that I'm immediately seeing in that API that is stateful, which confirms that I haven't ever seen this API behave differently from call to call. Either way, I'd like to see some debugging/tracing showing that the API is failing or returning the wrong value. I'm wondering if there is any threading going on in the calling side?
So that's kind of my hunch that could explain the inconsistent behavior. This would be far more reliable, not to mention simpler:
Simply rely on C++'s thread-safe local static initialization to do the job. |
Hi @DefaultRyan |
Thanks @DefaultRyan. @enricogior /@arjunbalgovind, it seems that that might be the issue because looking at all the os detection issues (other than the PowerLauncher issue, which has been fixed), it seems like they are all happening when an older version shows up on recent builds. This might be because the |
Fix committed in 0.19.1. https://github.com/microsoft/PowerToys/releases/tag/v0.19.1 |
Environment
Steps to reproduce
Expected behavior
Run no longer configurable because it thinks I have an old version of Windows.
Actual behavior
"This feature requires Windows 10 version 1903 or higher"
The text was updated successfully, but these errors were encountered: