vscode: Extension Host broken
When I startup my mscode I immediately get the information that my extension host terminated unexpectedly.
I reinstalled mscode via dnf and snap and did not install any extension -> I get the same message always.
My system information
Version: 1.40.1
Commit: 8795a9889db74563ddd43eb0a897a2384129a619
Date: 2019-11-13T16:49:30.162Z
Electron: 6.1.2
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.3.8-200.fc30.x86_64
My errormessage
Extension Host
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3695
## Fatal error in , line 0# ignored##
##FailureMessage Object: 0x7fffca114930
/usr/share/code/resources/app/out/bootstrap-window.js:5 [uncaught exception]: Error: read ECONNRESET
onUnexpectedError @ /usr/share/code/resources/app/out/bootstrap-window.js:5
/usr/share/code/resources/app/out/bootstrap-window.js:6 Error: read ECONNRESET
at Pipe.onStreamRead (/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/internal/stream_base_commons.js:183)
onUnexpectedError @ /usr/share/code/resources/app/out/bootstrap-window.js:6
events.js:177 Uncaught Error: read ECONNRESET
at Pipe.onStreamRead (/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/internal/stream_base_commons.js:183)
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3458 Extension host terminated unexpectedly. Code: null Signal: SIGILL
_onExtensionHostCrashed @ /usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3458
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2596 Extension host terminated unexpectedly.
The effect is: I cant use any extension.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 34 (13 by maintainers)
Commits related to this issue
- Don't use locale strings For #84803 These can cause issues on node 12 — committed to microsoft/vscode by mjbvz 5 years ago
- Don't use locale strings For #84803 These can cause issues on node 12 — committed to mjbvz/vscode by mjbvz 5 years ago
- Don't use locale strings (#85082) For #84803 These can cause issues on node 12 — committed to microsoft/vscode by mjbvz 5 years ago
Fixed with https://github.com/microsoft/vscode/pull/85266
I have my language set to american english but being italian. I use the italian locale for formats such as dates, time, etc. I guess the italian locale for dates is what triggers the bug.
Did further investigation on this, @bpasero is right that the fix for this went in node 12.1.0 and our stable is on node 12.4.0.
But after looking at the fix , its a backport of an ICU patch for this corresponding v8 api, in electron v8 and icu come from chromium, which means the ICU patch has to be backported there too. I was able to repro the crash on electron with the following sample.
> ELECTRON_RUN_AS_NODE=1 LC_ALL=sp ./vscode/.build/electron icu.js
Not sure when but soon after the error came back for me š¦ so even my post from 30 minutes ago is wrong.
The error still happens after uninstalling all extensions.
The error does not happen anymore if I disable the built in Typescript/Javascript extension
exthost.log
The log is for no user extensions, and Typescript/Javascript built in extension enabled (which caused the crash).
This just worked for meā¦ try disabling and then enabling back extension theme āOne Dark Proā (zhuangtongfa.material-theme) then the bug gone!
Same problem and same error message as the first post on Manjaro linux after upgrading vscode from 1.39.2 to 1.40
Downgrading to 1.39.2 seems to make it work again. I also tried 1.40 with only one extension and clean settings and the problem persists, so itās not caused by an extension installed by the user.
I successfully could downgrade mscode to 1.39.2. The problem occured with 1.40.0 also. So my extensions work with the following configuration for now: