-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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 broken #84803
Comments
I have almost the same issue, for the same version! |
The same... "Extension host terminated unexpectedly" after either mouse hover + Alt or Alt+Click over code hiperlinks Versión: 1.40.1 (system setup) |
Do you see this if you run VS Code with all external extensions disabled? To check, start code from the command line using |
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 |
I tried that, doesnt affect the already built-in-extensions, therefore still the same problem |
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:
|
I did sucessfully downgrade vscode to 1.39.2 as well. My configuration right now: Version: 1.39.2 (system setup) |
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. |
This just worked for me... try disabling and then enabling back extension theme "One Dark Pro" (zhuangtongfa.material-theme) then the bug gone! |
@geniodellavittoria @MichaelGruben @KajendranPulendran @gbesoain @fazo96 @MareikeTaeubner @MichaelGruben @KajendranPulendran @gbesoain @fazo96 @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 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
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. |
Ah sorry had to switch back to the updated vs code 1.40 and forgot to uninstall my installed extensions here the log without installed extensions |
My post from 3 days ago was wrong: I thought I tried with an empty clean configuration but I didn't clean it up properly. I tried a proper clean setup and then installing all the extensions I had to see which one caused the issue. To my surprise the issue never came back. Turns out for some unknown reason I had two versions of the GitLens extension in my old For anyone affected, try checking your |
After reinstalling 1.40.1 the log looks not suspicious (even though I get again the error on startup. This one from this morning on the other hand does contain an error (although I don't know if I already switched to the older version at that time - sry :( ) Disabling the specified Typescript/Javascript extension as instructed does indeed remove the error on my side. No error is printed on the developer console and git integration seems to work fine as well again (hinting that the extension host works - I guess). Re-enabling this extension again directly leads to the error - but still nothing in the log file. Do you perhaps need another log I did not post? |
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 The log is for no user extensions, and Typescript/Javascript built in extension enabled (which caused the crash). |
@geniodellavittoria @MareikeTaeubner @fazo96 Thanks a lot for following through so quickly. All your attempts convince me that the crash is caused by our built-in @mjbvz Here is the only relevant hit I found when searching for |
@alexandrudima great catch. Actually, I use node.js for my web development and ran into that node.js error already on my system. Turns out that happens in node.js 12 but is fixed in node.js 13 I run Manjaro Linux (distro based on arch linux) and in the repos we have node.js 12. In the testing repo however it's already at 13 so I use the testing package to be able to continue doing node.js development on my machine Perhaps from 1.40 vscode has switched to node.js 12 internally? That would explain the bug. Using node.js 13 inside vscode would fix it I guess. |
@fazo96 Yes, 1.40 includes an Electron update that brings us to node.js 12. @deepak1556 It looks like we are hitting a nodejs 12 bug in our extension host - nodejs/node#27379 -, from the TS extension. I don't really know what is special about these machines, do you perhaps have a certain OS locale other than English? (this doesn't reproduce on my machine) |
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.
|
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. |
To repro on vscode launch with an invalid/unsupported locale and point to a typescript file so that
@mjbvz was able to confirm your fix averts this issue atleast with our builtin extensions 👍 I will backport https://chromium-review.googlesource.com/c/v8/v8/+/1769479 for more broader fix with the next candidate release. |
For microsoft#84803 These can cause issues on node 12
Electron PR electron/electron#21188 |
For #84803 These can cause issues on node 12
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 ! |
Thanks everyone for investigating and as I see already fixing this so quickly! As a follow up: |
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. |
Fixed with #85266 |
@deepak1556 What are the steps to verify this fix? |
@chrmarti using any of the following apis should not crash extension host when run under unsupported locale on your system.
|
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 |
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
My errormessage
The effect is: I cant use any extension.
The text was updated successfully, but these errors were encountered: