vscode: VS Code randomly freezes entire PC for a few seconds multiple times a day
Issue Type: Performance Issue
I’m not sure what the cause is yet or how to reliably recreate it.
Some info:
- I’m running VS Code locally on my Windows 10 machine
but connected to a remote workspace with the remote SSH extension(had this happen for a local workspace so I don’t think the remote extension is at fault here). - I’m working in a large monorepo. I saw this also happen for a much smaller workspace, but currently I think a larger workspace is more likely to cause it.
- This isn’t CPU use - it looks like it’s GPU related. I leave the task manager open all the time to see historical system resource usage and there’s always a huge spike in GPU to 100% and then back down to normal levels (~2%, depending on what I’m doing).
- I’m not doing anything workload intensive, as far as I know. Most of the time I notice this happening when I alt-tab back to VS Code and try to type in the built-in terminal. And the commands are simple, like ‘git status’ or ‘ll’. I’ve also had this happen by simply alt-tabbing back to VS Code and doing nothing else.
- When the freeze happens, all keyboard/mouse input is ignored. The screen doesn’t update. This lasts for a few seconds before everything works again.
- I have a GeForce 1080 Ti graphics card on this machine and updated to the latest graphics drivers just in case.
- It feels like this is a recent regression. Can’t give a date, but feels like it maybe started ~2 months ago.
Version: 1.71.0 (user setup) Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c Date: 2022-09-01T07:36:10.600Z Electron: 19.0.12 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.19044 Sandboxed: No
Also seen on 1.70.2, 1.69.2, 1.69.0, 1.64.2
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-7700K CPU @ 4.20GHz (8 x 4200) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 31.94GB (15.35GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Item | Value |
---|---|
Remote | SSH: coder.asd |
OS | Linux x64 5.4.0-1068-gke |
CPUs | Intel® Xeon® CPU @ 3.10GHz (60 x 3100) |
Memory (System) | 236.15GB (118.82GB free) |
VM | 0% |
Process Info
CPU % Mem MB PID Process
0 111 25100 code main
0 91 5268 extensionHost
0 220 15872 gpu-process
0 92 16696 issue-reporter
0 107 20044 shared-process
0 75 364 ptyHost
0 4 19692 C:\WINDOWS\System32\cmd.exe /c (type "C:\Users\sam\AppData\Local\Temp\vscode-linux-multi-line-command-coder.asd-819971363.sh" | ssh -T -D 55324 "coder.asd" bash) & exit /b 0
0 9 5664 ssh -T -D 55324 "coder.asd" bash
0 46 21108 "C:\\Users\\myusername\\bin\\coder.exe" tunnel asd 12213 stdio
0 8 20112 console-window-host (Windows internal process)
0 69 17100 fileWatcher
0 307 21932 window (fish - myusername (Workspace) [SSH: coder.asd] - Visual Studio Code)
0 47 25536 utility-network-service
Remote: SSH: coder.asd
CPU % Mem MB PID Process
0 0 370447 remote agent
0 0 370485 ptyHost
0 0 389928 /usr/bin/fish
0 0 370511 extensionHost
0 0 370547 /home/myusername/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/node /home/myusername/.vscode-server/extensions/heptio.jsonnet-0.1.0/node_modules/vscode-languageclient/lib/utils/electronForkStart /home/myusername/.vscode-server/extensions/heptio.jsonnet-0.1.0/out/server/server.js --node-ipc --clientProcessId=370511
0 0 373002 /home/myusername/go/bin/gopls -mode=stdio
0 0 373102 /home/myusername/.vscode-server/extensions/hashicorp.terraform-2.23.0-linux-x64/bin/terraform-ls serve
0 0 373140 /home/myusername/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.1123-linux-x64/server/rust-analyzer
0 0 373440 /home/myusername/.vscode-server/extensions/rust-lang.rust-analyzer-0.3.1123-linux-x64/server/rust-analyzer proc-macro
0 0 373144 /home/myusername/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/node /home/myusername/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=370511
0 0 373242 /home/myusername/.vscode-server/bin/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/node /home/myusername/.vscode-server/extensions/ms-python.vscode-pylance-2022.7.20/dist/server.bundle.js --cancellationReceive=file:8dde805317c22445708c9a7ad0b86f86579eb8ea7c --node-ipc --clientProcessId=370511
0 0 370522 fileWatcher
0 0 391533 /bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
0 0 391534 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Workspace Info
| Remote: SSH: coder.asd;
Extensions (24)
Extension | Author (truncated) | Version |
---|---|---|
Nix | bbe | 1.0.1 |
postcss | css | 1.0.9 |
jupyter-keymap | ms- | 1.0.0 |
remote-ssh | ms- | 0.82.1 |
remote-ssh-edit | ms- | 0.80.0 |
remote-wsl | ms- | 0.66.3 |
vscode-bazel | Baz | 0.5.0 |
vscode-css-modules | cli | 0.4.2 |
vscode-eslint | dba | 2.2.6 |
vscode-deno | den | 3.13.0 |
gitlens | eam | 12.1.1 |
EditorConfig | Edi | 0.16.4 |
prettier-vscode | esb | 9.5.0 |
go | gol | 0.34.1 |
terraform | has | 2.23.0 |
jsonnet | hep | 0.1.0 |
elixir-ls | Jak | 0.10.0 |
python | ms- | 2022.10.0 |
vscode-pylance | ms- | 2022.7.20 |
jupyter | ms- | 2022.6.1001902341 |
jupyter-keymap | ms- | 1.0.0 |
jupyter-renderers | ms- | 1.0.8 |
rust-analyzer | rus | 0.3.1123 |
language-stylus | sys | 1.16.0 |
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 23 (3 by maintainers)
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!