-
Notifications
You must be signed in to change notification settings - Fork 829
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
Linux subsystem randomly freezes after a few minutes #4936
Comments
I'm experiencing exactly the same as you did, dude. I'm almost about to totally uninstall my WSL. It just drives me crazy with the never-stopping fan. |
Same here, for a couple of computers since wednesday. |
Oh to add to @JudeLiu's comment , I've also tried uninstalling and reinstalling WSL. My Ubuntu WSL install is fresh as of yesterday. So freshly reinstalling WSL doesn't help. By reinstalling i did the following: |
This exact same issue happened to me as well. About 6 or so init processes stay in the background after I close terminal, each taking approx 15% CPU usage. I've tried disabling and re-enabling wsl, reinstalling several times, using Debian GNU instead, and deleting and replacing the lxss folder in system32 with one from another computer but nothing seems to work. |
I’m having the same exact issue. It usually happens when I use ssh. |
Also having the same issue and have tried reinstalling WSL Ubuntu multiple times. I've also got multiple init and bash files running that are taking up huge chunks of CPU; restarting the computer every time it freezes seems to be a temporary fix but it's a huge pain. |
You can not even use task manager to close those processes and as previously said you have to restart the computer to get rid of them. |
I am having the same issue. My issue happened after i upgraded my wsl. now every time my wsl freeze i need to full reboot my laptop to make sure that init and bash in task manager is gone. hope they can get fix this bug |
Hi guys, |
What WSL and version are you all using? |
I am using the Ubuntu app from the Microsoft app store. 1804.2019.521.0. I don't think this is the issue however as my desktop is also using this version and has not seen any issues. |
@jackyjkchan Over night I upgraded my Windows OS to Version 1909 18363.657 but I'm still having the same issue. My Ubuntu app from the app store is also 1804.2019.521.0 |
@pmkays well then, let us both pray to the engineers at Redmond and hope they notice us. |
@jackyjkchan my laptop OS version is 1909 build 18363.693 but still have this problem, and use Ubuntu 18.04 LTS app downloaded from win store. I tried to reinstall WSL. I uninstalled it from setting, download ubuntu app from store again. SAD |
Hi, |
is it already on stable version? |
I've exactly the same. It's appearing after few minutes of use, sometimes during boot already. It feels a bit unpredictable when it occurs. I mainly use the Ubuntu app (1804.2019.521.0) as well, but even using the wsl command via powershell let it freeze. As well as the Debian repro. Trying to kill / restart processes is not working. |
Using Intellij to run a bash script with WSL, after launching the WSL is frozen, my CPU is at 100% and the processes are unkillable. https://i.gyazo.com/11989e804e5e77802255e0f0161b25cb.gif |
I have exactly the same issue after updating the system.. I tried many ways but failed. Hope some heroes save us! |
Same issue here.... => Seems like the Windows Update (windows-10-update-kb4535996) solves the issue on my side. So far, so good... Update march, 3: actually issue is not solved...still randomly freezing. I won't go to insider program... |
I moved via Windows Insiders Program to (slow release track) build 19041.113 |
Having the exact same issue- bash freezes after a few minutes of work with multiple instances of init and bash which consume a ton of CPU. Unfortunately Windows Update (windows-10-update-kb4535996) does not seem to fix the problem |
I used this method and indeed the Windows Insiders Program 19041.113 fixed my issue. |
This problem forced to me to join windows insider preview and it's fixed. |
Works for me as well! Just join Windows Insiders Program and update. |
Same problem. I spent the entire weekend trying to figure out what was going on. Windows Insiders Program may not be worth it for some computers as it sometimes causes system crash, driver issues and so on. Let's just hope MS will fix the problem in the next update. |
I have the same issue. Is there any other solution rather than joining Windows Insiders Program and update? |
Same issue here, for me the 100% CPU usage is even triggered when I'm not using Ubuntu. |
The same problem appears on my PC. It has begun a few days ago after one full day of working with WSL and code editor. Now I enrolled in Windows Insiders - I am updating my windows 10. I'll let You know if it works in my case. |
Exact same problem there too... Has anyone found a temporary solution ? I freeze after only a few minutes of usage :/. |
Yes. I had the same problem too. @giannisdravilas solution fixed it for me. |
I have the same problem but unfortunately @giannisdravilas solution does not fix it for me. Any other ideas how to fix ? |
Having a similar issue in vim. The Virtual Machine Platform fix by @giannisdravilas did not work for me. |
Same problem here - the proposed fix did not work. |
I have the same or a similar problem. WSL hangs/freezes randomly, sometimes after a few minutes, sometimes after a couple of hours. Killing the process doesn't work, I always need to restart my pc. Windows 10 Version 10.0.18363 Build 18363 I have had this issue before last year and tried to describe it here: At some pointit simply didn't happen any more until about last week. I have noticed it only happening when I am running some kind of javascript dev server. But I usually do, so I cannot say for sure, that it wouldn't happen otherwise. I did install a windows update last week The virtual machine fix by @giannisdravilas did also not work for me. |
uninstall kb4552931, it's worked to me. |
I am experiencing this problem too, which is qute unfortunate, as I was looking forward to using WSL as my development system on my new work laptop. My Windows updates are administered by my company's IT, so I don't have any influence on them, meaning:
I'm a web frontend developer and was using VS Code with WSL1 Ubuntu 18.04 as a remote development environment and the new Windows Terminal as my command line tool. The Virtual Machine Platform "workaround" from @giannisdravilas seemed to work for me for a about a day, until a tried a
Looks like I'll have to go back to Git Bash and installing everything under Windows until this is fixed or I can upgrade to WSL2 😞. |
@alexravenna I am experiencing this issue on WSL2 too sadly. |
Randomly freezes when running npm scripts |
you sent a 15gb email? |
I've been having randomly this problem too, but recently it got worse. It is hard to track because the terminal freezes and I try to find the buggy process from htop/top where it is easy to get the full path of the program. The ones usually blocking WSL terminal and background ports is vscode-server, specially the typescript server. That being said, even when it is not really WSL fault, I wonder if I should expect WSL to not go down so easily from a rogue process. Like in being able to prioritize the load so the terminal and open ports are not highjacked by a high cpu/mem process |
Randomly freezes when running Docker inside wsl2 |
Oh this seems to be a quite good hint to check on. A lot of times when i am connected to a remote ssh server, the connection wsl terminal freezes. Not the windows or the process itself but the ssh connection seems to be frozen. I can open a new tab or a new pane with "alt"+"shift"+"+". |
@ulftietze yeah it seems like when the docker takes too much memory it freezes. And another problem with |
@Sp4Rx Maybe, maybe not, i dont know. I have 32 GB of RAM and there is about 12GB left, so this shouldn't cause the problem. |
Same here. WSL1 hangs at least once a day. It happens during a lot of hard disk activity, I think. As mentioned above, deleting a big I also have WSL1 and WSL2 running on the same machine and use Docker Desktop with WSL2 backend. However, it does not happen necessarily if I run docker commands. |
I update docker and windows both when ever a update is available. Currently I don't see any random freeze when I run docker in wsl2. Don't know what fixes it the windows update or the docker update |
This is an issue for me on Docker Desktop on WSL2. Running jest tests inside my docker container takes over my CPU. Virtual Machine Platform is already enabled. |
I've noticed that this has gotten a lot better over time with various driver and windows updates, but occasionally, when coming back from sleep (or just screen lock), my linux based X apps will be sluggish and/or frozen. The only workaround I've found so far is: But that means a whole lot of setup getting the apps running again. |
I've got the same problem on my system: Windows 10 Enterprise, Version 21H2, OS build 19044.2130. The problem is not too severe on my side, just freezes once a week or like so, and in particular it seems to me that it freezes after coming back from sleep or hibernation. When WSL2 freezes, I've got a I just tried to restart WSL2 following this. I run the
After a quite long time (I've managed to read all the discussion in this issue), suddenly everything started working again. Don't know if this can be a true workaround, and obviously one cannot wait so long for restart. |
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! |
I am using Microsoft Windows [Version 10.0.18363.657]
I launch the subsystem using the Ubuntu app from start menu, app version is 1804.2019.521.0
This issue has occurred from doing just about doing anything, to list a few, running "exit" in the ubuntu shell, exiting from vi, attempting to run vi. Installing python packages with pip, typing into shell...
It sometimes even freezes right when i start the ubuntu shell.
I would expect the shell to not randomly freeze.
I'll attach logs after i restart my computer. When this happens my entire computer becomes very slow and the CPU usage shoots to 100%.
I've attached the error logs, i added a .log to the name so github would let me attach them.
I also added a screen shot showing what processes seem out of place when this bug happens.
After the freeze happened I tried to terminate WSL through cmd prompt.
The "The Windows Subsystem for Linux instance has terminated" message appears after i run esl --terminate Ubuntu on command prompt.
lxcore_kernel.etl.log
lxcore_service.etl.log
lxcore_user.etl.log
The text was updated successfully, but these errors were encountered: