Skip to content

Extension Host broken #84803

Closed
Closed

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.

Activity

  1. hangdogvisa commented on Nov 14, 2019

    @hangdogvisa

    I have almost the same issue, for the same version!

  2. gbesoain commented on Nov 14, 2019

    @gbesoain

    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

  3. mjbvz commented on Nov 14, 2019

    @mjbvz
    Contributor

    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-extensions

  4. geniodellavittoria commented on Nov 14, 2019

    @geniodellavittoria

    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

  5. geniodellavittoria commented on Nov 14, 2019

    @geniodellavittoria

    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-extensions

    I tried that, doesnt affect the already built-in-extensions, therefore still the same problem

  6. MichaelGruben commented on Nov 15, 2019

    @MichaelGruben
    Author

    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:

    Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
    Date: 2019-10-15T15:33:40.634Z
    Electron: 4.2.10
    Chrome: 69.0.3497.128
    Node.js: 10.11.0
    V8: 6.9.427.31-electron.0
    OS: Linux x64 5.3.11-200.fc30.x86_64```
    
  7. geniodellavittoria commented on Nov 15, 2019

    @geniodellavittoria

    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:

    Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
    Date: 2019-10-15T15:33:40.634Z
    Electron: 4.2.10
    Chrome: 69.0.3497.128
    Node.js: 10.11.0
    V8: 6.9.427.31-electron.0
    OS: Linux x64 5.3.11-200.fc30.x86_64```
    

    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

  8. fazo96 commented on Nov 15, 2019

    @fazo96

    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.

  9. MareikeTaeubner commented on Nov 18, 2019

    @MareikeTaeubner

    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).

    vscodeCrash

    Downgrading to 1.39.2 works for now.

  10. gbesoain commented on Nov 18, 2019

    @gbesoain

    This just worked for me... try disabling and then enabling back extension theme "One Dark Pro" (zhuangtongfa.material-theme) then the bug gone!

  11. alexdima commented on Nov 18, 2019

    @alexdima
    Member

    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 Folder will 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:

    TO_UPLOAD

  12. added
    info-needed
    on Nov 18, 2019
  13. geniodellavittoria commented on Nov 18, 2019

    @geniodellavittoria

    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 Folder will show the folder where logs are kept.

    exthost.log

  14. alexdima commented on Nov 18, 2019

    @alexdima
    Member

    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):

    • built-in extension-editing
    • built-in typescript-language-features
    • user angular.ng-template-0.802.3
    • user ms-vscode.vscode-typescript-tslint-plugin-1.2.3
    • built-in configuration-editing
    • built-in json-language-features
    • built-in npm
    • built-in debug-auto-launch
    • built-in emmet
    • built-in git
    • built-in merge-conflict
    • user streetsidesoftware.code-spell-checker-1.7.20

    This 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.

  15. 27 remaining items

  16. deepak1556 commented on Nov 19, 2019

    @deepak1556
    Collaborator
  17. geniodellavittoria commented on Nov 19, 2019

    @geniodellavittoria

    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 !

  18. MareikeTaeubner commented on Nov 19, 2019

    @MareikeTaeubner

    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.

  19. fazo96 commented on Nov 19, 2019

    @fazo96

    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.

  20. added
    bug
    on Nov 19, 2019
  21. deepak1556 commented on Nov 21, 2019

    @deepak1556
    Collaborator

    Fixed with #85266

  22. chrmarti commented on Nov 22, 2019

    @chrmarti
    Collaborator

    Robo (@deepak1556) What are the steps to verify this fix?

  23. deepak1556 commented on Nov 22, 2019

    @deepak1556
    Collaborator

    Christof Marti (@chrmarti) using any of the following apis should not crash extension host when run under unsupported locale on your system.

    new Date().toLocaleString()
    new Date().toLocaleTimeString()
    new Date().toLocaleDateString()
    new Date().toLocaleFormat()
    
    • Verify by starting vscode with LC_ALL=sp code and see the extension host runs without any issues.
    • Verify by using one of the above apis in an extension doesn't cause issues.
  24. MichaelGruben commented on Nov 27, 2019

    @MichaelGruben
    Author

    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

  25. locked and limited conversation to collaborators on Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcandidateelectronupstreamverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions