Linux subsystem randomly freezes after a few minutes
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
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: wsl --unregister Ubuntu **on cmd prompt disable windows linux subsystem option in control panel "Add and remove windows features" restart computer re enable restart computer install Ubuntu app from windows store.
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, I got exactly the same issue. It started right after I loaded the latest Windows update (Version 1909, OS Build 18363.693). First, I supposed, I broke something under WSL or a bad mix with the new Windows version. Thanks to this post, I can say it's not the case. I hope MS will find a way to correct this issue because, as you all, I need to go ahead in my work. Good weekend however ...
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. My laptop Windows OS is on build is 18363.693 (where i am observing seeing WSL issues). Desktop build is 18363.657 where i have no 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. But when I install it, four init processes are spawned again, just like before.
SAD
Hi, I run WSL 1, so I think it's time to make the leap toward WSL V2. Hope it will be easy to preserve my environment. Bye
Hi, I run WSL 1, so I think it's time to make the leap toward WSL V2. Hope it will be easy to preserve my environment. Bye
is it already on stable version?
I've exactly the same. Running Windows 10 Pro Version, OS Build 18363.693
It's appearing after few minutes of use, sometimes during boot already. It feels a bit unpredictable when it occurs. It can happen with different commands (nano, whois, ping). When it freeze I have the same CPU behaviour as jackyjkchan. Some process become in a suspended state as well and only with a restart I can get my PC stable again.
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.

With the suspended processes.

Trying to kill / restart processes is not working. Trying to restart process LXSSMANAGER in services, gaves an error and fails. It keeps in a stopping status.. Only restarting the pc works.
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 https://imgur.com/a/imCb9JW
I have exactly the same issue after updating the system.. I tried many ways but failed. Hope some heroes save us!
Same issue here.... Running a Windows update to try to solve the issue after the latest update. February update, not mandatory, has been detected, thus updating. Crossing finger for the issue to be solved. I'll keep you post if issue is solved after Windows Update...
=> 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...