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

Extension host terminates in Latest version of vscode - January 2021 (version 1.53) #883

Open
akkyjumbade opened this issue Feb 6, 2021 · 65 comments

Comments

@akkyjumbade
Copy link

System
Edition Windows 10 Pro
Version 20H2
Installed on ‎31-‎10-‎2020
OS build 19042.789
Experience Windows Feature Experience Pack 120.2212.2020.0

@codingkoala
Copy link

same here running Ubuntu

@lukasschreiber
Copy link

lukasschreiber commented Feb 6, 2021

same here
Windows 10 Home

The Extension Host terminates with any sftp Extensions for VS Code since the update

@terrycgao
Copy link

Same here.
Windows 10 Home

@tukerty
Copy link

tukerty commented Feb 7, 2021

same
MacOs - Big Sur
VsCode - 1.53.0
liximomo.sftp - 1.12.9

@tamasgt
Copy link

tamasgt commented Feb 7, 2021

Same here.
Windows 10 Pro
VsCode: 1.53.0
SFTP: 1.12.9

@the88g
Copy link

the88g commented Feb 7, 2021

+1
I've rolled back to November and disabled auto updates for the first time :(

@chenyekun1
Copy link

Same bug here.
Windwos 10 LTSC 1809
VS Code : 1.53.0
SFTP : 1.12.9
I think maybe this extension not compatible with the latest version of VS Code?

@ZxGame00
Copy link

ZxGame00 commented Feb 8, 2021

Same bug here.
macOs Catalina 10.15.7
Vs Code:1.53.0
SFTP:1.12.9

@oktayaydogan
Copy link

same
MacOs - Big Sur
VsCode - 1.53.0
liximomo.sftp - 1.12.9

@averywu
Copy link

averywu commented Feb 8, 2021

Same
MacOSX - 10.15.7
VSCode - 1.53.0
liximomo.sftp - 1.12.9

Console :
workbench.desktop.main.js:60 [IPC Library: File Watcher (nsfw)] (node:3988) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit
b @ workbench.desktop.main.js:60
workbench.desktop.main.js:60 [Extension Host] (node:3987) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
b @ workbench.desktop.main.js:60
workbench.desktop.main.js:1734 Extension host terminated unexpectedly. Code: null Signal: SIGSEGV
_onExtensionHostCrashed @ workbench.desktop.main.js:1734
workbench.desktop.main.js:618 ERR Extension host terminated unexpectedly. The following extensions were running: vscode.microsoft-authentication, vscode.debug-auto-launch, vscode.emmet, vscode.merge-conflict, vscode.testing-editor-contributions, ms-vscode.js-debug, vscode.github-authentication, vscode.configuration-editing, vscode.extension-editing, vscode.json-language-features, vscode.npm, liximomo.sftp
workbench.desktop.main.js:738 Extension host terminated unexpectedly.
onDidChangeNotification @ workbench.desktop.main.js:738
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/8490d3dde47c57ba65ec40dd192d014fd2113496/core/bootstrap.js.map:
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/8490d3dde47c57ba65ec40dd192d014fd2113496/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout

@ghost
Copy link

ghost commented Feb 8, 2021

Same here
MacOSX - 10.15.7
VSCode - 1.53.0
liximomo.sftp - 1.12.9

@allexandry
Copy link

Same here.
Windows 10 Pro
VsCode: 1.53.0
SFTP: 1.12.9

Important !

@sevenleo
Copy link

sevenleo commented Feb 8, 2021

Temporary solution:
Rollback Vscode to version 1.52 and disable updates
https://code.visualstudio.com/updates/v1_52

https://stackoverflow.com/questions/49346733/how-to-downgrade-vscode

@ddirks
Copy link

ddirks commented Feb 9, 2021

Same here.
Windows 10 Pro
VsCode: 1.53.0
SFTP: 1.12.9

I am connecting to a centos server (Linux 2.6.32-754.30.2.el6.x86_64) tunneled via a gateway machine running Solaris (5.10 Generic_153153-01 sun4v sparc) if that's useful information.

Rolling back to VScode version 1.52 does provide a workaround.

@insuns
Copy link

insuns commented Feb 9, 2021

same
MacOs - Big Sur
VsCode - 1.53.0
liximomo.sftp - 1.12.9

@ericzhao007
Copy link

+1

1 similar comment
@jiankafei
Copy link

+1

@ericzhao007
Copy link

只有使用私钥的时候才有这个问题,使用账号密码是正常的

@jiankafei
Copy link

使用账号密码也有这个问题,win10

@zorapeteri
Copy link

Same here

MacOS Big Sur v11.1
VSCode v1.53.0
liximono.sftp v1.12.9

@Hopfrosch
Copy link

Hopfrosch commented Feb 9, 2021

Same problem here!
Windwos 10
VS Code : 1.53.0
SFTP : 1.12.9

I went back to version 1.51 from October and it worked. Version 1.52 did not work for me.

@ylihao
Copy link

ylihao commented Feb 9, 2021

Yup same here.

MacOS BigSur 11.2
VSC 1.53.0
SFTP 1.12.9

@pacoVela
Copy link

pacoVela commented Feb 9, 2021

Same:
Debian 10.8
rolled back to 1.52 solves it...
:(

@elvenfighter
Copy link

elvenfighter commented Feb 9, 2021

Confirming on Ubuntu 20.10 x86_64. Attaching develper console logs
-1612869483251.log

@allexandry
Copy link

allexandry commented Feb 9, 2021 via email

@6b796b75
Copy link

6b796b75 commented Feb 9, 2021

broken by electron/electron#27673
temp solution is to not use diffie-hellman key exchange method
comment out/update KexAlgorithms in server sshd config (/etc/ssh/sshd_config)

@isildrum
Copy link

isildrum commented Feb 9, 2021

Same here.
Windows 10 Pro
VS Code 1.53
SFTP 1.12.9

@KFRANCMM
Copy link

KFRANCMM commented Feb 9, 2021

I tried the December version, but it didn't work

Version: 1.52.1 (system setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363

Debug output

[02-09 12:23:52] [debug] Client: Trying 10.20.5.5 on port 5600 ...
[02-09 12:23:52] [debug] Client: Connected
[02-09 12:23:52] [debug] Remote ident: 'SSH-2.0-OpenSSH_5.5'
[02-09 12:23:52] [debug] Outgoing: Writing KEXINIT
[02-09 12:23:52] [debug] DEBUG: Comparing KEXINITs ...
[02-09 12:23:52] [debug] (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
[02-09 12:23:52] [debug] (remote) KEX algorithms: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
[02-09 12:23:52] [debug] KEX algorithm: diffie-hellman-group-exchange-sha256
[02-09 12:23:52] [debug] (local) Host key formats: ssh-ed25519,ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
[02-09 12:23:52] [debug] (remote) Host key formats: ssh-rsa,ssh-dss
[02-09 12:23:52] [debug] Host key format: ssh-rsa
[02-09 12:23:52] [debug] (local) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com
[02-09 12:23:52] [debug] (remote) Client->Server ciphers: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
[02-09 12:23:52] [debug] Client->Server Cipher: aes128-ctr
[02-09 12:23:52] [debug] (local) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm,aes128-gcm@openssh.com,aes256-gcm,aes256-gcm@openssh.com
[02-09 12:23:52] [debug] (remote) Server->Client ciphers: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
[02-09 12:23:52] [debug] Server->Client Cipher: aes128-ctr
[02-09 12:23:52] [debug] (local) Client->Server HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1
[02-09 12:23:52] [debug] (remote) Client->Server HMAC algorithms: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
[02-09 12:23:52] [debug] Client->Server HMAC algorithm: hmac-sha1
[02-09 12:23:52] [debug] (local) Server->Client HMAC algorithms: hmac-sha2-256,hmac-sha2-512,hmac-sha1
[02-09 12:23:52] [debug] (remote) Server->Client HMAC algorithms: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
[02-09 12:23:52] [debug] Server->Client HMAC algorithm: hmac-sha1
[02-09 12:23:52] [debug] (local) Client->Server compression algorithms: none,zlib@openssh.com,zlib
[02-09 12:23:52] [debug] (remote) Client->Server compression algorithms: none,zlib@openssh.com
[02-09 12:23:52] [debug] Client->Server compression algorithm: none
[02-09 12:23:52] [debug] (local) Server->Client compression algorithms: none,zlib@openssh.com,zlib
[02-09 12:23:52] [debug] (remote) Server->Client compression algorithms: none,zlib@openssh.com
[02-09 12:23:52] [debug] Server->Client compression algorithm: none
[02-09 12:23:52] [debug] Outgoing: Writing KEXDH_GEX_REQUEST
[02-09 12:24:07] [debug] Outgoing: Writing KEXDH_GEX_INIT
[02-09 12:24:09] [debug] Outgoing: Writing DISCONNECT (BY_APPLICATION)

@vikicoder007
Copy link

Same here.
Windows 10 Pro
VS Code 1.53.1
SFTP 1.12.9

@R4xx4r
Copy link

R4xx4r commented Feb 10, 2021

Same here

OS:
Ubuntu 20.10

VS Code:

Version: 1.53.0
Commit: 8490d3dde47c57ba65ec40dd192d014fd2113496
Date: 2021-02-03T15:56:04.185Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.8.0-43-generic

SFTP:
1.12.9

@bansan85
Copy link

Now, it looks like there is a workaround (#883 (comment)).
Please, report your case only if the workaround does not work.
Thanks,

@manuzcom
Copy link

When connect to centos 7 ssh server has no error occurs.
But when connect to centos 6 ssh server has same problem.

@gaelganlut
Copy link

gaelganlut commented Feb 19, 2021

Now, it looks like there is a workaround (#883 (comment)).
Please, report your case only if the workaround does not work.
Thanks,

Not working :(
Extension stopped working since today for me
Im getting these errors:

(this one when i reenable the extension)abstractExtensionService.ts:718 [liximomo.sftp]: A view with id remoteExplorer is already registered.
_logMessageInConsole @ abstractExtensionService.ts:718
_handleExtensionPointMessage @ abstractExtensionService.ts:671
K @ abstractExtensionService.ts:645
_msg @ extensionsRegistry.ts:36
error @ extensionsRegistry.ts:45
(anonymous) @ viewsExtensionPoint.ts:447
(anonymous) @ viewsExtensionPoint.ts:440
A @ collections.ts:42
addViews @ viewsExtensionPoint.ts:425
(anonymous) @ viewsExtensionPoint.ts:413
_handle @ extensionsRegistry.ts:141
acceptUsers @ extensionsRegistry.ts:132
_handleExtensionPoint @ abstractExtensionService.ts:705
_doHandleExtensionPoints @ abstractExtensionService.ts:651
_deltaExtensions @ abstractExtensionService.ts:253
async function (async)
_deltaExtensions @ abstractExtensionService.ts:210
_handleDeltaExtensions @ abstractExtensionService.ts:194
(anonymous) @ abstractExtensionService.ts:152
fire @ event.ts:623
setEnablement @ extensionEnablementService.ts:152
async function (async)
setEnablement @ extensionEnablementService.ts:149
doSetEnablement @ extensionsWorkbenchService.ts:1177
checkAndSetEnablement @ extensionsWorkbenchService.ts:1104
promptAndSetEnablement @ extensionsWorkbenchService.ts:1067
setEnablement @ extensionsWorkbenchService.ts:931
run @ extensionsActions.ts:1129
runAction @ actions.ts:203
run @ actions.ts:195
onClick @ actionViewItems.ts:163
(anonymous) @ menu.ts:454
setTimeout (async)
(anonymous) @ menu.ts:453
console.ts:137 [Extension Host] (node:19744) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
b @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:35
_doInvokeHandler @ rpcProtocol.ts:409
_invokeHandler @ rpcProtocol.ts:394
_receiveRequest @ rpcProtocol.ts:310
_receiveOneMessage @ rpcProtocol.ts:237
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:623
fire @ ipc.net.ts:468
_receiveMessage @ ipc.net.ts:821
(anonymous) @ ipc.net.ts:660
fire @ event.ts:623
acceptChunk @ ipc.net.ts:241
(anonymous) @ ipc.net.ts:202
I @ ipc.net.ts:32
emit @ events.js:315
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:271
Readable.push @ _stream_readable.js:212
onStreamRead @ internal/stream_base_commons.js:186
abstractExtensionService.ts:466 Extension host terminated unexpectedly. Code: 3221225477 Signal: null

@aesculus
Copy link

The #883 (comment) fix worked for me.

@nicokaiser
Copy link

While #883 seems to workaround the problem for some situations, it is not a universal fix, as some servers do not support other key exchange algorithms, and changing this is beyond the influcence.

@mean-cj
Copy link

mean-cj commented Feb 21, 2021

The #883 (comment) fix worked for me.

confirm work for now.

@yangdezuan
Copy link

The #883 (comment) fix worked for me.

confirm work for now.
thanks!

@montorodiaz
Copy link

For other users facing this issue - as the main problem is related to the Electron and createDiffieHellman then you can disable/remove "diffie-hellman-group-exchange-sha256" algorithm as specified in Wiki - SFTP only Config.

In other words, you need to edit sftp.json file and specify following algorithms as supported for each SFTP profile:

"algorithms": {
    "kex": [
        "ecdh-sha2-nistp256",
        "ecdh-sha2-nistp384",
        "ecdh-sha2-nistp521",
        "diffie-hellman-group14-sha1"
    ],
    "cipher": [
        "aes128-ctr",
        "aes192-ctr",
        "aes256-ctr",
        "aes128-gcm",
        "aes128-gcm@openssh.com",
        "aes256-gcm",
        "aes256-gcm@openssh.com"
    ],
    "serverHostKey": [
        "ssh-rsa",
        "ecdsa-sha2-nistp256",
        "ecdsa-sha2-nistp384",
        "ecdsa-sha2-nistp521"
    ],
    "hmac": [
        "hmac-sha2-256",
        "hmac-sha2-512",
        "hmac-sha1"
    ]
}

^ As you can see "diffie-hellman-group-exchange-sha256" is not specified. After doing this everything works fine with 1.53.x versions. Not really the best solution but still.

This work for me.

@nicokaiser
Copy link

Please do not comment "works for me". It is known that changing the kex algorithms may work for some setups, but not for all. This bug needs to be solved in Electron.

@arvislacis
Copy link

arvislacis commented Feb 22, 2021

As far as I have read into Electron issues etc. then problem is already fixed, it just needs to be included (the new/fixed Electron version) into VSCode. So probably may be solved with next or so VSCode updates.

@ghost
Copy link

ghost commented Feb 26, 2021

Related to #881.

@Bilalh
Copy link

Bilalh commented Mar 4, 2021

VS Code 1.54.0 (February) fixed the issue for me.

@thomstark
Copy link

thomstark commented Mar 4, 2021

I had the same issue so I updated to 1.54.0 and now all files open with no content. I can connect to the server but all files that I open are blank.

EDIT: Downgrading to 1.52.1 is the only thing that has worked for me.

@ddirks
Copy link

ddirks commented Mar 5, 2021

VS Code 1.54.1 seems to have resolved this issue. After updating, I backed out the change to sftp.json described by arvislacis in #883 (comment) and the extension functions as it did prior to version 1.53.

@evitanasevska
Copy link

evitanasevska commented Mar 6, 2021

This problem occurred for me after the newest update, so it's definitely still an issue.

MacOs - Big Sur
VS code - 1.54.1

EDIT: I got around it by downgrading to version 1.53 and turned off auto updates until this bug is fixed :)
https://code.visualstudio.com/updates/v1_53?fbclid=IwAR0zIouIzVP22mUzgWq0MnhNkCICV1xAH3j8xadyGdWVGt6FfxjZ5U82Mt8

@nlarusstone
Copy link

nlarusstone commented Mar 23, 2021

I'm still seeing this on VS code -- 1.54.3, Big Sur -- 11.2

@ghost
Copy link

ghost commented Mar 23, 2021

There's probably some goofy interaction with another popular plugin. Someone can start digging into this if they'd like to. Need all the help I can get.

@AndrisJefimovs
Copy link

Same here
Version: 1.54.3 (system setup)
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T10:55:45.459Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042

Disabling the extension Quick HTML Previewer solves the problem and the error disappeared.

@IPENprj
Copy link

IPENprj commented Apr 11, 2021

Same Issue

Version: 1.55.1 (system setup)
Commit: 08a217c4d27a02a5bcde898fd7981bda5b49391b
Date: 2021-04-07T15:01:54.977Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT ia32 6.1.7601

@dave105010
Copy link

Is this solved yet? vscode 1.55.2 keeps crashing on macOS Big Sur. I disabled every single extension and messed up my entire development environment configuration to pinpoint this. Turns out the vscode is the culprit. This needs to be resolved. I cannot work on anything anymore. Are we going back to the "vi" or "vim" era?

@neophiliac
Copy link

Version: 1.55.2
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:37:02.931Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.11.0-16-generic

Deleted ~/.vscode directory, "Extension host terminated unexpectedly" on startup.

@igorrecioh
Copy link

Same issue here:

Version: 1.57.1 (Universal)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:32.912Z (2 wks ago)
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Darwin x64 15.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests