Skip to content
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

wsl.exe hang after windows update #10209

Closed
1 of 2 tasks
crgarcia12 opened this issue Jun 17, 2023 · 4 comments
Closed
1 of 2 tasks

wsl.exe hang after windows update #10209

crgarcia12 opened this issue Jun 17, 2023 · 4 comments

Comments

@crgarcia12
Copy link

Windows Version

Microsoft Windows [Version 10.0.22621.1848]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 22

Other Software

No response

Repro Steps

Update windows to the latest version. WSL hangs, even wsl -l hangs

Disabled Hyper-V
Uninstalled WSL + reinstalled wsl
500GB of free disk
CPU < 20% - Memory <30%

sc queryex LxssManager

SERVICE_NAME: LxssManager
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 1077  (0x435)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 0
        FLAGS              :

All wsl commands exept wsl --version hang. Trying to open Ubuntu from anywhere (Start menu, PowerShell, etc) hang with a black screen.
No error message in the System Event Viewer

If I manually start LxssManager, nothing changes. I also tried killing all wsl* tasks and services

Here are the logs:
WslLogs-2023-06-17_02-43-22.zip

Expected Behavior

WSL to not to hang :)

Actual Behavior

all wsl commands hang without error message

Diagnostic Logs

https://github.com/microsoft/WSL/files/11777567/WslLogs-2023-06-17_02-43-22.zip

@bin-emanuele
Copy link

Hi, have the same identical issue: any wsl command hangs. Did you have any luck finding a solution?

@bin-emanuele
Copy link

UPDATE: After some deep googling I've found the following command to restart WSL, that fixes the problem (for the moment at least)
tasklist /svc /fi "imagename eq svchost.exe" | findstr LxssManager

@crgarcia12
Copy link
Author

I found the issue. No clue how it is related, but it fixed the problem.
I had a network-mounted file system failing due to no connection. I was not usinging it or referencing it in any form from my WSL, but it was making it hanging (even for an hour).

@SKART1
Copy link

SKART1 commented Jul 3, 2023

In my case it was about CFG feature on my windows installation

Followed this solution from question on superuser

and finally wsl returned back to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants