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

Remote Extension host terminated unexpectedly 3 times within the last 5 minutes #11523

Closed
prabhu-buildbot opened this issue Oct 12, 2023 · 7 comments
Assignees
Labels
external more info needed The issue report is not actionable in its current state

Comments

@prabhu-buildbot
Copy link

prabhu-buildbot commented Oct 12, 2023

Environment

  • OS and Version: Win 10 10.0.19044
  • VS Code Version: 1.83.0
  • C/C++ Extension Version: 1.17.5
  • If using SSH remote, specify OS of remote machine: Linux

Bug Summary and Steps to Reproduce

I am connecting to my Vms using Remote-SSH aslo i installed C/C++ extension
whenever the C/C++ extension is enabled i am getting

Remote Extension host terminated unexpectedly 3 times within the last 5 minutes.

if i remove the esxtension i not getting that error
but the extension mandatory

Configuration and Logs

c_cpp_properties.json
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "/usr/local/include/modbus",
                "/usr/include/glib-2.0",
                "/usr/lib/x86_64-linux-gnu/glib-2.0/",
                "/usr/lib/x86_64-linux-gnu/glib-2.0/include"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "clang-x64"
        }
    ],
    "version": 4
}

Remote-ssh log
` Log Level: 2
[15:50:39.074] VS Code version: 1.83.1
[15:50:39.074] Remote-SSH version: remote-ssh@0.106.5
[15:50:39.074] win32 x64
[15:50:39.128] SSH Resolver called for "ssh-remote+172.168.9.54", attempt 1
[15:50:39.129] "remote.SSH.useLocalServer": false
[15:50:39.129] "remote.SSH.useExecServer": false
[15:50:39.131] "remote.SSH.showLoginTerminal": false
[15:50:39.132] "remote.SSH.remotePlatform": {"172.168.9.90":"linux","172.168.9.54":"linux"}
[15:50:39.132] "remote.SSH.path": undefined
[15:50:39.132] "remote.SSH.configFile": undefined
[15:50:39.133] "remote.SSH.useFlock": true
[15:50:39.133] "remote.SSH.lockfilesInTmp": false
[15:50:39.134] "remote.SSH.localServerDownload": auto
[15:50:39.134] "remote.SSH.remoteServerListenOnSocket": false
[15:50:39.134] "remote.SSH.showLoginTerminal": false
[15:50:39.134] "remote.SSH.defaultExtensions": []
[15:50:39.135] "remote.SSH.loglevel": 2
[15:50:39.136] "remote.SSH.enableDynamicForwarding": true
[15:50:39.136] "remote.SSH.enableRemoteCommand": false
[15:50:39.136] "remote.SSH.serverPickPortsFromRange": {}
[15:50:39.137] "remote.SSH.serverInstallPath": {}
[15:50:39.152] SSH Resolver called for host: 172.168.9.54
[15:50:39.152] Setting up SSH remote "172.168.9.54"
[15:50:39.159] Using commit id "f1b07bd25dfad64b0167beb15359ae573aecd2cc" and quality "stable" for server
[15:50:39.166] Install and start server if needed
[15:50:39.172] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[15:50:39.178] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[15:50:39.178] Checking ssh with "C:\Windows\ssh.exe -V"
[15:50:39.182] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[15:50:39.182] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[15:50:39.184] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[15:50:39.184] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[15:50:39.186] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[15:50:39.186] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[15:50:39.266] > OpenSSH_for_Windows_8.1p1
[15:50:39.266] > , LibreSSL 3.0.2

[15:50:39.271] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 62992 "172.168.9.54" bash
[15:50:39.275] Terminal shell path: C:\Windows\System32\cmd.exe
[15:50:40.100] > �]0;C:\Windows\System32\cmd.exe�
[15:50:40.101] Got some output, clearing connection timeout
[15:50:40.125] > admin1@172.168.9.54's password: 
[15:50:40.125] Showing password prompt
[15:50:45.626] Got password response
[15:50:45.626] "install" wrote data to terminal: "************"
[15:50:45.671] > 
[15:50:45.951] > e38f66d38959: running
[15:50:45.990] > Acquiring lock on /home/admin1/.vscode-server/bin/f1b07bd25dfad64b0167beb15359ae
> 573aecd2cc/vscode-remote-lock.admin1.f1b07bd25dfad64b0167beb15359ae573aecd2cc   
> Found existing installation at /home/admin1/.vscode-server/bin/f1b07bd25dfad64b0
> 167beb15359ae573aecd2cc...
> Checking /home/admin1/.vscode-server/.f1b07bd25dfad64b0167beb15359ae573aecd2cc.l
> og and /home/admin1/.vscode-server/.f1b07bd25dfad64b0167beb15359ae573aecd2cc.pid
>  for a running server
> Looking for server with pid: 3163145
[15:50:46.007] > Found running server...
[15:50:46.016] > 
> *
> * Visual Studio Code Server
> *
> * By using the software, you agree to
> * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-lice
> nse) and
> * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacyst
> atement).
> *
> 
[15:50:46.024] > Checking server status on port 43215 with wget
> e38f66d38959: start
> SSH_AUTH_SOCK====
> DISPLAY====
> webUiAccessToken====
> listeningOn==43215==
> osReleaseId==ubuntu==
> arch==x86_64==
> vscodeArch==x64==
> bitness==64==
> tmpDir==/run/user/1000==
> platform==linux==
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> connectionToken==a1a111a1-a1a1-11aa-1111-a111a111a1a1==
[15:50:46.040] > 
> e38f66d38959: end
[15:50:46.040] Received install output: 
SSH_AUTH_SOCK====
DISPLAY====
webUiAccessToken====
listeningOn==43215==
osReleaseId==ubuntu==
arch==x86_64==
vscodeArch==x64==
bitness==64==
tmpDir==/run/user/1000==
platform==linux==
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
connectionToken==a1a111a1-a1a1-11aa-1111-a111a111a1a1==

[15:50:46.041] Remote server is listening on port 43215
[15:50:46.041] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":43215},"osReleaseId":"ubuntu","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/1000","platform":"linux","connectionToken":"a1a111a1-a1a1-11aa-1111-a111a111a1a1"},"installUnpackCode":""}
[15:50:46.053] Starting forwarding server. local port 62994 -> socksPort 62992 -> remotePort 43215
[15:50:46.054] Forwarding server listening on port 62994
[15:50:46.055] Waiting for ssh tunnel to be ready
[15:50:46.058] Tunneled port 43215 to local port 62994
[15:50:46.058] Resolved "ssh-remote+172.168.9.54" to "port 62994"
[15:50:46.061] [Forwarding server port 62994] Got connection 0
[15:50:46.083] ------




[15:50:46.123] [Forwarding server port 62994] Got connection 1`

2023-10-11 18:23:18.280 [info] Extension host with pid 1624535 started
2023-10-11 18:23:18.287 [error] Error: EEXIST: file already exists, open '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock'
2023-10-11 18:23:18.292 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Could not acquire lock, checking if the file is stale.
2023-10-11 18:23:18.300 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': The pid 1623948 appears to be gone.
2023-10-11 18:23:18.300 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Deleting a stale lock.
2023-10-11 18:23:18.314 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Lock acquired.
2023-10-11 18:23:18.489 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2023-10-11 18:23:18.491 [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-10-11 18:23:18.491 [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-10-11 18:23:19.275 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '', root cause: vscode.git
2023-10-11 18:23:19.281 [info] ExtensionService#_doActivateExtension ms-vscode.cpptools, startup: true, activationEvent: 'workspaceContains:/.vscode/c_cpp_properties.json'
2023-10-11 18:23:19.571 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: ''
2023-10-11 18:23:19.572 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: ''
2023-10-11 18:23:21.105 [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:json'
2023-10-11 18:23:21.106 [info] ExtensionService#_doActivateExtension vscode.npm, startup: false, activationEvent: 'onLanguage:json'
2023-10-11 18:23:22.042 [info] Extension host with pid 1624643 started
2023-10-11 18:23:22.043 [error] Error: EEXIST: file already exists, open '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock'
2023-10-11 18:23:22.049 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Could not acquire lock, checking if the file is stale.
2023-10-11 18:23:22.054 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': The pid 1624535 appears to be gone.
2023-10-11 18:23:22.055 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Deleting a stale lock.
2023-10-11 18:23:22.065 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Lock acquired.
2023-10-11 18:23:22.115 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2023-10-11 18:23:22.117 [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-10-11 18:23:22.117 [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-10-11 18:23:22.118 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: false, activationEvent: 'onFileSystem:git', root cause: vscode.git
2023-10-11 18:23:22.118 [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:json'
2023-10-11 18:23:22.119 [info] ExtensionService#_doActivateExtension vscode.npm, startup: false, activationEvent: 'onLanguage:json'
2023-10-11 18:23:22.477 [info] ExtensionService#_doActivateExtension vscode.git, startup: false, activationEvent: 'onFileSystem:git'
2023-10-11 18:23:23.129 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: ''
2023-10-11 18:23:23.173 [info] ExtensionService#_doActivateExtension ms-vscode.cpptools, startup: true, activationEvent: 'workspaceContains:/.vscode/c_cpp_properties.json'
2023-10-11 18:23:24.615 [info] Extension host with pid 1624710 started
2023-10-11 18:23:24.616 [error] Error: EEXIST: file already exists, open '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock'
2023-10-11 18:23:24.621 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Could not acquire lock, checking if the file is stale.
2023-10-11 18:23:24.626 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': The pid 1624643 appears to be gone.
2023-10-11 18:23:24.626 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Deleting a stale lock.
2023-10-11 18:23:24.664 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2023-10-11 18:23:24.665 [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-10-11 18:23:24.665 [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2023-10-11 18:23:24.666 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: false, activationEvent: 'onFileSystem:git', root cause: vscode.git
2023-10-11 18:23:24.666 [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:json'
2023-10-11 18:23:24.666 [info] ExtensionService#_doActivateExtension vscode.npm, startup: false, activationEvent: 'onLanguage:json'
2023-10-11 18:23:24.909 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Lock acquired.
2023-10-11 18:23:25.017 [info] ExtensionService#_doActivateExtension vscode.git, startup: false, activationEvent: 'onFileSystem:git'
2023-10-11 18:23:25.672 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2023-10-11 18:23:25.715 [info] ExtensionService#_doActivateExtension ms-vscode.cpptools, startup: true, activationEvent: 'workspaceContains:/.vscode/c_cpp_properties.json

Other Extensions

No response

Additional context

No response

@prabhu-buildbot
Copy link
Author

prabhu-buildbot commented Oct 12, 2023

Extension Host(Remote)
[error] Error: EEXIST: file already exists, open '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock' 2023-10-12 16:57:16.459 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Could not acquire lock, checking if the file is stale. 2023-10-12 16:57:16.463 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': The pid 1717491 appears to be gone. 2023-10-12 16:57:16.463 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Deleting a stale lock. 2023-10-12 16:57:16.477 [info] Lock '/home/admin1/.vscode-server/data/User/workspaceStorage/79bbbc13aa7934293eb28938bdd9920c/vscode.lock': Lock acquired.

Dev tools log
ERR [Extension Host] (node:828) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (UseCode --trace-deprecation ...to show where the warning was created) console.ts:137 [Extension Host] (node:828) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (UseCode --trace-deprecation ... to show where the warning was created) $ @ console.ts:137 $logExtensionHostMessage @ mainThreadConsole.ts:39 S @ rpcProtocol.ts:456 Q @ rpcProtocol.ts:441 M @ rpcProtocol.ts:371 L @ rpcProtocol.ts:297 (anonymous) @ rpcProtocol.ts:161 z @ event.ts:1138 fire @ event.ts:1169 fire @ ipc.net.ts:650 Y.onmessage @ localProcessExtensionHost.ts:581 log.ts:421 INFO [LocalProcess0][resolveAuthority(ssh-remote,1)][6625ms] returned WebSocket(127.0.0.1:64491) log.ts:421 INFO resolveAuthority(ssh-remote) returned 'WebSocket(127.0.0.1:64491)' after 6627 ms log.ts:421 INFO Creating a socket (renderer-Management-aa5f56f0-e939-473e-aceb-a71d1bcc8ea7)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5bf4641b-84a2-43d2-a2ce-76785e0cc33e)... log.ts:421 INFO Creating a socket (renderer-Management-aa5f56f0-e939-473e-aceb-a71d1bcc8ea7) was successful after 23 ms. log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5bf4641b-84a2-43d2-a2ce-76785e0cc33e) was successful after 32 ms. 2log.ts:431 WARN Settings pattern "application.*" doesn't match any settings log.ts:441 ERR Could not find pty on pty host: CodeExpectedError: Could not find pty on pty host at A.U (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:32246) at A.updateTitle (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:27446) at V.<computed> (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:44:22715) at Object.call (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:34:5059) at h.s (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:5150) at h.q (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:4661) at g.value (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:32:4066) at n.z (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:27:1902) at n.fire (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:27:2119) at process.he (/home/admin1/.vscode-server/bin/e7e037083ff4455cf320e344325dacb480062c3c/out/vs/platform/terminal/node/ptyHostMain.js:25:9949) at process.emit (node:events:513:28) at emit (node:internal/child_process:937:14) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) log.ts:431 WARN Settings pattern "application.*" doesn't match any settings log.ts:421 INFO [perf] Render performance baseline is 74ms console.ts:137 [Extension Host] activating extension console.ts:137 [Extension Host] starting language server log.ts:421 INFO [remote-connection][ExtensionHost][5bf46…][reconnect] received socket close event (wasClean: false, code: 1006, reason: ). log.ts:441 ERR CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} log.ts:421 INFO [remote-connection][ExtensionHost][5bf46…][reconnect] starting reconnecting loop. You can get more information with the trace log level. log.ts:421 INFO [remote-connection][ExtensionHost][5bf46…][reconnect] resolving connection... log.ts:421 INFO [remote-connection][ExtensionHost][5bf46…][reconnect] connecting to WebSocket(127.0.0.1:64491)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5bf4641b-84a2-43d2-a2ce-76785e0cc33e)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5bf4641b-84a2-43d2-a2ce-76785e0cc33e) was successful after 60 ms. log.ts:421 INFO [remote-connection][ExtensionHost][5bf46…][reconnect] received socket close event (wasClean: false, code: 1006, reason: ). log.ts:441 ERR CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} log.ts:441 ERR [remote-connection][ExtensionHost][5bf46…][reconnect][WebSocket(127.0.0.1:64491)] received error control message when negotiating connection. Error: log.ts:441 ERR Error: Connection error: Unknown reconnection token (seen before) at x (remoteAgentConnection.ts:785:17) at u.value (remoteAgentConnection.ts:328:17) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at r.fire (ipc.net.ts:650:19) at b.z (ipc.net.ts:1021:28) at u.value (ipc.net.ts:955:72) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at u.acceptChunk (ipc.net.ts:394:21) at ipc.net.ts:350:51 at u.value (browserSocketFactory.ts:230:39) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at j.onload (browserSocketFactory.ts:91:17) log.ts:441 ERR [remote-connection][ExtensionHost][5bf46…][reconnect] A permanent error occurred in the reconnecting loop! Will give up now! Error: log.ts:441 ERR Error: Connection error: Unknown reconnection token (seen before) at x (remoteAgentConnection.ts:785:17) at u.value (remoteAgentConnection.ts:328:17) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at r.fire (ipc.net.ts:650:19) at b.z (ipc.net.ts:1021:28) at u.value (ipc.net.ts:955:72) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at u.acceptChunk (ipc.net.ts:394:21) at ipc.net.ts:350:51 at u.value (browserSocketFactory.ts:230:39) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at j.onload (browserSocketFactory.ts:91:17) abstractExtensionService.ts:784 Extension host (Remote) terminated unexpectedly. Code: 0, Signal: 5bf4641b-84a2-43d2-a2ce-76785e0cc33e yb @ abstractExtensionService.ts:784 yb @ nativeExtensionService.ts:166 xb @ abstractExtensionService.ts:776 (anonymous) @ abstractExtensionService.ts:754 z @ event.ts:1138 fire @ event.ts:1169 D @ remoteExtensionHost.ts:199 (anonymous) @ remoteExtensionHost.ts:133 z @ event.ts:1138 fire @ event.ts:1169 fire @ ipc.net.ts:650 acceptDisconnect @ ipc.net.ts:979 U @ remoteAgentConnection.ts:774 D @ remoteAgentConnection.ts:729 C @ remoteAgentConnection.ts:723 z @ remoteAgentConnection.ts:677 await in z (async) y @ remoteAgentConnection.ts:628 (anonymous) @ remoteAgentConnection.ts:595 z @ event.ts:1138 A @ event.ts:1149 fire @ event.ts:1173 fire @ ipc.net.ts:650 (anonymous) @ ipc.net.ts:876 d @ browserSocketFactory.ts:236 z @ event.ts:1138 fire @ event.ts:1169 (anonymous) @ browserSocketFactory.ts:174 log.ts:441 ERR Extension host (Remote) terminated unexpectedly with code null. log.ts:441 ERR Extension host (Remote) terminated unexpectedly. The following extensions were running: vscode.emmet, vscode.git-base, ms-vscode.cpptools, vscode.git, vscode.github, vscode.extension-editing, vscode.json-language-features, vscode.npm log.ts:421 INFO Automatically restarting the remote extension host. log.ts:421 INFO Creating a socket (renderer-ExtensionHost-7389b82b-f4d9-4cf3-bef1-9b7707265a2f)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-7389b82b-f4d9-4cf3-bef1-9b7707265a2f) was successful after 35 ms. log.ts:431 WARN Settings pattern "application.*" doesn't match any settings log.ts:421 INFO [remote-connection][ExtensionHost][7389b…][reconnect] received socket close event (wasClean: false, code: 1006, reason: ). log.ts:441 ERR CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} log.ts:421 INFO [remote-connection][ExtensionHost][7389b…][reconnect] starting reconnecting loop. You can get more information with the trace log level. log.ts:421 INFO [remote-connection][ExtensionHost][7389b…][reconnect] resolving connection... log.ts:421 INFO [remote-connection][ExtensionHost][7389b…][reconnect] connecting to WebSocket(127.0.0.1:64491)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-7389b82b-f4d9-4cf3-bef1-9b7707265a2f)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-7389b82b-f4d9-4cf3-bef1-9b7707265a2f) was successful after 34 ms. log.ts:421 INFO [remote-connection][ExtensionHost][7389b…][reconnect] received socket close event (wasClean: false, code: 1006, reason: ). log.ts:441 ERR CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} log.ts:441 ERR [remote-connection][ExtensionHost][7389b…][reconnect][WebSocket(127.0.0.1:64491)] received error control message when negotiating connection. Error: log.ts:441 ERR Error: Connection error: Unknown reconnection token (seen before) at x (remoteAgentConnection.ts:785:17) at u.value (remoteAgentConnection.ts:328:17) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at r.fire (ipc.net.ts:650:19) at b.z (ipc.net.ts:1021:28) at u.value (ipc.net.ts:955:72) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at u.acceptChunk (ipc.net.ts:394:21) at ipc.net.ts:350:51 at u.value (browserSocketFactory.ts:230:39) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at j.onload (browserSocketFactory.ts:91:17) log.ts:441 ERR [remote-connection][ExtensionHost][7389b…][reconnect] A permanent error occurred in the reconnecting loop! Will give up now! Error: log.ts:441 ERR Error: Connection error: Unknown reconnection token (seen before) at x (remoteAgentConnection.ts:785:17) at u.value (remoteAgentConnection.ts:328:17) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at r.fire (ipc.net.ts:650:19) at b.z (ipc.net.ts:1021:28) at u.value (ipc.net.ts:955:72) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at u.acceptChunk (ipc.net.ts:394:21) at ipc.net.ts:350:51 at u.value (browserSocketFactory.ts:230:39) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at j.onload (browserSocketFactory.ts:91:17) abstractExtensionService.ts:784 Extension host (Remote) terminated unexpectedly. Code: 0, Signal: 7389b82b-f4d9-4cf3-bef1-9b7707265a2f yb @ abstractExtensionService.ts:784 yb @ nativeExtensionService.ts:166 xb @ abstractExtensionService.ts:776 (anonymous) @ abstractExtensionService.ts:754 z @ event.ts:1138 fire @ event.ts:1169 D @ remoteExtensionHost.ts:199 (anonymous) @ remoteExtensionHost.ts:133 z @ event.ts:1138 fire @ event.ts:1169 fire @ ipc.net.ts:650 acceptDisconnect @ ipc.net.ts:979 U @ remoteAgentConnection.ts:774 D @ remoteAgentConnection.ts:729 C @ remoteAgentConnection.ts:723 z @ remoteAgentConnection.ts:677 await in z (async) y @ remoteAgentConnection.ts:628 (anonymous) @ remoteAgentConnection.ts:595 z @ event.ts:1138 A @ event.ts:1149 fire @ event.ts:1173 fire @ ipc.net.ts:650 (anonymous) @ ipc.net.ts:876 d @ browserSocketFactory.ts:236 z @ event.ts:1138 fire @ event.ts:1169 (anonymous) @ browserSocketFactory.ts:174 log.ts:441 ERR Extension host (Remote) terminated unexpectedly with code null. log.ts:441 ERR Extension host (Remote) terminated unexpectedly. The following extensions were running: vscode.emmet, vscode.git-base, ms-vscode.cpptools, vscode.git, vscode.github, vscode.extension-editing, vscode.json-language-features, vscode.npm, vscode.typescript-language-features log.ts:421 INFO Automatically restarting the remote extension host. log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5dd374bc-b67e-4187-afff-433f191b08b8)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5dd374bc-b67e-4187-afff-433f191b08b8) was successful after 32 ms. log.ts:431 WARN Settings pattern "application.*" doesn't match any settings log.ts:441 ERR No registered selector for ID: ms-vscode.npm-command: Error: No registered selector for ID: ms-vscode.npm-command at vscode-file://vscode-app/c:/Users/Prabhu%20Naveen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1535:26336 console.ts:137 [Extension Host] activating extension console.ts:137 [Extension Host] starting language server log.ts:421 INFO [remote-connection][ExtensionHost][5dd37…][reconnect] received socket close event (wasClean: false, code: 1006, reason: ). log.ts:441 ERR CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} log.ts:421 INFO [remote-connection][ExtensionHost][5dd37…][reconnect] starting reconnecting loop. You can get more information with the trace log level. log.ts:421 INFO [remote-connection][ExtensionHost][5dd37…][reconnect] resolving connection... log.ts:421 INFO [remote-connection][ExtensionHost][5dd37…][reconnect] connecting to WebSocket(127.0.0.1:64491)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5dd374bc-b67e-4187-afff-433f191b08b8)... log.ts:421 INFO Creating a socket (renderer-ExtensionHost-5dd374bc-b67e-4187-afff-433f191b08b8) was successful after 14 ms. log.ts:421 INFO [remote-connection][ExtensionHost][5dd37…][reconnect] received socket close event (wasClean: false, code: 1006, reason: ). log.ts:441 ERR CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …} log.ts:441 ERR [remote-connection][ExtensionHost][5dd37…][reconnect][WebSocket(127.0.0.1:64491)] received error control message when negotiating connection. Error: log.ts:441 ERR Error: Connection error: Unknown reconnection token (seen before) at x (remoteAgentConnection.ts:785:17) at u.value (remoteAgentConnection.ts:328:17) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at r.fire (ipc.net.ts:650:19) at b.z (ipc.net.ts:1021:28) at u.value (ipc.net.ts:955:72) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at u.acceptChunk (ipc.net.ts:394:21) at ipc.net.ts:350:51 at u.value (browserSocketFactory.ts:230:39) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at j.onload (browserSocketFactory.ts:91:17) log.ts:441 ERR [remote-connection][ExtensionHost][5dd37…][reconnect] A permanent error occurred in the reconnecting loop! Will give up now! Error: log.ts:441 ERR Error: Connection error: Unknown reconnection token (seen before) at x (remoteAgentConnection.ts:785:17) at u.value (remoteAgentConnection.ts:328:17) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at r.fire (ipc.net.ts:650:19) at b.z (ipc.net.ts:1021:28) at u.value (ipc.net.ts:955:72) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at u.acceptChunk (ipc.net.ts:394:21) at ipc.net.ts:350:51 at u.value (browserSocketFactory.ts:230:39) at c.z (event.ts:1138:13) at c.fire (event.ts:1169:9) at j.onload (browserSocketFactory.ts:91:17) abstractExtensionService.ts:784 Extension host (Remote) terminated unexpectedly. Code: 0, Signal: 5dd374bc-b67e-4187-afff-433f191b08b8 yb @ abstractExtensionService.ts:784 yb @ nativeExtensionService.ts:166 xb @ abstractExtensionService.ts:776 (anonymous) @ abstractExtensionService.ts:754 z @ event.ts:1138 fire @ event.ts:1169 D @ remoteExtensionHost.ts:199 (anonymous) @ remoteExtensionHost.ts:133 z @ event.ts:1138 fire @ event.ts:1169 fire @ ipc.net.ts:650 acceptDisconnect @ ipc.net.ts:979 U @ remoteAgentConnection.ts:774 D @ remoteAgentConnection.ts:729 C @ remoteAgentConnection.ts:723 z @ remoteAgentConnection.ts:677 await in z (async) y @ remoteAgentConnection.ts:628 (anonymous) @ remoteAgentConnection.ts:595 z @ event.ts:1138 A @ event.ts:1149 fire @ event.ts:1173 fire @ ipc.net.ts:650 (anonymous) @ ipc.net.ts:876 d @ browserSocketFactory.ts:236 z @ event.ts:1138 fire @ event.ts:1169 (anonymous) @ browserSocketFactory.ts:174 log.ts:441 ERR Extension host (Remote) terminated unexpectedly with code null. log.ts:441 ERR Extension host (Remote) terminated unexpectedly. The following extensions were running: vscode.emmet, vscode.git-base, ms-vscode.cpptools, vscode.git, vscode.github, vscode.extension-editing, vscode.json-language-features, vscode.npm, vscode.typescript-language-features notificationsAlerts.ts:42 Remote Extension host terminated unexpectedly 3 times within the last 5 minutes. c @ notificationsAlerts.ts:42 (anonymous) @ notificationsAlerts.ts:28 z @ event.ts:1138 A @ event.ts:1149 fire @ event.ts:1173 addNotification @ notifications.ts:204 notify @ notificationService.ts:175 prompt @ notificationService.ts:253 Ab @ abstractExtensionService.ts:831 await in Ab (async) yb @ abstractExtensionService.ts:789 yb @ nativeExtensionService.ts:166 xb @ abstractExtensionService.ts:776 (anonymous) @ abstractExtensionService.ts:754 z @ event.ts:1138 fire @ event.ts:1169 D @ remoteExtensionHost.ts:199 (anonymous) @ remoteExtensionHost.ts:133 z @ event.ts:1138 fire @ event.ts:1169 fire @ ipc.net.ts:650 acceptDisconnect @ ipc.net.ts:979 U @ remoteAgentConnection.ts:774 D @ remoteAgentConnection.ts:729 C @ remoteAgentConnection.ts:723 z @ remoteAgentConnection.ts:677 await in z (async) y @ remoteAgentConnection.ts:628 (anonymous) @ remoteAgentConnection.ts:595 z @ event.ts:1138 A @ event.ts:1149 fire @ event.ts:1173 fire @ ipc.net.ts:650 (anonymous) @ ipc.net.ts:876 d @ browserSocketFactory.ts:236 z @ event.ts:1138 fire @ event.ts:1169 (anonymous) @ browserSocketFactory.ts:174 log.ts:441 ERR read ECONNRESET: Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20)

@prabhu-buildbot
Copy link
Author

@sean-mcmanus have any idea?
waiting for response

@sean-mcmanus sean-mcmanus self-assigned this Oct 13, 2023
@sean-mcmanus
Copy link
Collaborator

I don't know where that error is coming from. It doesn't repro for me and our extensions doesn't show that error message. Maybe someone else on our team knows or you could ask the Remote Extension VS Code team what the error means.

@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Oct 13, 2023

VS Code itself owns the remote extensions host and is responsible for it crashing -- I don't know how our extension could be causing it to crash. I would log a bug at https://github.com/microsoft/vscode/issues and tell them you already reported it on the C/C++ extension and we don't think it's our issue. They may have more ideas on what logging to obtain, etc.

@sean-mcmanus
Copy link
Collaborator

I see microsoft/vscode#195632 and they still blamed our extension.

@sean-mcmanus sean-mcmanus pinned this issue Oct 28, 2023
@sean-mcmanus sean-mcmanus added the more info needed The issue report is not actionable in its current state label Oct 28, 2023
@sean-mcmanus sean-mcmanus unpinned this issue Nov 9, 2023
@sean-mcmanus
Copy link
Collaborator

sean-mcmanus commented Nov 9, 2023

@prabhu-buildbot FYI, the VS Code team is asking for more repro info (in the VS Code issue).

Copy link

github-actions bot commented Jan 8, 2024

This issue has been closed because it needs more information and has not had recent activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external more info needed The issue report is not actionable in its current state
Projects
None yet
Development

No branches or pull requests

2 participants