-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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 2: VSCode keeps crashing with error "WebSocket close with status code 1006" #201612
Comments
Can it be a performance problem of the distro that causes the VS Code server to stall? Too much memory used or the CPU running hot? |
Nope, CPU usage is low, RAM as well. I'm using a Ryzen 7900 with 64 GB of RAM ad it happens even without any heavy process running. |
Is there anything special in the WSL log (Run: Also when the connection disappears, is the remote server still running? In the WSL terminal run |
I'll try when I get home ; in the meantime I'm working with the SSH extension by exposing an SSH server on WSL and connecting to it through VSCode, which works flawlessly. |
Following the instructions from WSL Issue #9360 and Issue #10752 fixed it for me.
|
Didn't know that configuration option existed ; I'll try that, thanks :) |
Hey @aeschli, this issue might need further attention. @ClementNerma, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Note to others: I switched to another solution in the meantime (using SSH connection to WSL 2) and it's been working flawlessly. |
Steps to Reproduce:
I used to have this error from time to time for a long time, but since very recently it's become frequent to the point I can't use VSCode for more than ~5 minutes without it crashing. I don't recall doing anything particular recently to either Windows or WSL.
I have this problem on my laptop too, which has the same Windows and WSL version, same OS etc.
Forcefully restarting VSCode does not solve the problem, only shutting down WSL does, but the problem appears again after a few minutes.
Here is an extract from the error logs:
Here is a more complete screenshot:
Note that clicking on "Open in browser" in the error tooltip the browser opens the
http://127.0.0.1:52599/version
URL which results in a "connection reset" error in Firefox.EDIT: I also tried removing
~/.vscode-server
, but this didn't help.The text was updated successfully, but these errors were encountered: