-
Notifications
You must be signed in to change notification settings - Fork 816
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
The Windows Subsystem for Linux instance has terminated. #7540
Comments
Me and my team have similar issue. Wsl crashes multiple times a day. I need to restart wsl and docker to work again. We are using intellij solutions, Webstorm and Phpstorm. We have standard more wsl and memory.
I tried to increase memory for wsl, it does not resolve our issues. |
or anyone else from team. Can some of you please look into the issue? It's occurring so often and issue is here for over year without any action. Please stop ignoring it. Thank you! |
Hi guys. Sorry this is crashing for you. Do you generally see this with Docker also being deployed? we're trying to find what might be causing this. |
/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! |
@keith-horton @OneBlue Executing second command: Set-ExecutionPolicy Bypass -Scope Process -Force outputs: Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a
policy defined at a more specific scope. Due to the override, your shell will retain its current effective execution
policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information p
lease see "Get-Help Set-ExecutionPolicy".
At line:1 char:1
+ Set-ExecutionPolicy Bypass -Scope Process -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
+ FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand unsure whether it might affect the log output, but I am afraid I won't be able to change that as policies are managed by company. |
WslLogs-2022-11-30_09-58-22.zip
|
Like on purpose, yesterday afternoon I weren't able to catch the crash. Today morning it finally crashed, attaching the logs Est. time of crash 9:03 |
Another crash log retrieved: WslLogs-2022-12-01_09-20-42.zip Est. time of crash 13:03 |
I have since moved to 64GB of ram and don't have problems anymore. 32GB might also work. |
This might sound as a workaround but not a solution. We have 32GB rams, but cannot use all the ram for WSL only. IDEs requires a lot as well for performance, docker too and so... |
Hi guys, any update please? |
Thank you for the logs @Lkopo. It looks like the WSL service (lxssmanager) is either being restarted, or crashing. Can you please follow the '9) Collect WSL logs with Feedback hub With that we should be able to see service crashes |
Hi @OneBlue It seems like my corporate laptop does not allow Feedback Hub. Is there any other way to catch service crashes? |
This is what I see in WinDbg:
Seems it's some buffer overflow issue. |
Thank you @Lkopo, that's very interesting. Can you write a dump file and share it with us (.dump /f) ? |
Oh wait, looking at the stack, I think I know what it is. It's an issue that should be fixed with this update. Let me know if installing the update resolves the issue. |
Thank you, will let you know in next day(s). We expect new updates tomorrow to be available for us. |
Hi @OneBlue, adding the following update. So the suggested update seems to be not automatically available for us as it's a Preview version, but after installing December update https://support.microsoft.com/en-us/topic/december-13-2022-kb5021233-os-builds-19042-2364-19043-2364-19044-2364-and-19045-2364-44e774aa-60c4-4e38-b7e7-c886d210db3b, WSL terminal suggested to update WSL via On the contrary, everytime I start up my computer, I receieve following error message for "RemoteApp" which I have to accept at least 3-4 times to disappear. |
Interesting, that's not expected. @hideyukn88: Do you know what could cause this ? |
@Lkopo, it's most likely your organization deployed some group policy? See microsoft/wslg#841, thanks! |
@hideyukn88 you are right, I have |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it. Thank you! |
Hey I'm facing the same issue |
Version
Microsoft Windows [Version 10.0.19043.1266]
WSL Version
Kernel Version
Distro Version
Ubuntu
Other Software
Docker Desktop (Windows) 3.5.1 (66090)
Visual Studio Code 1.61.0
Repro Steps
This is an intermittent issue that happens to me everyday but under different circumstances. The common denominator seems to be the use of vscode.
While using vscode in the wsl backend, the editor will suddenly disconnect. This is around the time that
Vmmem
has exhausted the 6GB of memory I have given to wsl, even though I can't seem to see what is using the 6GB of ram. In wsl it shows very little usage. In docker desktop I will see 2/3GB if I have a running container. It seems like their is a memory leak, since I will be coding for 2 or 3 hours before the crash but not opening any new processes. Except maybe browser tabs outside of wsl.Once wsl has crashed I can not get back into it or use docker for windows.
but I can shut it down and restart it
Expected Behavior
It would be nice if it gave some info about why it has shutdown so I could fix/prevent it. It would also be nice to have some detailed logs somewhere like in the WSL container or in windows? Maybe the event viewer?
Actual Behavior
wsl crashes without explanation for why/what caused it.
Diagnostic Logs
I will try and provide next time it crashes.
Update
I was working inside a container using the remote-container extension for about an hour and all seemed fine. I then used the workspace search feature in vscode to search for Class I wanted to rename in multiple files. The ram usage for my docker container grew by over 1GB and the 1 or 2GB of free ram I had in WSL using
free -h -t
went from around 1.5Gi available to36Mi
.I had first noticed that the search was taking forever when it's usually instant. Then the vscode window disconnected.
Note: In the search it says 1 result but that is not correct.
The container that vs-code was running then disconnected with exit code
137
which is from OOM kill. I had a second wsl window open runningwatch free -h -t
and it froze.My wsl2 config:
I wonder if making the swap bigger could prevent these crashes. I could also give more memory?
The text was updated successfully, but these errors were encountered: