-
Notifications
You must be signed in to change notification settings - Fork 814
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
Windows programs hang when started from WSL2 #7371
Comments
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it. Thank you! |
I updated linux kernel to |
Link to the feedback form: https://aka.ms/AAdosri |
Logs manually collected: wsl.zip |
any need for more logs / tests? |
Observations:
|
Have the same / similar issue myself - am using I can see the process, but it's just blocked,
Restarting WSL doesn't seem to fix the issue, however fully rebooting does resolve it temporarily. I'm running Windows 11 and using WSL installed via the MS Store. |
I have the same issue too. If I can't open explorer.exe or other win32 programs on wsl2, I will hang on open WSL folder in windows at the same time. |
Same issue on Windows 11 22000.376, happens once per day. Restarting WslService in Windows seems to resolve it. Any hanging processes will be killed, but after that I can I wonder if a common feature of @ZedG2, @mands, & @0anton is that we're all running WSL distributed through the store instead of Windows. If you open up services.msc and examine the Windows Subsystem for Linux Preview service, is the path a Store path like this?
|
I have the same issue, and as @AaronFriel said, I also have WSL installed from Microsoft Store. |
Yes, I've installed WSL2 from Windows Store too. However I neither have Windows Subsystem for Linux nor WslService in my Services list. |
I do have the WslService in my system. However, its restarting doesn't help to fix the issue 😞 |
How long it will take to fix? It's so annoying. I need to restart my PC several times EVERY SINGLE DAY! |
@AaronFriel confirm mine is installed from Windows Store and running It usually happens after my laptop went to sleep.
However, it doesn't work by restarting the WSL service. wsl --shutdown
sc stop WslService
sc start WslService Followed by starting Ubuntu, then run Will be great if anyone got a workaround other than rebooting. |
Any update on this? |
Looks like this is a duplicate of #7883 which has just been solved. |
Closing since this is a duplicate of #7883 |
Windows Build Number
Microsoft Windows [Version 10.0.19042.1165]
WSL Version
Kernel Version
4.19.128
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Start any Windows executable, for example wsl.exe:
Expected Behavior
Windows executable starts normally or fails with expected error message.
Actual Behavior
Program freezes. Impossible to interrupt with Ctrl-C. Only kill -9 can stop the process.
Diagnostic Logs
WSL2 integration with Windows, which allows execution of Windows programs [1], stops working.
Every new executable (wsl.exe in this example) remains blocked:
Typical state - process waits in accept4(..)
File descriptor 4 is s AF_VSOCK, a socket for host-vm communication. All processes looks the same:
Blocked process can only be killed with kill -9
Other observations
Interestingly, if the process is started with root privileges, all works as expected - processes starts, responds etc.
If WSL2 is shutdown (
wsl.exe --shutdown
), execution of Windows programs starts working for a while, but ends soon with the same.Rebooting the systems helps only temporary. After a while blocking reappear again.
Where is no difference in behavior, if I use Windows Terminal or wsl.exe as my console. Windows programs freeze in both.
Both Windows console apps and GUI programs hang.
Logs
Refs
The text was updated successfully, but these errors were encountered: