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

High cpu usage from unknown extension (likely NOT json) #232699

Closed
ddup93 opened this issue Oct 31, 2024 · 93 comments · Fixed by #233827
Closed

High cpu usage from unknown extension (likely NOT json) #232699

ddup93 opened this issue Oct 31, 2024 · 93 comments · Fixed by #233827
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release extension-host Extension host issues freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues log VS Code log issues verified Verification succeeded

Comments

@ddup93
Copy link

ddup93 commented Oct 31, 2024

Type: Performance Issue

high cpu usage

VS Code version: Code 1.95.0 (912bb68, 2024-10-28T20:16:24.561Z)
OS version: Darwin arm64 24.1.0
Modes:

System Info
Item Value
CPUs Apple M1 (8 x 2400)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 17, 12, 7
Memory (System) 16.00GB (0.17GB free)
Process Argv
Screen Reader yes
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
   17	   213	 44586	code main
    2	    66	 44588	   gpu-process
    0	    33	 44589	   utility-network-service
    2	    82	 44624	shared-process
    0	     0	 47768	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
   94	    66	 45279	extensionHost [1]
    0	    33	 45300	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=45279
   96	    66	 45395	extensionHost [1]
    0	    33	 45413	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=45395
   96	    66	 45643	extensionHost [2]
    0	    33	 45665	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=45643
    0	    49	 45673	ptyHost
   96	    66	 45681	extensionHost [2]
    0	     0	 45690	     <defunct>
    0	     0	 45691	     <defunct>
    0	    33	 45693	     electron-nodejs (server.js )
    0	    33	 45714	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css-language-features/server/dist/node/cssServerMain --node-ipc --clientProcessId=45681
    0	    33	 45824	     electron-nodejs (eslintServer.js )
    0	    33	 45867	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=45681
   97	    66	 46659	extensionHost [2]
    0	    33	 46664	     electron-nodejs (server.js )
    0	    33	 46665	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css-language-features/server/dist/node/cssServerMain --node-ipc --clientProcessId=46659
    0	    33	 46667	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=46659
    0	    33	 46730	     electron-nodejs (eslintServer.js )
    0	     0	 46734	     <defunct>
    0	     0	 46735	     <defunct>
   96	    66	 46914	extensionHost [2]
    0	     0	 46919	     <defunct>
    0	     0	 46920	     <defunct>
    0	    33	 46922	     electron-nodejs (server.js )
    0	    33	 46940	     electron-nodejs (eslintServer.js )
    0	    33	 46947	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=46914
   20	   344	 47718	window [4] (Visual Studio Code)
    0	    49	 47719	fileWatcher [4]
    0	   229	 47720	extensionHost [4]
    0	    49	 47728	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=47720
Workspace Info
;
Extensions (13)
Extension Author (truncated) Version
project-manager ale 12.8.0
codewhisperer-for-command-line-companion ama 1.4.5
gitlens eam 15.6.2
copilot Git 1.243.0
copilot-chat Git 0.22.0
todo-tree Gru 0.0.226
material-color guo 1.4.3
vscode-filesize mkx 3.1.0
color-highlight nau 2.8.0
psi-header psi 1.23.1
partial-diff ryu 1.4.3
vscode-javascript-booster sbu 14.0.1
pretty-ts-errors Yoa 0.6.0
@servusdei2018

This comment has been minimized.

@ddup93
Copy link
Author

ddup93 commented Oct 31, 2024

Looks like the JSON Language Features extension is causing your issues; are you working with particularly large JSON files?

To temporarily mitigate this, you may disable the extension like so:

  1. Click on the Extensions icon in the Activity Bar on the side (or press ⌘ + Shift + X on macOS, Ctrl + Shift + X on Windows/Linux).
  2. In the search bar, enter @id:vscode.json-language-features.
  3. Select JSON Language Features from the results.
  4. Click the Disable button to the left of the gear icon.

Yes, I disabled this extension, but there is not any help.

@gjsjohnmurray
Copy link
Contributor

Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

@ddup93
Copy link
Author

ddup93 commented Oct 31, 2024

Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions.

The problem is still having and be worse.Image
Image

@ddup93
Copy link
Author

ddup93 commented Oct 31, 2024

It work well after downgrade to 1.94.2

@UsamaKarim
Copy link

UsamaKarim commented Oct 31, 2024

Same issue on M1 Mac.
The issue become worse on every restart of vscode.
Disabling @id:vscode.json-language-features extension do not resolve the issue.
I tried Bisect but the issue still exist.
I had to force quit vscode to get rid of high usage.

@jenky
Copy link

jenky commented Oct 31, 2024

Same issue on M1 Mac, fan is screaming. Bisect doesn't detect any issues.

Image

Image

Extension Host log
2024-11-01 00:02:50.885 [info] Eager extensions activated
2024-11-01 00:03:01.608 [info] Extension host terminating: renderer closed the MessagePort
2024-11-01 00:03:01.635 [error] An error occurred when disposing the subscriptions for extension 'bmewburn.vscode-intelephense-client':
2024-11-01 00:03:01.636 [error] TypeError: Cannot read private member #e from an object whose class did not declare it
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:20066)
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
2024-11-01 00:03:01.648 [error] An error occurred when disposing the subscriptions for extension 'MehediDracula.php-namespace-resolver':
2024-11-01 00:03:01.648 [error] TypeError: r.dispose is not a function
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
2024-11-01 00:03:01.672 [error] TypeError: Cannot read properties of undefined (reading 'trackEvent')
    at jb (/Users/lynh/.vscode/extensions/devsense.composer-php-vscode-1.52.16273/out/src/extension.js:43:5828)
    at Object.<anonymous> (/Users/lynh/.vscode/extensions/devsense.composer-php-vscode-1.52.16273/out/src/extension.js:43:6024)
    at Generator.next (<anonymous>)
    at /Users/lynh/.vscode/extensions/devsense.composer-php-vscode-1.52.16273/out/src/extension.js:1:832
    at new Promise (<anonymous>)
    at b (/Users/lynh/.vscode/extensions/devsense.composer-php-vscode-1.52.16273/out/src/extension.js:1:652)
    at Object.v1 (/Users/lynh/.vscode/extensions/devsense.composer-php-vscode-1.52.16273/out/src/extension.js:43:6000)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11724)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
2024-11-01 00:03:01.685 [error] Canceled: Canceled
    at new tT (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:108738)
    at py.U (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:113348)
    at Proxy.s.<computed>.n.charCodeAt.s.<computed> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:110842)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32313)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at r.registerCommand.description (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31147)
    at Y0.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32833)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31910)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at Object.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:37246)
    at mh.O [as value] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:961845)
    at D.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:746)
    at D.C (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:816)
    at D.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:1033)
    at Object.p [as dispose] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:983333)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:989455
    at Array.forEach (<anonymous>)
    at b.dispose (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:989441)
    at V1.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:19994)
    at V1.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:20090)
    at V1.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:964255)
    at V1.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:20090)
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949) setContext undefined
2024-11-01 00:03:01.692 [error] Canceled: Canceled
    at new tT (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:108738)
    at py.U (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:113348)
    at Proxy.s.<computed>.n.charCodeAt.s.<computed> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:110842)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32313)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at r.registerCommand.description (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31147)
    at Y0.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32833)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31910)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at Object.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:37246)
    at a.VscodeDevShareProvider.set hasGitHubRepositories [as hasGitHubRepositories] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github/dist/extension.js:2:328633)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github/dist/extension.js:2:329592
    at mh.value (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:1073936)
    at D.B (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:746)
    at D.C (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:816)
    at D.fire (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:1033)
    at Object.p [as dispose] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:983333)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:989455
    at Array.forEach (<anonymous>)
    at b.dispose (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:989441)
    at V1.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:19994)
    at V1.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:20090)
    at V1.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/main.js:2:964255)
    at V1.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:20090)
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949) setContext undefined
2024-11-01 00:03:01.699 [error] Canceled: Canceled
    at new tT (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:108738)
    at py.U (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:113348)
    at Proxy.s.<computed>.n.charCodeAt.s.<computed> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:110842)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32313)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at r.registerCommand.description (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31147)
    at Y0.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32833)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31910)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at Object.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:37246)
    at f (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1492:13980)
    at c (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1492:18539)
    at ActionRunners._updateContextKeys (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:65658)
    at s (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:64102)
    at RegisteredActionRunner.unregister (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:64245)
    at RegisteredActionRunner.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:62899)
    at ActionRunners.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:63685)
    at /Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1448:19218
    at Array.forEach (<anonymous>)
    at Object.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1448:19200)
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949) setContext undefined
2024-11-01 00:03:01.700 [error] Canceled: Canceled
    at new tT (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:108738)
    at py.U (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:113348)
    at Proxy.s.<computed>.n.charCodeAt.s.<computed> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:110842)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32313)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at r.registerCommand.description (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31147)
    at Y0.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32833)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31910)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at Object.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:37246)
    at f (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1492:13980)
    at c (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1492:18539)
    at ActionRunners._updateContextKeys (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:65658)
    at s (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:64102)
    at RegisteredActionRunner.unregister (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:64245)
    at RegisteredActionRunner.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:62899)
    at ActionRunners.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:63685)
    at /Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1448:19218
    at Array.forEach (<anonymous>)
    at Object.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1448:19200)
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949) setContext undefined
2024-11-01 00:03:01.700 [error] Canceled: Canceled
    at new tT (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:108738)
    at py.U (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:113348)
    at Proxy.s.<computed>.n.charCodeAt.s.<computed> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:31:110842)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32313)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at r.registerCommand.description (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31147)
    at Y0.h (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32833)
    at Y0.g (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31910)
    at Y0.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:31817)
    at Object.executeCommand (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:37246)
    at f (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1492:13980)
    at c (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1492:18539)
    at ActionRunners._updateContextKeys (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:65658)
    at s (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:64102)
    at RegisteredActionRunner.unregister (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:64245)
    at RegisteredActionRunner.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:62899)
    at ActionRunners.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1107:63685)
    at /Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1448:19218
    at Array.forEach (<anonymous>)
    at Object.dispose (/Users/lynh/.vscode/extensions/eamodio.gitlens-15.6.2/dist/gitlens.js:1448:19200)
    at ci (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:699)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:14992
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:24:1009
    at Object.dispose (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:2146)
    at z_.eb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:11919)
    at file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9874
    at Array.map (<anonymous>)
    at z_.$ (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:9862)
    at z_.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:118:10105)
    at EC.terminate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:1424)
    at Zi (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:15063)
    at MessagePortMain.<anonymous> (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:11611)
    at MessagePortMain.emit (node:events:519:28)
    at Object.MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949) setContext undefined

Edit: Reverted to 1.94.2. No issue so far. Extension Host doesn't show any error messages

@mjbvz
Copy link
Collaborator

mjbvz commented Oct 31, 2024

@ddup93 Does disabling all extensions and restarting VS Code fix the issue for you?

@mjbvz mjbvz added info-needed Issue requires more information from poster and removed triage-needed labels Oct 31, 2024
@ddup93
Copy link
Author

ddup93 commented Nov 1, 2024

@mjbvz

VSCode version 1.95.1

Disable the extensions one by one and reload the vscode every time,and the result is not well.Image

@muuvmuuv
Copy link
Contributor

muuvmuuv commented Nov 1, 2024

I have a guess that this is caused when different Profiles with the same Extensions are open and these using LSP through ipc-protocol. I disabled all these extensions and everything runs smoothly again.

  • Code Spell Checker
  • built-in JSON Language Features

@howiepu
Copy link

howiepu commented Nov 1, 2024

I have a guess that this is caused when different Profiles with the same Extensions are open and these using LSP through ipc-protocol. I disabled all these extensions and everything runs smoothly again.

  • Code Spell Checker
  • built-in JSON Language Features

Image

I tried it and it didn't solve the problem; this issue has been bothering me for two days now; I am now using the cursor exclusively.

@ddup93 ddup93 mentioned this issue Nov 1, 2024
@chrmarti
Copy link
Collaborator

chrmarti commented Nov 1, 2024

@jrieken
Copy link
Member

jrieken commented Nov 1, 2024

@ddup93 and everyone, please do the following (assuming the EH process "Code Helper" consumes much CPU):

  • F1 > Show Running Extensions
  • Select "Start Extension Host Profiling"
    • Note that starting to profile might require a restart of VS Code
  • Wait for a couple of seconds
  • Stop profiling, save to disk and share the profile here
Screen.Recording.2024-11-01.at.11.51.25.mov

@ddup93
Copy link
Author

ddup93 commented Nov 1, 2024

@jrieken
Copy link
Member

jrieken commented Nov 1, 2024

@ddup93 Are you sure the extension host was running at high cpu during that? The profile shows just idle which suggests not, but there might be a problem outside of what we can capture with a CPU profile

Image

@ddup93
Copy link
Author

ddup93 commented Nov 1, 2024

@ddup93 Are you sure the extension host was running at high cpu during that? The profile shows just idle which suggests not, but there might be a problem outside of what we can capture with a CPU profile

Image

sure. code helper (plugin) cpu is 96%

@jrieken
Copy link
Member

jrieken commented Nov 1, 2024

@deepak1556 can you help? this seems to be "outside of v8"

@GZTimeWalker

This comment has been minimized.

@UsamaKarim
Copy link

For me,
The issue doesn't happen at first start of Vscode, but If for some reason I have to restart vscode (due to installing/enabling/disabling extension) , the issue exploded.

CPU-20241101T151440.833Z.cpuprofile.txt

@muuvmuuv
Copy link
Contributor

muuvmuuv commented Nov 1, 2024

You have to look in the process manager for these looking processes, hover over them, get the extension name and disable all on your side that are starting with /Application...
Image
That is what I did and now it is fine

@GZTimeWalker
Copy link

GZTimeWalker commented Nov 1, 2024

You have to look in the process manager for these looking processes, hover over them, get the extension name and disable all on your side that are starting with /Application... Image That is what I did and now it is fine

Okay, Let me try, here's my extensions load when I disabled all extensions...

  • auto-rename-tag (Verified irrelevant)
  • vscode-postcss (Verified irrelevant)
  • vscode-eslint (Verified irrelevant)
  • json-language-features

So when I disabled the first three extensions, I will still got 100% cpu for the extensionHost:

CPU %	Mem MB	   PID	Process
    0	   229	 64540	code main
    0	    98	 64543	   gpu-process
    0	    33	 64544	   utility-network-service
    0	   524	 64546	window [1] (Tmp)
    5	   197	 64569	shared-process
    0	    66	 64849	ptyHost
  100	   557	 66342	extensionHost [1]
    0	    66	 66343	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=66342
    0	    66	 66477	fileWatcher [1]
    0	    98	 66478	extensionHost [1]

Workspace Stats:
|  Window (Tmp)
|    Folder (Tmp): 10 files
|      File types: txt(2) DS_Store(1) jpg(1) js(1) jpeg(1)
|      Conf files:

@muuvmuuv
Copy link
Contributor

muuvmuuv commented Nov 1, 2024

Disabld json lang features you wont need them actually

@deepak1556
Copy link
Collaborator

Can users confirm if the issue is addressed with latest insiders https://code.visualstudio.com/insiders, the fix will also be available with 1.95.3 release later this week.

@crizant
Copy link

crizant commented Nov 14, 2024

Can users confirm if the issue is addressed with latest insiders https://code.visualstudio.com/insiders, the fix will also be available with 1.95.3 release later this week.

Just tried the insider version, looking good 👍

@muuvmuuv
Copy link
Contributor

Insiders working good. It needs some time but it kills the old processes after some time.

@IFD3
Copy link

IFD3 commented Nov 14, 2024

For me the old processes never kill, after some time i have 8 and my fans spinning crazy
If I kill the subprocesses >12% manually i can keep using vsccode, nothing crashes.
But pi-hole tells me everytime a new process spawns:
data-ai.microsoft.com was blocked.

Which is even more awefull because i never used any AI integration and never will be.

I didnt try the insider build yet but checking again when the update hits.

sandy081 added a commit that referenced this issue Nov 14, 2024
sandy081 added a commit that referenced this issue Nov 14, 2024
* proper fix for #232699

* fix copy paste
@tryb3l
Copy link

tryb3l commented Nov 15, 2024

Hey, @deepak1556 after the upgrade to 1.95.3 same issue is still appear on my intel based machine. I tried 1.96 and it works fine, no issues.

Version: 1.95.3 (Universal)
Commit: f1a4fb1
Date: 2024-11-13T14:50:04.152Z (1 day ago)
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin x64 21.6.0

CPU-20241114T233935.450Z.cpuprofile.txt

@ddup93
Copy link
Author

ddup93 commented Nov 15, 2024

1.95.3 work well

@deepak1556
Copy link
Collaborator

@tryb3l if you can provide a repro that would help, maybe #233827 addressed it for 1.96

@jon-nfc
Copy link

jon-nfc commented Nov 17, 2024

I too have still got this issue post upgrading to 1.95.3.

@Artofaj
Copy link

Artofaj commented Nov 20, 2024

My intel machine still has the issue on 1.95.3 as well. Did the fix find its way into the stable branch yet @deepak1556 or is it still pending?

@deepak1556
Copy link
Collaborator

@Artofaj yes a targeted fix is in 1.95.3. Can you check if the issue is present with insiders as well https://code.visualstudio.com/insiders

@spacecat
Copy link

spacecat commented Nov 20, 2024

I posted a comment in this issue (apparently it is a dupe):

microsoft/vscode-eslint#1948

After reading this thread that you're currently reading, it seems some are still experiencing this issue even in the latest insider build? If this is the case why has this issue been closed? Shouldn't more people confirm it is working first before merging and closing?

@deepak1556
Copy link
Collaborator

@spacecat the fix we added in 1.95.3 covered the scenario from the filesize extension, it could be possible we missed other cases. However, we made a more generic fix in 1.96 via #233827. I don't see any thread mentioning the issue with latest 1.96 insiders. If you are able to repro in this version, please share the cpu profile and activity monitor sample.

@spacecat
Copy link

@deepak1556 thanks for the quick reply. I will keep my eyes open and let you know (with a cpu profile (if it's not too time consuming! 😁)) if I see the high CPU usage again.

@unional
Copy link

unional commented Nov 21, 2024

In my case, it's the file watcher under code main taking 100% CPU

Image

@unional
Copy link

unional commented Nov 22, 2024

Just observed this when I amend commit. Maybe related:

2024-11-21 17:38:30.452 [info] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [26ms]
2024-11-21 17:38:30.504 [info] > git status -z -uall [81ms]
2024-11-21 17:38:46.649 [info] > git config --local branch.hover.merge [20ms]
2024-11-21 17:38:47.462 [info] > git -c user.useConfigOnly=true commit --quiet --amend [313ms]
2024-11-21 17:38:47.462 [info] Error: connect ENOENT /var/folders/lt/s79dbyyn5qngdf10r5jsx4k00000gp/T/vscode-git-9d7e8c4b06.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1607:16) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'connect',
  address: '/var/folders/lt/s79dbyyn5qngdf10r5jsx4k00000gp/T/vscode-git-9d7e8c4b06.sock'
}
error: There was a problem with the editor '"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.

@tryb3l
Copy link

tryb3l commented Nov 25, 2024

Hey, @deepak1556 after the upgrade to 1.95.3 same issue is still appear on my intel based machine. I tried 1.96 and it works fine, no issues.

Version: 1.95.3 (Universal) Commit: f1a4fb1 Date: 2024-11-13T14:50:04.152Z (1 day ago) Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Darwin x64 21.6.0

CPU-20241114T233935.450Z.cpuprofile.txt

Hey @deepak1556 I tested how fix works in 1.96 and in my case issue still appears in Version: 1.96.0-insider
Commit: 6864e0b
Date: 2024-11-25T05:09:19.874Z (12 hrs ago). when I open VSCode -> open copilot chat. After that app inform that is starts project analyzers as shown on attached screenshots, and after couple of mins it pops up message "The JS/TS language service crashed."
Image
Image
Image

@lantianhaijiao
Copy link

lantianhaijiao commented Nov 26, 2024

VSCode's file handle usage is very high, which will cause the Mac to not work properly
version: 1.95.3
859 com.apple
1334 \xe6\x9c
2605 Google
82780 Code\x20H

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release extension-host Extension host issues freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues log VS Code log issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.