microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.24k stars 811 forks source link

WSL Hangs #10434

Closed WTSParadigm closed 1 week ago

WTSParadigm commented 1 year ago

Windows Version

Microsoft Windows [Version 10.0.19045.3324]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

Kernel Version

Default Distribution: Ubuntu-22.04 Default Version: 2

Distro Version

Ubuntu-22.04

Other Software

No response

Repro Steps

Initially I had an issue with the VM's taking up a lot of my memory, so I attempted to modify the .wslconfig file to limit the memory, I had it set to [wsl2] memory=4GB I'm guessing that wasn't enough memory because then I couldn't actually start anything, e.g. a container in Visual Studio Code. Also any command in wsl would just hang and my Docker Desktop would appear to hang before giving an error of "unable to calculate image disk size" I tried deleting the .wslconfig file but everything is still stuck in this state.

I've tried uninstalling and re-installing everything (wsl, the wsl distribution, docker desktop) but nothing. WSL will respond after a restart, but once it tried to install Ubuntu, it just behaves incredibly slow. It will eventually get to adding a username and password, but after that it hangs. The process running the install also appears to use very little resources.

I don't know what else to try, I feel like I've deleted any docker related folder and uninstalled/reinstalled everything possible. I've attached the WSL log files if that helps.

Expected Behavior

'wsl --install Ubuntu-22.04' installs and launches in a timely manner

Actual Behavior

'wsl --install Ubuntu-22.04' hangs

Diagnostic Logs

WSL logs WslLogs-2023-08-30_12-31-45.zip

WTSParadigm commented 1 year ago

I didn't realize you had to run an operation when collecting logs. Here's logs for when I tried to start Ubuntu WslLogs-2023-08-30_17-18-17.zip

microsoft-github-policy-service[bot] commented 1 week ago

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!