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 sometimes won't boot up and cause the whole system stuck #8338

Closed
1 of 2 tasks
liyafe1997 opened this issue Apr 26, 2022 · 8 comments
Closed
1 of 2 tasks

WSL sometimes won't boot up and cause the whole system stuck #8338

liyafe1997 opened this issue Apr 26, 2022 · 8 comments

Comments

@liyafe1997
Copy link

liyafe1997 commented Apr 26, 2022

Version

22598.200

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Debian Testing

Other Software

No response

Repro Steps

just run wsl.exe or run Debian in the start menu.

Expected Behavior

The bash comes out

Actual Behavior

屏幕截图 2022-04-26 163155

It cames nothing in the terminal. It also unable to shutdown by wsl --shutdown (also stuck like this).
Then after few seconds/minutes, the whole Windows stucked, only mouse can move, everything no response, Ctrl+Alt+Del also doesn't work. Only thing I can do is power off my computer by long press powerbutton.

It does not always happen. If the bash came out, it will works fine unless you shutdown WSL. I think about 50% chance it happens.

Diagnostic Logs

1

I can't grab the log file if this happened. Because if the WSL stucked at boot up, even the system seems still working, but all the modern UWP Apps (include the Feedback App) can't start. It stucked at the LOGO, then the whole system become stucked.

If I don't start WSL or the WSL start successfully, everything include the Feedback App works fine.

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 26, 2022

Thanks for reporting this @liyafe1997.

If Feedback hub doesn't work, can you try recording logs manually ? (see the 'Record WSL logs manually' section)

@liyafe1997
Copy link
Author

liyafe1997 commented Apr 27, 2022

Thanks for reporting this @liyafe1997.

If Feedback hub doesn't work, can you try recording logs manually ? (see the 'Record WSL logs manually' section)

If the WSL stucked, the wpr also got stuck when I run wpr -stop wsl.etl
00

@ghost ghost removed the needs-author-feedback label Apr 27, 2022
@liyafe1997
Copy link
Author

I grabbed the log when I was able to start WSL successfully, I don't know if it is helpful or not.
wsl.zip

@mao
Copy link

mao commented Apr 28, 2022

I have same problem,execute wsl in terminal will hang there.

@OneBlue
Copy link
Collaborator

OneBlue commented Apr 28, 2022

Thanks @liyafe1997.

In the logs I can see: init: (1) WARNING: Debian root file system is compressed, performance may be severly impacted..

This might be the reason why it's hanging.

Does this also happen if you register a brand new distribution (with let's say wsl --install ubuntu) ?

@liyafe1997
Copy link
Author

Thanks @liyafe1997.

In the logs I can see: init: (1) WARNING: Debian root file system is compressed, performance may be severly impacted..

This might be the reason why it's hanging.

Does this also happen if you register a brand new distribution (with let's say wsl --install ubuntu) ?

Yes it is compressed, I always use it as compressed(it can save a lot of disk space), but I am pretty sure it is not this problem, because 1. Before Win11 22598 everything works fine, I have been using this WSL disto with compressed vhdx for months. 2. Even I have tried to decompress it, this problem still happens, nothing changed.

I haven't tried to install another disto, but I can try it later. But I guess it is not this problem. Because seems if something happened "inside" WSL, it shouldn't make the whole Windows stucked. I mean, things inside the VM shouldn't impact outside world, this is a security problem.

@ghost ghost removed the needs-author-feedback label Apr 28, 2022
@liyafe1997
Copy link
Author

Seems this problem has gone after upgraded to Win11 22610.1
But I am not pretty sure because it happens randomly before, but at least, I have used this new version of OS for 3 days and have no problem with WSL.

@OneBlue
Copy link
Collaborator

OneBlue commented May 17, 2022

Closing since the issue is solved after an OS upgrade.

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