microsoft / vscode

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

Crashed often #165910

Closed isNan909 closed 1 year ago

isNan909 commented 1 year ago

Type: Performance Issue

Creashed 4/5 times today

VS Code version: Code 1.73.0 (Universal) (8fa188b2b301d36553cbc9ce1b0a146ccb93351f, 2022-11-01T15:38:50.881Z) OS version: Darwin x64 21.4.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)| |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)|5, 5, 5| |Memory (System)|32.00GB (6.97GB free)| |Process Argv|--crash-reporter-id 8c69792d-a81a-42d7-a69f-d0c9361394b7| |Screen Reader|yes| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 17 229 8762 code main 2 131 8765 gpu-process 0 33 8767 utility-network-service 2 459 8768 window (minimal-setup.js — api) 0 295 8980 shared-process 0 66 8982 ptyHost 0 33 13348 /bin/zsh (figterm) 0 0 13359 /bin/zsh --login 0 33 9194 fileWatcher 0 0 15146 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 66 721 8981 extensionHost 0 66 9205 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/mac/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=8981 0 0 9208 /Users/mac/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.161/x86_64-apple-darwin/TabNine --client=vscode --no-lsp=true --client-metadata clientVersion=1.73.0 pluginVersion=3.6.19 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Crucial Human Theme vscode-theme-kind=Dark vscode-machine-id=f3bd0f7604e9b729735d6d270ad5fa292614fd16215113bc80b285d640709119 vscode-is-new-app-install=false vscode-session-id=1d495cc0-5aa7-460a-b16b-54f5d2a08ef51667985907207 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown ide-restart-counter=0 0 66 9218 /Users/mac/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.161/x86_64-apple-darwin/WD-TabNine --client vscode --client-metadata clientVersion=1.73.0 pluginVersion=3.6.19 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Crucial Human Theme vscode-theme-kind=Dark vscode-machine-id=f3bd0f7604e9b729735d6d270ad5fa292614fd16215113bc80b285d640709119 vscode-is-new-app-install=false vscode-session-id=1d495cc0-5aa7-460a-b16b-54f5d2a08ef51667985907207 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown ide-restart-counter=0 0 98 9220 /Users/mac/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.161/x86_64-apple-darwin/TabNine --client=vscode --no-lsp=true --client-metadata clientVersion=1.73.0 pluginVersion=3.6.19 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Crucial Human Theme vscode-theme-kind=Dark vscode-machine-id=f3bd0f7604e9b729735d6d270ad5fa292614fd16215113bc80b285d640709119 vscode-is-new-app-install=false vscode-session-id=1d495cc0-5aa7-460a-b16b-54f5d2a08ef51667985907207 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown ide-restart-counter=0 --no_bootstrap 0 459 9224 /Users/mac/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.161/x86_64-apple-darwin/TabNine-deep-local --settings /Users/mac/Library/Preferences/TabNine/local.settingsce94127bSmall --settings-version 1 --client vscode --client-metadata clientVersion=1.73.0 pluginVersion=3.6.19 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Crucial Human Theme vscode-theme-kind=Dark vscode-machine-id=f3bd0f7604e9b729735d6d270ad5fa292614fd16215113bc80b285d640709119 vscode-is-new-app-install=false vscode-session-id=1d495cc0-5aa7-460a-b16b-54f5d2a08ef51667985907207 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown ide-restart-counter=0 0 164 9233 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/mac/.vscode/extensions/ms-edgedevtools.vscode-edge-devtools-2.1.1/node_modules/vscode-webhint/dist/src/server.js /Users/mac/Library/Application Support/Code/User/globalStorage/ms-edgedevtools.vscode-edge-devtools Microsoft Edge Tools --node-ipc --clientProcessId=8981 0 66 9238 /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=8981 0 164 9314 /Users/mac/.vscode/extensions/sourcery.sourcery-0.12.12/sourcery_binaries/install/mac/sourcery lsp 0 33 10561 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node /Users/mac/.vscode/extensions/timothymclane.react-redux-es6-snippets-2.1.0/node_modules/vscode-languageclient/lib/utils/electronForkStart /Users/mac/.vscode/extensions/timothymclane.react-redux-es6-snippets-2.1.0/server/server.js --node-ipc 0 164 15130 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/_2/f8_p4shd1vd7wlsb3325b2qr0000gn/T/vscode-typescript501/80f30aeb139d79e9b779/tscancellation-deb8dd98a4c8276728f5.tmp* --globalPlugins typescript-svelte-plugin --pluginProbeLocations /Users/mac/.vscode/extensions/svelte.svelte-vscode-106.2.0 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 107 1016 15131 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --ms-enable-electron-run-as-node --max-old-space-size=3072 /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/_2/f8_p4shd1vd7wlsb3325b2qr0000gn/T/vscode-typescript501/80f30aeb139d79e9b779/tscancellation-3ff96bccddb6f05d266e.tmp* --globalPlugins typescript-svelte-plugin --pluginProbeLocations /Users/mac/.vscode/extensions/svelte.svelte-vscode-106.2.0 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc 0 98 15132 /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/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/mac/Library/Caches/typescript/4.8 --enableTelemetry --typesMapLocation /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation 0 98 15136 issue-reporter ```
Workspace Info ``` | Window (minimal-setup.js — api) | Folder (api): 1370 files | File types: js(760) map(97) png(52) proto(43) txt(40) json(37) css(30) | jpg(29) ttf(15) woff2(15) | Conf files: github-actions(1) launch.json(1) package.json(1) | Launch Configs: node(2); ```
Extensions (66) Extension|Author (truncated)|Version ---|---|--- react-redux-simple-snippets|abo|1.2.4 typescript-react-snippets|abo|0.2.0 vscode-sqlite|ale|0.14.1 arepl|alm|2.0.4 svelte-intellisense|ard|0.7.1 toml|be5|0.6.0 blackbox|Bla|0.4.1 vscode-tailwindcss|bra|0.9.1 simple-react-snippets|bur|1.2.7 emmet-jss|car|1.0.0 turbo-console-log|Cha|2.5.6 path-intellisense|chr|2.8.1 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|13.0.4 react-native-react-redux|EQu|2.0.6 prettier-vscode|esb|9.9.0 nunjucks-template|ese|0.5.1 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 ts-support|Jax|0.0.5 vue|jcb|0.1.5 vscode-lebab|jer|1.1.0 shortcut-menu-bar|jer|3.0.4 vsc-python-indent|Kev|1.18.0 git-graph|mhu|1.30.0 HTMLHint|mka|0.10.0 vscode-docker|ms-|1.22.2 vscode-edge-devtools|ms-|2.1.1 playwright|ms-|0.2.13 isort|ms-|2022.4.0 python|ms-|2022.18.1 vscode-pylance|ms-|2022.11.10 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.262.3 vsliveshare|ms-|1.0.5762 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 rose-pine|mvl|2.4.1 vetur|oct|0.36.1 indent-rainbow|ode|8.3.1 material-icon-theme|PKi|4.22.0 stackflex|Pos|1.0.1 prisma|Pri|4.6.0 vscode-thunder-client|ran|1.20.1 typescript-hero|rbb|3.0.0 datetime|rid|2.2.2 live-sass|rit|3.0.0 LiveServer|rit|5.7.9 cypress-command-docs|Rob|0.0.1 vs-code-prettier-eslint|rve|5.0.4 code-settings-sync|Sha|3.4.3 indenticator|Sir|0.7.0 swdc-vscode|sof|2.6.35 sourcery|sou|0.12.12 stepsize|Ste|0.69.2 framer-syntax|Ste|2.0.7 svelte-vscode|sve|106.2.0 sass-indented|syl|1.8.22 tabnine-vscode|Tab|3.6.19 react-redux-es6-snippets|tim|2.1.0 quokka-vscode|Wal|1.0.509 fig|wit|0.0.7 glean|wix|5.2.2 vscode-import-cost|wix|3.3.0 emmet-live|yse|1.0.0 (10 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vscaat:30438848 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 pyindex848:30577860 nodejswelcome1:30587005 fc301958:30595537 2e4cg342:30602488 gswce1:30605430 3d0df643:30604793 dbltrim-noruby:30604474 ```
lramos15 commented 1 year ago

You have 66 extensions, without disabling them it is impossible to determine the reason for your crashing. Do you have reproducible steps that cause you to crash?

arturo-salinas commented 1 year ago

Today my vscode remote installation is continuously crashing. And this has never happened before. I see that "rg" and "node" processes are created and my remote Linux machine is very slow. I have not installed any new extension today so I am wondering why it is happening today. Can you tell me how to gather info from the crash? image

lramos15 commented 1 year ago

Please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues

arturo-salinas commented 1 year ago

Will it work with a remote connection? It looks the vscode-server crashes. And now I disabled all the extensions.

arturo-salinas commented 1 year ago

Following the steps in the wiki does not help. The vscode-server keeps crashing. I do not know why rg is running and occupying the CPU. How to create a crash report in vscode-server?

lramos15 commented 1 year ago

Apparently because the server isn't an electron process those steps won't work. @roblourens do you have any ideas?

roblourens commented 1 year ago

What makes you think the server is crashing? The screenshot is an error message saying that the window crashed.

arturo-salinas commented 1 year ago

I fixed the problem. The screenshot does not help me much. As I said I noticed this process rg running all the time. What happens is that my workspace had a very huge folder (a application-specific crash report) that was keeping rg searching in the background. I deleted the folder and the crashes went away. I do not know if you guys can improve vscode to warn if this kind of situations occurs. Anyway, thank you!

lramos15 commented 1 year ago

Glad you figured it and thanks for the debugging tips!