Repository navigation
Closed
Labels
Milestone
Description
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.
Reacted by gbesoain, Raphael Fleischlin and Enrico Fasoli
Activity
hangdogvisa commentedon Nov 14, 2019
I have almost the same issue, for the same version!
gbesoain commentedon Nov 14, 2019
The same...
"Extension host terminated unexpectedly" after either mouse hover + Alt or Alt+Click over code hiperlinks
Versión: 1.40.1 (system setup)
Commit: 8795a98
Fecha: 2019-11-13T16:49:35.976Z
Electron: 6.1.2
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18362
mjbvz commentedon Nov 14, 2019
Do you see this if you run VS Code with all external extensions disabled? To check, start code from the command line using
code --disable-extensionsgeniodellavittoria commentedon Nov 14, 2019
I described the same problem in #84842 without any extensions installed, I did narrow it down to the built-in-extension "typescript and javascript language features". If i disabled that built-in-extension vs code did work with other extensions again. But without this built-in-extension VS Code is not usable --> no intellisense
geniodellavittoria commentedon Nov 14, 2019
I tried that, doesnt affect the already built-in-extensions, therefore still the same problem
MichaelGruben commentedon Nov 15, 2019
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:
geniodellavittoria commentedon Nov 15, 2019
I did sucessfully downgrade vscode to 1.39.2 as well. My configuration right now:
Version: 1.39.2 (system setup)
Commit: 6ab5985
Date: 2019-10-15T15:35:18.241Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362
fazo96 commentedon Nov 15, 2019
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.
MareikeTaeubner commentedon Nov 18, 2019
I have the same problem since 1.40.0 on Windows 10 Pro (not on Ubuntu though). Today I had some additional output next to the Fatal error message (maybe it is relevant).
Downgrading to 1.39.2 works for now.
gbesoain commentedon Nov 18, 2019
This just worked for me... try disabling and then enabling back extension theme "One Dark Pro" (zhuangtongfa.material-theme) then the bug gone!
alexdima commentedon Nov 18, 2019
Tim Bolzern (@geniodellavittoria) Michael Gruben (@MichaelGruben) @KajendranPulendran gbesoain Enrico Fasoli (@fazo96) Mareike Fichtelmann (@MareikeTaeubner)
Can you please attach the extension host logs?
F1 > Developer: Open Logs Folderwill show the folder where logs are kept.Michael Gruben (@MichaelGruben) @KajendranPulendran gbesoain Enrico Fasoli (@fazo96) Mareike Fichtelmann (@MareikeTaeubner) Can you please try to disable the builtin TS extension and check if the crash occurs for you? You can disable the builtin extension by going to the Extensions Viewlet > ... > Show Built-in Extensions . In the first group (FEATURES) find TypeScript and JavaScript Language Features, click on the gear icon and choose disable:
geniodellavittoria commentedon Nov 18, 2019
exthost.log
alexdima commentedon Nov 18, 2019
Tim Bolzern (@geniodellavittoria) I see a lot of extensions being loaded and activated in the extension host from your attached log. I have looked only at the log statements after
[2019-11-18 13:13:54.170](appears to be the last launch):extension-editingtypescript-language-featuresangular.ng-template-0.802.3ms-vscode.vscode-typescript-tslint-plugin-1.2.3configuration-editingjson-language-featuresnpmdebug-auto-launchemmetgitmerge-conflictstreetsidesoftware.code-spell-checker-1.7.20This log still contains 3 user installed extensions (not built-in). Does the crash reproduce when disabling these user installed extensions? Could you attach a log from an extension host that crashes with only built-in extensions? I'm sorry for insisting, but I would like to rule out those 3 extensions.
27 remaining items
deepak1556 commentedon Nov 19, 2019
Electron PR electron/electron#21188
Don't use locale strings (#85082)
geniodellavittoria commentedon Nov 19, 2019
My language was set to English but I had the Swiss-German locale on. I changed the locale to English (UK) and now VS Code works with version 1.40.1. Thanks for your investigations and help !
MareikeTaeubner commentedon Nov 19, 2019
Thanks everyone for investigating and as I see already fixing this so quickly!
As a follow up:
Because of nodejs/node#29338 I had https://www.npmjs.com/package/full-icu globally installed. Thanks to your investigation I removed this package to see whether this fixes the crash. And yes, removing full-icu fixed this issue for 1.40.1 on my side.
fazo96 commentedon Nov 19, 2019
Thanks for the good work guys :) If anyone is still affected, like me, I looked deeper into my system's locale settings and found that I did have some weird botched setup. Through my desktop's system settings I managed to properly keep my desired settings (american english language, italian formats for dates etc) while having vscode 1.40 and nodejs 12 working fine and not running into the toLocaleString() issue.
deepak1556 commentedon Nov 21, 2019
Fixed with #85266
chrmarti commentedon Nov 22, 2019
Robo (@deepak1556) What are the steps to verify this fix?
deepak1556 commentedon Nov 22, 2019
Christof Marti (@chrmarti) using any of the following apis should not crash extension host when run under unsupported locale on your system.
LC_ALL=sp codeand see the extension host runs without any issues.MichaelGruben commentedon Nov 27, 2019
Sorry I sadly had no time to give you my logfiles but now I can officially verify that this is fixed with 1.40.2