microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 288 forks source link

VSCode freezing when adding folder to workspace while working on remote Linux machine #10168

Open ravitejapavuluri opened 2 months ago

ravitejapavuluri commented 2 months ago

Type: Performance Issue

I have SSH host configured

  1. When I click at the bottom left side connect to remote host and I can connect to the selected host.
  2. Once connected to the remote host, click add folder to workspace, it freezes and doesn't quit. I need to end task task from task manager.
  3. I sometimes ssh to the same machine with different users and work on the same folder.

VS Code version: Code 1.92.1 (eaa41d57266683296de7d118f574d0c2652e1fc4, 2024-08-07T20:16:39.455Z) OS version: Windows_NT x64 10.0.19045 Modes: Connection to 'SSH: ycvghfd500_int1' could not be established Canceled

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.71GB (14.19GB free)| |Process Argv|--crash-reporter-id 21c459a2-a353-4566-adaf-1f7dd75c49d7| |Screen Reader|no| |VM|0%| Connection to 'SSH: ycvghfd500_int1' could not be established Canceled
Process Info ``` CPU % Mem MB PID Process 1 148 34084 code main 0 204 2168 window [3] (Welcome - Untitled (Workspace) - Visual Studio Code) 0 84 11636 utility-network-service 0 96 17192 fileWatcher [3] 0 100 19160 ptyHost 0 104 20560 window [4] (Issue Reporter) 0 81 31048 crashpad-handler 0 242 34196 gpu-process 0 133 51600 shared-process Connection to 'SSH: pjclx101_int1' could not be established Canceled ```
Workspace Info ``` Connection to 'SSH: ycvghfd500_int1' could not be established Canceled; ```

Extensions: none

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
0ee40948:31013168
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-c:31111717
wkspc-ranged-t:31111713

joshspicer commented 2 months ago

Thank you for taking the time to open an issue. This sounds to be related to the Remote - SSH extension, correct? Could you please also follow the troubleshooting steps outlined here and report back?

I'm a bit confused by how the error message you shared (could not be established Canceled) is related? Could you please share the entire log where you see this message?

TedThemistokleous commented 2 months ago

I ran into this similar issue too after last week's update. Verbatim had to force close windows that were freezing and broken. I just reinstalled using the latest version, issue seems to be messing. Likely something with your update package is broken.

ravitejapavuluri commented 2 months ago

Yes, this is from the latest update. My friend is also facing same issue. After connection to remote SSH, he cannot add folder to workspace. I cannot take the logs, it just freezes and I need to kill from taskmanager.

Could be from the SSH extension but not sure.

jbiams77 commented 2 months ago

This is also happening to me and my team. Since updating to 1.92.2, when I have vscode connected over Remote-SSH extension, when I add a new folder to workspace, my vscode freezes.

watarungurunnn commented 2 months ago

Same here.

Shahid279 commented 2 months ago

Same issue even with reinstall the issues persist, it only happens when adding second folder once the workspace is open with two folder adding third and more folder does not impact.

Temp Workaround:

  1. Open an empty folder and create a new workspace, then add another empty folder, it will hang just kill it from the task manager and reopen it should open your last session and workspace with two empty folders
  2. Now you can add more folders or remove them without any issues, make sure to always keep two empty folders in the workspace
  3. Anytime you open your remote session open that workspace first which has two empty folders and work from there
TedThemistokleous commented 2 months ago

exact same behavior ^ and able to repo this. If it keeps occurring I seem to fix it by just doing another fresh reinstall.

Saved session seems to get around this entirely but still a pain if say, server goes down and have to switch boxes.

joshspicer commented 2 months ago

Related: https://github.com/microsoft/vscode/issues/225487

zhaodiaoer commented 2 months ago

I ran into this issue too, after click "reload anyway" button, the window will not respond to any action, it can only be restored by forcibly exiting and then reopen window. Interestingly, the newly opened window is in line with expectations.

zhaodiaoer commented 1 month ago

some new discoveries: when i open a new window -> connect remote ssh host -> click "Save Workspace As ..." , the window will not respond to any action until connection reconnected, although there are no opened code project.

iwangbowen commented 1 month ago

same here