-
Notifications
You must be signed in to change notification settings - Fork 821
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 complete freeze #8824
Comments
Here is the Feedback Hub WLS logs https://aka.ms/AAi265d |
Thanks for reporting this @schiorean. Unfortunately I'm not seeing any logs on Feedback Hub. Can you share logs here ? |
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
@OneBlue here's the log. Many thanks! |
Thank you @schiorean. I'm not seeing anything that jumps out in the logs. This looks like 'freeze' issue we've been investigating for a while. If you can reproduce this consistently, can you please:
This should give us enough information to understand what's happening |
Hi @OneBlue, I reproduced it again, but I don't have the gcore output because I can't figure out how to install gdb in the system shell (none of the usual commands are recognized e.g. trying Some extra notes, maybe it's helping:
I tried to upload the zip file containing the dumps here, but looks like File size is too big. I uploaded again in Feedback Hub https://aka.ms/AAi265d however when I open Details I can't see it... If you can't see it in Feedback Hub please tell me where to send the file? |
Oh sorry @schiorean, that was a missed copy-paste from me. What I meant was: But there was an unrelated email address in my clipboard (edited out). Sorry about that. Can you try that and share the Linux dumps ? It should be possible to upload them directly on this issue. |
Thank you @schiorean. Sadly nothing jumps out from dmesg so we'll need the dumps to root cause this. If the dumps are too big for Github, OneDrive / Google drive should work. |
Hi, I am also getting random freezes like that. |
@OneBlue finally, attached are the core files. |
@OneBlue here's another core dump, this time it happened faster compared with the previous one. I estimate about ~20 minutes since started WSL & system console. |
We've hit a similar issue here. I can't reliably reproduce it, but I do have a workaround that fixes our specific problem. In our case:
As I said, I can't reliably reproduce this issue, but it seems to happen most often when a file is deleted in WSL (it seems to occur more frequently in the |
There is another way to restore WSL usable.
|
@sypaq-nexton Unortunately, I have the WSL home folder added in "Virus & threat protection" exclusion for many months already, so it's not a solution (for me at least). |
Thanks a lot for the dumps @schiorean. We've published a new version of store wsl, if you can still reproduce the issue with the latest version, can you please share the Windows and Linux dumps of the same repro? That would help us a lot |
@OneBlue |
If you're not enrolled in Windows insider, that makes sense since we haven't published that package everywhere yet. You can install it without an insider account by downloading the package and running something like (elevated PowerShell) :
|
@OneBlue so it happened again with 0.67.6.0. I attached linux core dump and dmesg. |
Actually here's the wslservice.exe dump as well https://drive.google.com/file/d/19nPGc6-NOpv_f0RSp8-5kgRwW1Y-1y5n |
Thanks @schiorean. After looking at all the dumps, I have a good idea of where the issue is, but I'll need a bit more info to root cause it. I built a private version of the package with extra logging: https://1drv.ms/u/s!AiWXuqXSX5K2d45U1MHyOchps0k?e=w8SSjC
Once the package is installed:
This should give us more information to identify what's happening. |
@OneBlue attached are the logs are per your latest instructions (took a 2-3 hours until hang happened). wslservice.exe dump uploaded separately here https://drive.google.com/file/d/19nPGc6-NOpv_f0RSp8-5kgRwW1Y-1y5n/view?usp=sharing |
Thank you @schiorean. With this information, our current theory is that this issue was introduced by the latest Linux kernel upgrade. To validate this, can you please:
(Make sure that the '\' are doubled)
|
@OneBlue sorry but it happened again with the 5.10 kernel as well. Attached is the dmesg, I didn't have the system console started but was able to get it from normal console. And when I dumped dmesg I confirmed the kernel version:
|
I have the same problem as OP. Same usecase (Phpstorm that causes WSL to hang during indexing, or probably, anything that does high IO). It happens multiple times a day, and I can reproduce this quite easily. A faster way to get a fresh WSL env without rebooting (since the The output of
I'll try the "unpublished" package above and retry. |
Unfortunately, this is definitely an issue for me too. I confirmed it on 2 different machines, and it makes WSL totally unusable.
|
I, too, had this issue for some time. I got in the habit of closing all WSL windows at the end of the day, and this seemed to help. But I would still occasionally have freezing issues even after installing the fixed WSL version. So... last week in a terrible and painful mistake, I deleted my WSL virtual disk for the distro I use the most. Since re-creating it, I haven't had this issue at all. Go figure. @XhmikosR, I never had the "totally unusable" experience that you had; it was more of a minor inconvenience. But if it is that bad, you may want to consider redoing your WSL distros. For what it is worth, I moved from Fedora 36 to Fedora 37. Unsure if that is relevant, though. |
The thing is that the issue just started to appear for me a few weeks ago. Before that, everything worked fine. Now, using Docker + VS Code, breaks quite frequently during the day. The only workaround for me is stopping and starting I will try reinstalling Ubuntu, but there are other people having this issue, see also #9114. |
I too have been having issues with this. It always occurs when doing a large c++ cmake build (30mins). WSL freezes. This started happening a couple of months ago and basically makes WSL useless. Seems like compiling in Visual Studio in Windows and compiling in WSL makes it worse, but that may be a coincidence. This happens with multiple fresh Ubuntu installations too. Also get: A reboot is all that works |
I uninstalled any WSL Windows updates, removed my distro, disabled Virtual Machine Platform and WSL features and then installed everything again including the latest WSL from the store. I also gave WSL 6GB of RAM instead of 4GB that I was using in .wslconfig. Now it seems I'm not hitting the issue anymore, but unsure which thing exactly has fixed it. |
I have the same with Happens mostly in Pychar,/Intellij. Sometimes in terminal Considering to stop using wsl in favour of Linux itsef. If it haven't fixed after an year seems Microsoft spoiled technology and doesn't know what to do. |
On Wed, Dec 28, 2022 at 11:37 AM GeksterOne ***@***.***> wrote:
Windows version: 10.0.19045.2364
I also experienced this in the past, now I have Windows version:
10.0.22621.963 which is working properly, can you please try to update and
see if it helps?
… Message ID: ***@***.***>
|
Added this. It helped in case where Pychar worked with files stored in normal file system using python enterpreter from WSL. But didn;t help for Pycharm with projects stored in WSL file system. Product still as raw as meat in my fridge. |
Happens for me, too. WSL freezes completly while consuming 100% CPU.
What only helps for me is to kill WSL in Task-Manager and start everything up again. It's annoying. |
Same problem, same versions for everything. It looks like our problem is being tracked over here |
Windows 11 I get freezes every day but cannot tell what exactly causes them. I work in WSL in VScode, so I catch freezes always there, not in windows apps. |
see #9454 (comment) for the brute force command to shutdown WSL. Before that I always had to reboot |
The problem is that whole Windows11 is frozen and I can't do anything except reboot hardware by holding power button for 10 seconds. |
wsl.exe --shutdown works for me but I am unable to run anything for a long time on this. |
After almost half a year since Wsl stopped working and lack of reaction from Microsoft side I think it time to state that Wsl project is dead. It time to move on towards linux/mac systems for development. We stopped using Windows/wsl in our projects |
Does using Ubuntu on Windows 10 count as this, or did you switch to actual linux machines |
mostly macs.
сб, 25 мар. 2023 г., 18:10 Samuel Degregori ***@***.***>:
… After almost half a year since Wsl stopped working and lack of reaction
from Microsoft side I think it time to state that Wsl project is dead. It
time to move on towards linux/mac systems for development. We stopped using
Windows/wsl in our projects
Does using Ubuntu on Windows 10 count as this, or did you switch to actual
linux machines
—
Reply to this email directly, view it on GitHub
<#8824 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV6SSTEDYFLTW5SEJRBLJG3W54DE7ANCNFSM6AAAAAAQLMBMSA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am the original reporter of this issue and it has been fixed for a while already. WSL is not dead at all, am using it daily at my day job. |
I'm still getting this issue happen to me - I've wiped and reinstalled Windows 3 times, had Dell replace hardware like the battery and hard drive. Issue only happens after I've installed WSL, and then it occurs multiple times a day. |
Hey all, I have had this problem for well over a year and I finally solved it for myself. For me the bug was when WSL generates the
Then removing the bad character fixed it and WSL works as expected. I don't have this issue on my home computer, so part of me wonders if this issue happens only on domain-joined systems when the hostname line includes a domain computer name. I have no evidence to back this up of course, but I'd be curious to hear from anyone else who this helps whether or not the system with the issue was domain-joined. |
This happens to me as well when I have my laptop sleep with an SSH session. I would think that the session would just timeout/die but it hangs. |
After upgrading to https://github.com/microsoft/WSL/releases/tag/2.0.12 the issue disappeared |
try
|
Just updated to wsl 2.0.14. Will see if the issue has been fixed. |
Version
Microsoft Windows [Version 10.0.22000.918]
WSL Version
Kernel Version
5.15.57.1
Distro Version
Ubuntu 22.04
Other Software
PhpStorm 2022.2.1
Repro Steps
Expected Behavior
PhpStorm finishes files indexing and WSL is usable.
Actual Behavior
WSL freezes completely including any
wsl.exe
command, so evenwsl.exe --shutdown
will hang forever. The only way to restart WSL is by doing a computer restart.Diagnostic Logs
Uploading via Feedback Hub.
The text was updated successfully, but these errors were encountered: