Skip to content
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

Everything is going super slow and laggy #215546

Closed
checco296 opened this issue Jun 14, 2024 · 14 comments
Closed

Everything is going super slow and laggy #215546

checco296 opened this issue Jun 14, 2024 · 14 comments
Assignees

Comments

@checco296
Copy link

Type: Performance Issue

since this mornig when i updated vs code, it became super laggy, slow, almost unusable.

VS Code version: Code 1.90.1 (611f9bf, 2024-06-11T21:02:43.666Z)
OS version: Linux x64 6.5.0-35-generic snap
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2699)
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_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 3, 3, 2
Memory (System) 15.50GB (10.37GB free)
Process Argv --force-user-env --no-sandbox --use-gl=angle --use-angle=swiftshader --crash-reporter-id c1eea045-480f-40c3-9a78-7231c6454f3b
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Process Info
CPU %	Mem MB	   PID	Process
    0	   159	 13106	code main
    0	    32	 13108	   zygote
    0	    32	 13109	   zygote
    0	   286	 13179	window [1] (ChatPage.tsx - sportai - Visual Studio Code)
    0	    95	 14422	window [2] (Segnalazione problemi)
    1	   191	 13140	   gpu-process
    0	    64	 13145	   utility-network-service
    0	    95	 13491	shared-process
    0	     0	 14435	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	 14436	       /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    79	 13527	ptyHost
    0	     0	 13861	     /usr/bin/bash --init-file /snap/code/161/usr/share/code/resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
    0	     0	 13873	     /usr/bin/bash --init-file /snap/code/161/usr/share/code/resources/app/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh
    0	   127	 13833	extensionHost [1]
    0	   143	 14163	     electron-nodejs (eslintServer.js )
    0	    95	 14260	     electron-nodejs (main-bundle.js )
    0	    79	 13849	fileWatcher [1]
Workspace Info
|  Window (ChatPage.tsx - sportai - Visual Studio Code)
|    Folder (sportai): 488 files
|      File types: ts(93) tsx(43) js(41) map(37) json(21) ttf(19) wt(18)
|                  svg(11) woff2(11) bin(8)
|      Conf files: package.json(6) tsconfig.json(5) dockerfile(2);
Extensions (9)
Extension Author (truncated) Version
path-intellisense chr 2.9.0
vscode-eslint dba 2.4.4
vscode-html-css ecm 2.0.10
prettier-vscode esb 10.4.0
gitlab-workflow Git 4.15.1
vscode-docker ms- 1.29.1
vscode-language-pack-it MS- 1.89.2024050109
sqlite-viewer qwt 0.5.8
vscode-styled-components sty 1.7.8
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
vscrpc:30673769
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
dsvsc021:30996838
724cj586:31013169
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupytercf:31046870

@LastTalon
Copy link

I'm encountering this issue as well. After a small amount of digging I found that after running snap revert code the issue no longer exists, so it seems that it was introduced in the latest update. Hopefully that can work as a temporary workaround for people.

@jvanatta
Copy link

Same here. v 1.90.1 was lagging, reverting to 1.90.0 fixed. Ubuntu 20.

@noahajohn
Copy link

noahajohn commented Jun 14, 2024

I can also confirm an identical experience for me. I updated yesterday and VS Code became very laggy. I first tried disabling all extensions, but that did not fix it. I found this thread and reverted the snap and normal performance is back. Specs of working snap from Help-> "About":

Version: 1.90.0
Commit: 89de5a8
Date: 2024-06-04T19:43:07.605Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-35-generic snap

@bradfox2
Copy link

Another one here. Reverted to 1.89

VSCode is unusable in remote terminals. Host on 24.04, remotes on 22.04.

@LucasNovaes2016
Copy link

Same issue here (Ubuntu 20.04.6). I reverted VS Code to version 1.90.0 and it seems fine now.

@oxismailxo
Copy link

same problem here
VSCode version: 1.90.1, I reverted to 1.90.0
OS: Ubuntu 24.04 LTS

@Azmisov
Copy link

Azmisov commented Jun 15, 2024

Same problem, Ubuntu 22.04.4.

Just moving the cursor with all extensions disabled:

  • 1.90.1: ~50% CPU usage
  • 1.90.0: ~4% CPU usage

@riccardomel
Copy link

riccardomel commented Jun 15, 2024

Same here after upgrade, using snap on Ubuntu 22.04.4, revert the snap fix the issue for now.

@deepak1556
Copy link
Collaborator

Merging to #212494, please follow the issue for updates. This is a side effect of workaround introduced to address crash on startup, it will be addressed in the next release 1.90.2.

@amirkarimi
Copy link

Also disabling the GPU (code --disable-gpu .) removes the lag for me.

nvidia-smi output:

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.171.04             Driver Version: 535.171.04   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060        Off | 00000000:01:00.0  On |                  N/A |
|  0%   59C    P8              16W / 170W |   2371MiB / 12288MiB |      4%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

@adrienverlhac
Copy link

it's the same for me, just download an older version because the most recent doesn't seems compatible with ubuntu 24.04

@amirkarimi
Copy link

it's the same for me, just download an older version because the most recent doesn't seems compatible with ubuntu 24.04

It got fixed today after updating to the latest code version 1.90.2 (installed using Ubuntu's snap)

@nicolasmol
Copy link

Version : 1.90.2
Validation : 5437499
Date : 2024-06-18T22:33:48.698Z
Electron : 29.4.0
ElectronBuildId : 9728852
Chromium : 122.0.6261.156
Node.js : 20.9.0
V8 : 12.2.281.27-electron.0
Système d’exploitation : Linux x64 6.5.0-41-generic

Super laggy, even for a simple copy-past (a progress circle appears). That wasn't the case before.

@martinkozle
Copy link

Version: 1.90.2 (system setup)
Commit: 5437499
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

On 1.90.2 I am experiencing very high CPU usage from VS Code. With many (sometimes 100+) powershell.exe sub-processes, idk if anyone else is experiencing this and if it is related to this original issue?

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests