microsoft / vscode

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

Code Helper taking 100% cpu usage #165315

Closed vinit-poojary closed 1 year ago

vinit-poojary commented 1 year ago

Type: Performance Issue

Code Helper taking 100% cpu usage

VS Code version: Code 1.72.2 (Universal) (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:16:30.254Z) OS version: Darwin arm64 22.1.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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
webgpu: disabled_off| |Load (avg)|123, 100, 67| |Memory (System)|16.00GB (0.08GB free)| |Process Argv|. --crash-reporter-id 24da34bc-3b95-4bf0-91e1-c19505553a15| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 15 131 60938 code main 0 33 60963 gpu-process 0 16 60966 utility-network-service 0 197 60968 window (_form.html.erb — payreview) 0 115 60971 shared-process 0 16 60973 ptyHost 0 16 60974 fileWatcher 0 0 67381 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 134 82 60972 extensionHost 0 16 61027 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/vinit.poojary/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=60972 0 16 61132 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/vinit.poojary/.vscode/extensions/streetsidesoftware.code-spell-checker-2.10.1/packages/_server/dist/main.js --node-ipc --clientProcessId=60972 0 16 61173 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=60972 0 98 67377 issue-reporter ```
Workspace Info ``` | Window (_form.html.erb — payreview) | Folder (payreview): 16810 files | File types: cache(9885) rb(1173) erb(918) js(706) gz(397) png(238) | jbuilder(210) html(105) jpg(89) css(71) | Conf files: dockerfile(2) package.json(1); ```
Extensions (61) Extension|Author (truncated)|Version ---|---|--- project-manager|ale|12.7.0 blackbox|Bla|0.3.5 vscode-tailwindcss|bra|0.9.1 simple-react-snippets|bur|1.2.7 npm-intellisense|chr|1.4.2 path-intellisense|chr|2.8.1 dart-code|Dar|3.50.0 flutter|Dar|3.50.0 vscode-eslint|dba|2.2.6 javascript-ejs-support|Dig|1.3.1 githistory|don|0.6.19 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|13.0.3 EditorConfig|Edi|0.16.4 vscode-great-icons|emm|2.1.86 vscode-toggle-column-selection|eri|1.0.6 prettier-vscode|esb|9.9.0 git-project-manager|fel|1.8.2 auto-close-tag|for|0.5.14 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 code-runner|for|0.11.8 vscode-drawio|hed|1.6.4 stylelint-plus|hex|0.56.6 headwind|hey|1.7.0 rest-client|hum|0.25.1 vscode-react-typescript|inf|1.3.1 endwise|kai|1.5.1 git-indicators|lam|2.1.2 Runner|mat|0.1.16 git-graph|mhu|1.30.0 vscode-docker|ms-|1.22.2 remote-containers|ms-|0.255.4 color-highlight|nau|2.5.0 tkinter-snippets|Nik|2.0.2 indent-rainbow|ode|8.3.1 paul-typescript-toolkit|pau|0.0.6 vscode-rapidapi-client|Rap|1.7.0 ruby|reb|0.28.1 java|red|1.12.0 LiveServer|rit|5.7.9 code-settings-sync|Sha|3.4.3 vscode-multiclip|sle|0.1.5 guides|spy|0.9.3 code-spell-checker|str|2.10.1 ReactSnippetsStandard|Tim|1.1.0 intellicode-api-usage-examples|Vis|0.2.6 vscodeintellicode|Vis|1.2.29 vscode-java-debug|vsc|0.45.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.4 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.39.1 gitblame|wad|9.0.1 quokka-vscode|Wal|1.0.508 vscode-ruby|win|0.28.0 vscode-import-cost|wix|3.3.0 JavaScriptSnippets|xab|1.8.0 markdown-all-in-one|yzh|3.4.3 vscode-open-in-github|ziy|1.3.6 erb-vscode-snippets|Zne|0.0.4 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 pyindex848:30577860 nodejswelcome1:30587005 fc301958:30595537 2e4cg342:30596373 ```
vscodenpa commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.73.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

JustDenP commented 1 year ago

I had the same problem. Darwin 21.6.0 arm64. Immediately after opening a small typescript project, my MacBook temperature instantly rises to 80 degrees.

There are 2 code helper processes in monitorcontrol, one of which takes 100% of the cpu even after exiting vscode completely.

The problem is solved after disabling the eslint plugin, but it is impossible to work without it

mjbvz commented 1 year ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

vscodenpa commented 1 year 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 1 year 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!

tamuratak commented 1 year ago

Might be duplicate of https://github.com/microsoft/vscode/issues/147707