-
Notifications
You must be signed in to change notification settings - Fork 833
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 Freezes Randomly #10378
Comments
same here, wsl2 takes ages to start. some times become accessible after 2 hrs |
I also get this. Already running commands just pauses. Then I can't start new commands. It tends to freeze for me during heavy load. I have a 16 core/32 thread system and for me it generally freezes when I run the Rust compiler test suite.
This puts heavy load on all 32 CPU threads. Sometimes WSL freezes in the middle for running the tests. Doing I have used WSL 2 for many months. The freezes are a relatively new problem, first seen a few weeks back or so. |
WSL version 1.3.15.0 does not fix the issue. |
Any updates on this issue?. Are the logs helpful or not? |
After updating to the latest version of wsl I have not seen this problem. Not sure if it is luck or if the issue is fixed. I will report here if I see it again. |
I got the freeze again while running the Rust compiler test suite (see above). This is my current WSL version:
|
I have the same issue ... |
Personally even this command is frozen and I have to kill the process, I'm not sure that we have the same issue behind our freezes |
Same to me. Frozen completely |
Same here. I typically reboot my computer to resolve the problem for a day or two : ( |
same here, it happens too often even with low demand processes, or nothing running in the background |
same issue here, this is relatively new issue. Had not faced this earlier. had to do |
Same issue here, definitely makes me want to buy a mac |
I have this issue as well. It tends to happen when compiling lots of code (C++, in my case). |
I got this issue often if i am using vim. |
Happens to me also, probably especially when under heavy load... I run simulations for several hours only to notice that WSL has freezed after 10 hours of calculations...
|
Same here, when compiling big project. |
Same here when building with
|
Same here - WSL hangs intermittently, even under light loads.
UPDATE: my issue is resolved since my WSL auto-updated to version 2.X.
|
The same with building java projects.
|
Same here, noticing it when compiling a lot of code, great job ignoring this issue!
|
Me too WSL-Version: 2.0.9.0 |
Similar issue. Usually happens when running an Alpine based devcontainer inside VSCode for a while, couple of hours usually. |
Same issue when build databend WSL version: 2.0.9.0 |
I have the same issue |
I've found the solution. In my case the reason was that the directory with the code was on windows disk. I've copied on linux filesystem and now it works fine |
I get this a lot recently when running my Linux unit test scripts for GCC and Clang. WSL version: 2.0.9.0 |
I have exactly same problem, especially when running vscode attached to the WSL instance. |
Looks like the common denominator in all cases is the Windows FS access. |
I hope that Microsoft finds a solution because this bug is around since three/four months and it is very annoying |
Been experiencing this for years at this point, the only option for me is to switch Docker for Windows back to Hyper-V instead of WSL, It's completely unusable when it freezes every WSL instance every time I try and compile something. If you want to recreate this, compile any rust project with a few hundred dependencies (tree) in WSL, it happens every time. |
Same issue here:
Also during heavier loads |
Ditto here. Seems to be happening more frequently lately. I tried to update to the latest WSL pre-release but it doesn't help. It's often happening when there is no window open, but maybe some background cron jobs happening. Since I can't get in to the instance to run ps, it's hard to see what the cause might be.
I ran collect-wsl-logs.ps1 while this was happening and would be happy to provide the ZIP if there is a nonpublic place to submit it. |
Same here. Happens every day after I ssh into a remote server for a while.
|
I also have these random freezes occurring quite frequently and just found a reliable way to trigger one while installing a local instance of Ghost blog.
Note: I tested the exact same install of Ghost from WSL's
Hopes this help debugging the issue. |
Same here. Running a media server stack through WSL2 with an ext4 drive mounted. Downloading media files through WSL2 onto the drive quickly results in the entire thing freezing up, and I'm unable to open new terminals, unable to run any wsl commands, and if I taskkill, I'm still unable to restart wsl without a reboot
|
Same here. Facing keyboard input freeze after every one command. wsl shutdown seems to be overkill. It seems that some service is getting high priority over the keyboard input, and that is causing these frequent freezes. If anyone has any solution, please share. |
I am having the same issue but its usually happens when I launch Intellij and work with my java project and listen music or a video in the background and my mouse just randomly freeze.I tried everything update drivers it fixed a small amount of issues but it still annoys me. |
When booting up some dev containers in vscode
|
I still have the same problem, even on the latest 2.2.1 pre-release ( My major pain point where this problem occurs is quantization of LLM models using llama.cpp: I have a workstation with Nvidia GPUs, so my steps are for using CUDA 12.4 and the LLM model WizardLM-70B-V1.0. To reproduce it you will need an RTX 30 series card or newer and around 500GB of free space. Open Ubuntu Terminal, cd to a folder of your choice (Downloads maybe) and then:
My
|
Same here when im starting a react npm application WSL-Version: 2.1.5.0 |
Same here after a fresh install of WSL. Rebooting doesn't fix. Reinstalling WSL doesn't fix. If i try to start a distro, it finally launches after about an hour. But fresh install of docker fails to start docker engine, giving WSL error. There really needs to be some way to troubleshoot this issue, just freezing with no error is very frustrating. WSL version: 2.1.5.0 |
For me the problem was me forgetting to set newly installed distro to default, because i also have docker wsl. So maybe it will help you too |
In my case, the problem was that I didn't have any free space on the system. |
This was also the case for me, I was installing a very big package and the system space was very low. |
|
I fix my wsl freeze by following #11066 (comment) . Change |
My "ase gui" graphics application of https://wiki.fysik.dtu.dk/ase/index.html is giving frozen windows ...I have the updated WSL and Ubuntu 22.04LTS. What can be wrong ? See also https://gitlab.com/ase/ase/-/issues/1511 , this is for "ase gui". |
Also chiming in that I have the same issue. Even on wsl just being idle. It hangs many times a day, forcing me to taskkill it. I don't know if it's related to docker desktop (it happens even if I have no containers running, however) or not.
I have plenty of diskspace left, and my WSL session reports plenty of disk, RAM and swap available, basically no load, 12 cores on idle. |
I'm seeing symptoms like this as well. It seems like it's the X client or server that's freezing, though, not all of WSL. Any GUI apps will stop responding, but I can kill them from a WSL terminal window, and the linux instance is clearly still working fine. I've been using gnome-terminal with tmux, and when the UI freezes, I can "just"
|
For what it's worth: this was happening multiple times a day, and it stopped when I switched from Docker Desktop for Windows w/ WSL integration to just installing Docker in Linux. No issues since, and it's been a month or two. |
same issue, nearly 100% freeze ratio when use mamba install pytorch |
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
Linux version 5.15.90.1-microsoft-standard-WSL2
Distro Version
Ubuntu 20.04.6 LTS (GNU/Linux 5.15.90.1-microsoft-standard-WSL2 x86_64)
Other Software
PhpStorm 2023.2 Build #PS-232.8660.205, built on July 28, 2023
Rancher Desktop v. 1.7.0 and Kubernetes 1.25.6
Repro Steps
None, it just freeze randomly, sometimes after fresh reboot on initial start (does not start at all), sometimes after 7 hours working fine
Expected Behavior
No freeze
Actual Behavior
WSL freezes, so I have to shut it down with "wsl.exe --shutdown" and reboot it with "wsl -d Ubuntu" after it started up it works but it can crash at any time again.
Diagnostic Logs
WslLogs-2023-08-10_13-13-37.zip
The text was updated successfully, but these errors were encountered: