microsoft / vscode

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

Code Helper is spiking to 100% CPU usage #17740

Closed SamVerschueren closed 7 years ago

SamVerschueren commented 7 years ago
screen shot 2016-12-22 at 17 20 01

This happened a couple of times today. I always kill them and restart VS Code. After a while they are coming back.

Couldn't find an issue yet but noticed on twitter that some people experience the same issue.

roblourens commented 7 years ago

Can you show the output of this command:

ps -eo pcpu,user,pid,command | grep Code

so I can see which helper processes are running away?

SamVerschueren commented 7 years ago

I will let you know more tomorrow when it happens again.

stormwarning commented 7 years ago

Having the same issue. Here's the ps output:

  0.0 root              4807 /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/com.apple.CodeSigningHelper.xpc/Contents/MacOS/com.apple.CodeSigningHelper
  0.0 jeffnelson       75694 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/jeffnelson/.vscode/extensions/glen-84.sass-lint-0.0.3/node_modules/vscod
e-languageclient/lib/utils/electronForkStart /Users/jeffnelson/.vscode/extensions/glen-84.sass-lint-0.0.3/server/server.js --node-ipc
  0.1 jeffnelson       83892 /Applications/Visual Studio Code.app/Contents/MacOS/Electron
  0.0 jeffnelson       83893 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=gpu-process --channel=83892.0.1160356981 --mojo-application-channel-toke
n=C6E671C909D1B7AC8304E37F8774356C --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=18,20,29,40,48,51,52,56,58,66,67,71,73,75 --gpu-vendor-id=0x8086 --gpu-device-id=0x0a2e --gpu-driver-ven
dor --gpu-driver-version --gpu-driver-date --gpu-active-vendor-id=0x8086 --gpu-active-device-id=0x0a2e
  0.0 jeffnelson       84128 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --typ
e=SharedProcess
  0.0 jeffnelson       84137 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/j0/k90357491ldb2scc6pb644880000gn/T/VSCode
 Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=67
  0.1 jeffnelson       87515 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=771D0B3F5B165158CBA5D40235
E4149D --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=2 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --conte
nt-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,340
37 --mojo-channel-token=52BE8ED36ED47BAC8B10D133E17D5962 --mojo-application-channel-token=771D0B3F5B165158CBA5D40235E4149D --channel=83892.9.702690021
  0.0 jeffnelson       87517 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --typ
e=extensionHost
  0.0 jeffnelson       87518 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --typ
e=watcherService
  0.0 jeffnelson       87521 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/
local/bin/git /Users/jeffnelson/Sites/_lift/makesomething utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.6.1
  0.0 jeffnelson       87655 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --typ
e=searchService
  0.0 jeffnelson       87660 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css/node
_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/css/server/out/cssServerMain.js --node-ipc
 82.8 jeffnelson       87661 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/jeffnelson/.vscode/extensions/glen-84.sass-lint-0.0.3/node_modules/vscod
e-languageclient/lib/utils/electronForkStart /Users/jeffnelson/.vscode/extensions/glen-84.sass-lint-0.0.3/server/server.js --node-ipc
  0.0 jeffnelson       87805 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --nolazy --debug=6004 /Applications/Visual Studio Code.app/Contents/Resources/a
pp/extensions/html/node_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/html/server/out/htmlServerMain.js --node-ipc
  0.0 jeffnelson       93856 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/j0/k90357491ldb2scc6pb644880000gn/T/VSCode
 Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=67
  1.5 jeffnelson       88320 grep Code
shanalikhan commented 7 years ago

Yes facing such problem in Windows also. Even for large JSON or any files having lines about 242846 Editor becomes very very slow and function performs after some seconds. Opened issue https://github.com/Microsoft/vscode/issues/17731

chrmarti commented 7 years ago

@stormwarning In your case Sass Lint's server is using a lot of CPU cycles. Could you uninstall this extension and see if that solves the issue?

roblourens commented 7 years ago

@stormwarning In your case it looks like a process belonging to the sass-lint extension is busy. You may want to file an issue on them. Probably not the case for everyone.

When there are multiple equally busy processes, I'm worried that they are our search worker processes, since we now run search in multiple processes.

stormwarning commented 7 years ago

Thanks for the help—disabling sass-lint does seem to have solved my particular issue. I'll file an issue with the extension. 👍

Julien-Mialon commented 7 years ago

Hello @roblourens

Having the same kind of issue with a csharp file (around 450 lines, ~20Ko). Also running on mac os x, last version of vscode. Here is the result of the command ps -eo pcpu,user,pid,command | grep Code

  0,0 Julien            4243 /Applications/Visual Studio Code.app/Contents/MacOS/Electron SqlHelper.cs
  0,0 Julien            4258 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=gpu-process --channel=4243.0.861992533 --mojo-application-channel-token=62C616DCACE419AF404BE513C7074344 --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=18,20,29,40,48,51,52,56,58,66,67,71,73,75 --gpu-vendor-id=0x8086 --gpu-device-id=0x162b --gpu-driver-vendor --gpu-driver-version --gpu-driver-date --gpu-active-vendor-id=0x8086 --gpu-active-device-id=0x162b
  0,0 Julien            4259 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=SharedProcess
  0,0 Julien            4266 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/mz/kf6qvwgx01z1hs_wv475yys40000gn/T/VSCode Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=54
 98,2 Julien            4431 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=11E618429958FC7CBD3FAF0EA285298D --lang=fr --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=2 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=0BF3C4CBF1CC9423B442D02675F211C1 --mojo-application-channel-token=11E618429958FC7CBD3FAF0EA285298D --channel=4243.2.1581264879
  0,0 Julien            4432 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0,0 Julien            4433 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0,0 Julien            4436 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/local/bin/git /Users/Julien/Documents/Source/CarAngel/Api/CarAngel.Api/Helpers utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.9.0
  0,0 Julien            4486 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=searchService
  0,0 Julien            4586 grep Code
SamVerschueren commented 7 years ago

It looked like it started happening after running npm install in the built-in terminal. Not sure though, could've happened because of something else.

  0.0 root               306 /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/com.apple.CodeSigningHelper.xpc/Contents/MacOS/com.apple.CodeSigningHelper
  0.0 sam               1066 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/tmp/VSCode Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=63
  0.0 sam              23961 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/d7/p5p99mzn4yn6nwnxk22dmrqh0000gn/T/VSCode Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=53
100.0 sam              25412 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/server/server.js --node-ipc
  2.4 sam              30874 /Applications/Visual Studio Code.app/Contents/MacOS/Electron
  0.0 sam              30875 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=gpu-process --channel=30874.0.2069405176 --mojo-application-channel-token=D7B09869FC907D5B693FFEEA66749E99 --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=18,20,29,40,48,51,52,56,58,66,67,71,73,75 --gpu-vendor-id=0x8086 --gpu-device-id=0x0d26 --gpu-driver-vendor --gpu-driver-version --gpu-driver-date --gpu-active-vendor-id=0x8086 --gpu-active-device-id=0x0d26
  0.0 sam              31091 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=SharedProcess
  0.0 sam              31100 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/d7/p5p99mzn4yn6nwnxk22dmrqh0000gn/T/VSCode Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=58
  0.1 sam              32446 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=D7ACD73629934234BBB269C728884C19 --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=1033129EB6078CD8016022EA165D39A6 --mojo-application-channel-token=D7ACD73629934234BBB269C728884C19 --channel=30874.5.357569244
  0.0 sam              32447 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0.0 sam              32448 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper ./terminalProcess
  0.0 sam              32513 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0.0 sam              32647 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Users/sam/Projects/pridiktiv/micro/syncers/geracc-lib utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.8.4 (Apple Git-73)
  0.0 sam              32698 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/server/server.js --node-ipc
  0.0 sam              32699 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
  0.0 sam              32702 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/sam/Library/Application Support/Microsoft/TypeScript --enableTelemetry
  0.1 sam              36198 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=B453D5D4B7C4380AB69B6B523494A8FC --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=D5096BA464ABE5A54D6B25D61247CE0B --mojo-application-channel-token=B453D5D4B7C4380AB69B6B523494A8FC --channel=30874.7.89291054
  0.0 sam              36199 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0.0 sam              36200 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper ./terminalProcess
  0.0 sam              36231 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0.0 sam              36290 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Users/sam/Projects/pridiktiv/relay-eb utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.8.4 (Apple Git-73)
  0.0 sam              36458 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json/node_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json/server/out/jsonServerMain.js --node-ipc
  0.0 sam              36472 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/server/server.js --node-ipc
  0.0 sam              36473 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/eg2.tslint-0.7.1/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/eg2.tslint-0.7.1/server/server.js --node-ipc
  0.0 sam              36474 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
  0.0 sam              36476 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/sam/Library/Application Support/Microsoft/TypeScript --enableTelemetry
  0.1 sam              37105 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=B20B16497D62821042A8B0735432D622 --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=D9B480E19DC6715D68A74D8F52B0DDE1 --mojo-application-channel-token=B20B16497D62821042A8B0735432D622 --channel=30874.11.1823309001
  0.0 sam              37106 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0.0 sam              37107 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0.0 sam              37111 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Users/sam/Projects/playground/relay-test-got utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.8.4 (Apple Git-73)
  0.0 sam              37119 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper ./terminalProcess
  0.0 sam              37350 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/server/server.js --node-ipc
  0.0 sam              37481 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
  0.0 sam              37482 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/sam/Library/Application Support/Microsoft/TypeScript --enableTelemetry
  0.1 sam              39637 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=3E9C934243664F3754CB1DFB74A3B026 --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=BBB06B7136A5E0AD1B77A2B30F86EB08 --mojo-application-channel-token=3E9C934243664F3754CB1DFB74A3B026 --channel=30874.12.1774011271
  0.0 sam              39638 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0.0 sam              39639 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0.0 sam              39643 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Users/sam/Projects/pridiktiv/micro/syncers/sync-patient utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.8.4 (Apple Git-73)
  0.0 sam              39666 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
  0.0 sam              39667 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/server/server.js --node-ipc
  0.0 sam              39670 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/sam/Library/Application Support/Microsoft/TypeScript --enableTelemetry
  0.0 sam              39723 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper ./terminalProcess
  0.0 sam              40326 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/Google.ng-template-0.0.10/server/server.js --node-ipc
  0.0 sam              41755 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=36EC79D0E636392CBEC0EEB34824B9F5 --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=A727A2AADB5395CA61175E3F7DED0F4D --mojo-application-channel-token=36EC79D0E636392CBEC0EEB34824B9F5 --channel=30874.15.1272910025
  0.0 sam              41756 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0.0 sam              41757 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0.0 sam              41761 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Users/sam/Projects/pridiktiv/micro/user utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.8.4 (Apple Git-73)
  0.0 sam              41783 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
  0.0 sam              41785 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/server/server.js --node-ipc
  0.0 sam              41788 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/sam/Library/Application Support/Microsoft/TypeScript --enableTelemetry
  0.1 sam              41827 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --no-sandbox --primordial-pipe-token=89CA375F76F228D695C78D389E7FA7A5 --lang=en-GB --node-integration=true --background-color=#171717 --enable-pinch --num-raster-threads=4 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=793B78FA9C5EDEA692AC8E80FE4EEA1D --mojo-application-channel-token=89CA375F76F228D695C78D389E7FA7A5 --channel=30874.16.2023094122
  0.0 sam              41828 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost
  0.0 sam              41829 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper ./terminalProcess
  0.0 sam              41884 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService
  0.0 sam              42028 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap /usr/bin/git /Users/sam/Projects/pridiktiv/micro/patientmedinfo utf8 /Applications/Visual Studio Code.app/Contents/MacOS/Electron 2.8.4 (Apple Git-73)
  0.0 sam              42086 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/sam/.vscode/extensions/samverschueren.linter-xo-2.1.1/server/server.js --node-ipc
  0.0 sam              42087 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
  0.0 sam              42090 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/sam/Library/Application Support/Microsoft/TypeScript --enableTelemetry
  0.0 sam              42261 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json/node_modules/vscode-languageclient/lib/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json/server/out/jsonServerMain.js --node-ipc
  0.0 sam              44268 grep Code
roblourens commented 7 years ago

@Julien-Mialon Yours is just the main vscode renderer process. Is there something in particular you did to trigger it?

@SamVerschueren Yours looks like a language server from the extension Google.ng-template, can you file an issue on them?

Julien-Mialon commented 7 years ago

@roblourens Just opening a file (a file in particular, I tried 4 or 5 times and every time vscode get stucked with this file)

roblourens commented 7 years ago

Just this file? Can you share the file?

roblourens commented 7 years ago

Also you can try launching with code --disable-extensions and checking whether it still happens?

Julien-Mialon commented 7 years ago

@roblourens it does not happen with --disable-extensions just updated the C# extensions to new version 1.6.2 and now it works.

I can share the file if still needed.

Thanks

roblourens commented 7 years ago

Thanks @Julien-Mialon, if an extension update fixed it, then it's probably something they know about. For future reference you can find their issues here - https://github.com/OmniSharp/omnisharp-vscode.

@SamVerschueren's issue also seems to be from an extension, so I'm going to close this issue.

SamVerschueren commented 7 years ago

@roblourens Thanks for the information! It was resolved by disabling that extension.

glen-84 commented 7 years ago

@stormwarning

The issue with the sass-lint extension should be fixed in v0.0.4.

Apologies for the inconvenience.

IdealBoy709 commented 7 years ago

0.0 macbook 316 /Applications/Visual Studio Code.app/Contents/MacOS/Electron -psn_0_65552 0.0 macbook 390 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=gpu-process --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=0,1,10,23,25,35,38,45,51,59,61,62,63,64,66,70,71,73,81,82,83,86,88,89 --gpu-vendor-id=0x8086 --gpu-device-id=0x1626 --gpu-driver-vendor --gpu-driver-version --gpu-driver-date --gpu-active-vendor-id=0x8086 --gpu-active-device-id=0x1626 --service-request-channel-token=AB0B99BCFDD27B1BB42C97B1AFFDE211 0.0 macbook 407 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --js-flags=--nolazy --no-sandbox --primordial-pipe-token=4AA04EA3033057153D32EF377F4302BF --lang=zh-CN --node-integration=true --hidden-page --enable-pinch --num-raster-threads=2 --enable-gpu-rasterization --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,34037;0,11,34037;0,12,34037;0,13,3553;0,14,3553;0,15,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,34037;1,11,34037;1,12,34037;1,13,3553;1,14,3553;1,15,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,34037;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,34037;2,13,3553;2,14,34037;2,15,34037;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,34037;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,34037;3,13,3553;3,14,34037;3,15,34037 --service-request-channel-token=4AA04EA3033057153D32EF377F4302BF --renderer-client-id=6 0.0 macbook 538 /Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Resources/crashpad_handler --database=/var/folders/yt/d2nmlvl564s4vkf3bln001rw0000gn/T/VSCode Crashes --metrics-dir=/var/folders/yt/d2nmlvl564s4vkf3bln001rw0000gn/T/VSCode Crashes --url=https://ticinocrashreporter.azurewebsites.net/crash --handshake-fd=57 0.0 root 13018 /System/Library/Frameworks/Security.framework/Versions/A/XPCServices/com.apple.CodeSigningHelper.xpc/Contents/MacOS/com.apple.CodeSigningHelper 0.0 macbook 15346 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --type=renderer --js-flags=--nolazy --no-sandbox --primordial-pipe-token=2D96CF1DCDB557E159A25E8960C00D5C --lang=zh-CN --node-integration=true --background-color=#282c34 --disable-blink-features=Auxclick --enable-pinch --num-raster-threads=2 --enable-gpu-rasterization --enable-zero-copy --enable-gpu-memory-buffer-compositor-resources --enable-main-frame-before-activation --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,34037;0,11,34037;0,12,34037;0,13,3553;0,14,3553;0,15,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,34037;1,11,34037;1,12,34037;1,13,3553;1,14,3553;1,15,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,34037;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,34037;2,13,3553;2,14,34037;2,15,34037;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,34037;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,34037;3,13,3553;3,14,34037;3,15,34037 --service-request-channel-token=2D96CF1DCDB557E159A25E8960C00D5C --renderer-client-id=21 0.0 macbook 15349 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=extensionHost 0.0 macbook 15350 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap --type=watcherService 0.0 macbook 15352 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Users/macbook/.vscode/extensions/dbaeumer.vscode-eslint-1.2.8/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/macbook/.vscode/extensions/dbaeumer.vscode-eslint-1.2.8/server/server.js --node-ipc 0.0 macbook 15354 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry --cancellationPipeName /var/folders/yt/d2nmlvl564s4vkf3bln001rw0000gn/T/vscode-tscancellation-dd817313a360c67016fc.sock* 0.0 macbook 15363 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/macbook/Library/Caches/typescript --enableTelemetry 0.0 macbook 19346 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn Code

gnowland commented 7 years ago

@chrmarti / @roblourens is there a straightforward explanation of how to determine what extension is the culprit of runaway CPU usage from the output of ps? I would just dump mine here too but "teach a man to fish" and all... I'd love to learn how to interpret this so I can root out offending plugins on my own! Thanks!

chrmarti commented 7 years ago

@gnowland You can tell by the --type parameter of the Code Helper which part of the application the process is running (e.g., searchService, renderer, extensionHost), but not which extension the extensionHost is currently running.

@roblourens Is it still/again possible to nudge the extension host process into debug mode?

roblourens commented 7 years ago

Yes but not if it's stuck in a busy loop.