microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.6k stars 29.03k forks source link

Taking too long to open #208505

Closed Sapienscoding closed 6 months ago

Sapienscoding commented 7 months ago

Type: Performance Issue

I am running VScode on Ubuntu 20.04 LTS. Initially, I never had this issue but for past few weeks whenever I open VScode it takes too long to open and, the screen becomes unresponsive. I have tried the workarounds, mentioned on github regarding the same issue still its not rectified. I ran the code --status command when it opened, and noticed that the vscode window is taking a lot of memory. I took the screenshot of startup performance page on vscode, might be helpful to figure out the cause.

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:14:59.643Z) OS version: Linux x64 5.15.0-101-generic Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|0, 0, 1| |Memory (System)|15.49GB (11.44GB free)| |Process Argv|--unity-launch --crash-reporter-id c61a4341-258c-474b-a68a-ce2062809fc7| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Process Info ``` CPU % Mem MB PID Process 0 190 7844 code main 0 32 7849 zygote 0 127 8954 gpu-process 0 32 7850 zygote 0 0 7852 zygote 0 254 7896 window [1] (Startup Performance - enpm663_ws - Visual Studio Code) 0 95 10581 window [2] (Issue Reporter) 0 63 7886 utility-network-service 0 95 9264 shared-process 0 0 10595 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 10596 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 79 9406 ptyHost 0 0 10102 /usr/bin/bash 0 79 10066 fileWatcher [1] 0 270 10067 extensionHost [1] 0 159 10187 /home/shdh/.vscode/extensions/ms-vscode.cpptools-1.19.9-linux-x64/bin/cpptools 0 63 10209 /usr/share/code/code /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=10067 0 159 10223 electron-nodejs (bundle.js ) 0 63 10420 /usr/share/code/code /usr/share/code/resources/app/extensions/markdown-language-features/server/dist/node/workerMain --node-ipc --clientProcessId=10067 ```
Workspace Info ``` | Window (Startup Performance - enpm663_ws - Visual Studio Code) | Folder (enpm663_ws): 6893 files | File types: hpp(642) h(618) cmake(431) o(430) cpp(338) c(317) make(291) | py(256) log(209) stamp(158) | Conf files: cmake(431) makefile(14) settings.json(1); ```
Extensions (16) Extension|Author (truncated)|Version ---|---|--- pddl|jan|2.27.1 csharp|ms-|2.22.5 vscode-dotnet-runtime|ms-|2.0.2 vscode-ros|ms-|0.9.2 debugpy|ms-|2024.2.0 python|ms-|2024.2.1 vscode-pylance|ms-|2024.3.1 jupyter|ms-|2024.2.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 cmake-tools|ms-|1.17.17 cpptools|ms-|1.19.9 cpptools-extension-pack|ms-|1.3.0 cmake|twx|0.0.17
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30998029 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:30979542 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonaic:30996667 666c4381:30973075 dsvsc021:30996838 ```
jrieken commented 6 months ago

/needsMoreInfo

Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues. Thanks.

vscodenpa commented 6 months ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

vscodenpa commented 6 months ago

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!