Open ARoy-NI opened 4 months ago
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
Install the Microsoft remote Development extension
Which extension in the Remote Development extension pack are you using?
I use version 0.25.0 of the remote development extension pack. I think it is the latest version.
What kind of remote are you connecting to? Is it an ssh remote or a dev container?
I use ssh remote to connect to the linux system. Let me know if you some further log files.
@deepak1556 is there any way to get a native crash dump from the Remote EH? Does the --crash-reporter-directory
flag apply there?
I kept running into OOM errors, with only 2 proprietary VSCode Extensions, Prettier, and Eslint. It would constantly crash-restart with "Remote Extension Host Terminated Unexpectedly".
One thing that seems to have helped is:
~/node_proxy.sh
) containing:
#!/bin/sh
MAX_HEAP_SIZE=8192
node --max-old-space-size=$MAX_HEAP_SIZE "$@"
and chmod +x ~/node_proxy.sh
.
Using ps
, find the node version that is running your extension host:
$ ps aux | grep '--type=extensionHost'
/home/kfp/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/node --dns-result-order=ipv4first /local/home/kfp/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false
Remove that node file and link it to your node_proxy.sh
script:
rm -rf /home/kfp/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/node
ln -s ~/node_proxy.sh /home/kfp/.vscode-server/bin/903b1e9d8990623e3d7da1df3d33db3e42d80eda/node
and either reload your window, or use the Restart Extension Host command with Cmd+P. Then it works with more memory!
I install the latest version 1.90.2, It is still not working same error again. I also tried the hint from kaspar-p did not work. I did not install any extension and it crashes a lot. Do you need additional information?
I will reinstall 1.84.2. This version works without any problems.
Is someone working on the issue? Or is it dead? The problem still exists in version 1.91.1. Is it possible that the ms-vscode.cpptools cause the crashes because I got 2024-07-23 14:21:35.080 [error] Extension host (Remote) terminated unexpectedly with code null. 2024-07-23 14:21:35.080 [error] Extension host (Remote) terminated unexpectedly. The following extensions were running: vscode.emmet, ms-vscode.cpptools
Seems not to be the case:
2024-07-23 14:33:13.124 [error] [remote-connection][ExtensionHost][c266e…][reconnect][Managed(1)] received error control message when negotiating connection. Error: 2024-07-23 14:33:13.124 [error] Error: Connection error: Unknown reconnection token (seen before) at U (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:694:19244) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:694:10588) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at s.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:14823) at b.z (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:18001) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:17333) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at h.acceptChunk (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:12569) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:11839) at S.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at S.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at S.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:2147) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:694:789) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at v.$onDidManagedSocketHaveData (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1671:7835) at S (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:14630) at S.Q (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:14396) at S.M (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:13429) at S.L (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:12485) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:10959) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at s.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:14823) at x.onmessage (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1693:8186) 2024-07-23 14:33:13.124 [error] [remote-connection][ExtensionHost][c266e…][reconnect] A permanent error occurred in the reconnecting loop! Will give up now! Error: 2024-07-23 14:33:13.125 [error] Error: Connection error: Unknown reconnection token (seen before) at U (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:694:19244) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:694:10588) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at s.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:14823) at b.z (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:18001) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:17333) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at h.acceptChunk (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:12569) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:11839) at S.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at S.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at S.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:2147) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:694:789) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at v.$onDidManagedSocketHaveData (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1671:7835) at S (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:14630) at S.Q (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:14396) at S.M (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:13429) at S.L (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:12485) at d.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1678:10959) at l.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:732) at l.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:93:949) at s.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:620:14823) at x.onmessage (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1693:8186) 2024-07-23 14:33:13.198 [error] Extension host (Remote) terminated unexpectedly with code null. 2024-07-23 14:33:13.199 [error] Extension host (Remote) terminated unexpectedly. The following extensions were running: vscode.emmet, vscode.git-base, vscode.git, vscode.github
Type: Bug
VS Code version: Code 1.89.0 (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:09:22.859Z) OS version: Windows_NT x64 10.0.19044 Modes: Connection to 'SSH: 172.22.60.112' could not be established Canceled
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2904)| |GPU Status|2d_canvas: enabledcanvas_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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.76GB (16.45GB free)| |Process Argv|--crash-reporter-id 818bd2ed-537b-4deb-b60c-980a17668484| |Screen Reader|no| |VM|0%| Connection to 'SSH: 172.22.60.112' could not be established Canceled
A/B Experiments
``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vstes516:30244333 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 showvideoc:31016891 dsvsc021:30996838 0ee40948:31013168 a69g1124:31038041 dvdeprecationcf:31040882 dwnewjupytercf:31039676 ```remoteagent.log