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 terminated unexpectedly. #114714

Closed
OOOHA opened this issue Jan 21, 2021 · 83 comments
Closed

Extension host terminated unexpectedly. #114714

OOOHA opened this issue Jan 21, 2021 · 83 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@OOOHA
Copy link

OOOHA commented Jan 21, 2021

Issue Type: Bug

I am using Mac OS Big Sur 11.1 with Macbook Pro 2017(intel i5). VScode always pop up the issue"Extension host terminated unexpectedly." especially while I use C++.

VS Code version: Code 1.52.1 (ea3859d, 2020-12-16T16:30:02.420Z)
OS version: Darwin x64 20.2.0

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz (4 x 2300)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 4, 5, 4
Memory (System) 8.00GB (0.87GB free)
Process Argv --crash-reporter-id 3f12e0b1-128d-4528-9fb3-29fc2b9c754f
Screen Reader no
VM 0%
Extensions (62)
Extension Author (truncated) Version
html-snippets abu 0.2.1
Bookmarks ale 12.1.4
code-gnu-global aus 0.2.2
bracket-pair-colorizer Coe 1.0.61
bracket-pair-colorizer-2 Coe 0.2.0
doxdocgen csc 1.1.0
c-cpp-compile-run dan 1.0.13
vscode-eslint dba 2.1.14
githistory don 0.6.14
gitlens eam 11.1.3
vscode-html-css ecm 1.9.1
EditorConfig Edi 0.16.4
prettier-vscode esb 5.8.0
git-project-manager fel 1.7.1
php-debug fel 1.14.5
php-intellisense fel 2.3.14
php-pack fel 1.0.2
vscode-firefox-debug fir 2.9.1
code-runner for 0.11.2
vscode-javac geo 0.2.37
vscode-tree-sitter geo 0.1.26
vscode-pull-request-github Git 0.22.0
go gol 0.21.0
go-nightly gol 2021.1.2021
todo-tree Gru 0.0.196
CppSnippets har 0.0.15
better-cpp-syntax jef 1.15.5
flutter-tree mar 1.0.0
git-graph mhu 1.28.0
Angular-BeastCode Mik 10.0.3
vscode-clang mit 0.2.3
csharp ms- 1.23.8
python ms- 2020.12.424452561
vscode-pylance ms- 2021.1.2
jupyter ms- 2020.12.414227025
remote-containers ms- 0.154.2
remote-ssh ms- 0.62.0
remote-ssh-edit ms- 0.62.0
remote-wsl ms- 0.52.0
vscode-remote-extensionpack ms- 0.20.0
cmake-tools ms- 1.5.3
cpptools ms- 1.1.3
cpptools-extension-pack ms- 1.0.0
vsliveshare ms- 1.0.3484
vsliveshare-audio ms- 0.1.91
vsonline ms- 1.0.3076
debugger-for-chrome msj 4.12.11
java red 0.74.0
LiveServer rit 5.6.1
document-tree sac 1.0.1
code-spell-checker str 1.10.2
open-in-browser tec 2.0.0
cmake twx 0.0.17
windows-terminal Tyr 0.6.0
vscodeintellicode Vis 1.2.10
vscode-java-debug vsc 0.30.0
vscode-java-dependency vsc 0.17.0
vscode-java-pack vsc 0.12.1
vscode-java-test vsc 0.27.0
vscode-maven vsc 0.27.1
vscode-icons vsc 11.1.0
html-css-class-completion Zig 1.20.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30211401
wsl2promptcf:30224613
pythonvsdeb440:30242242
unusedpromptcf:30224611
folderexplorer:30224614
openfilemenucf:30224648
pythonvsded773cf:30236630
vstes627:30244334
pythonvspyt875:30247033

@vscodebot
Copy link

vscodebot bot commented Jan 21, 2021

@OOOHA
Copy link
Author

OOOHA commented Jan 29, 2021

And the Mac mini with M1 has the issue too.

@deepak1556
Copy link
Contributor

Can you open devtools and paste the log output from Console when you see this crash.

@deepak1556 deepak1556 added macos-big-sur info-needed Issue requires more information from poster labels Jan 29, 2021
@phishee
Copy link

phishee commented Jan 29, 2021

I have run the Extension:Bisect tool and it has been unable to identify a problematic extension.

VS Code Version: Version: 1.52.1
Commit: ea3859d
Mac OSX 11.1 Big Sur
MacBook Pro (I7 - 15 inch 2016)

I have attached my console log from DevTools as well.
vs_code_console_log.txt

Any ideas?

@deepak1556
Copy link
Contributor

@phishee from your log the extension host just got a normal exit and not a crash

Extension host terminated unexpectedly. Code:  0  Signal:  null

This is usually that some antivirus software tries to kill the process, might want to check on that.

@phishee
Copy link

phishee commented Jan 29, 2021

Thanks for the heads-up on the AV. I believe that may be the culprit as I think IT may have installed something new recently.

@bryant-slack
Copy link

After upgrading to Big Sur I started to run into this issue as well. I have never seen this issue prior to upgrading. I tried uninstalling and reinstalling all the extensions as well as vscode and still see issues.

Here's a screenshot of console.logs I see:
image

System Info:

  MAC OS: Big Sur 11.1
  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro15,1
  Processor Name:	8-Core Intel Core i9
  Processor Speed:	2.4 GHz
  Memory:	16 GB

@nickstock
Copy link

Having this issue on m1 macbook, happens two or three times over three hours or so, cant put my finger on it but seems to happen when vs code looses focus i.e when i switch to browser and then go back it has crashed.

@nol166
Copy link

nol166 commented Feb 2, 2021

Having the same issue. Here is a log from the console:

-1612279647031.log

Edit

Version: 1.53.0-insider
Commit: b99487f4168ba70369edfb8629303be0d3979d4b
Date: 2021-02-02T00:13:59.390Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin arm64 20.3.0

Update
Mine was also caused by bracket pair colorizer 2

@nickstock
Copy link

nickstock commented Feb 2, 2021

just updated my big sur(m1) and also vscode now the extension host crashes silently!! it is very disconcerting when you go to commit your changes and vscode tells you you need to initialise a repository in the current folder. I wounder what would happen if i actually tried?
actually it seems the extension host no longer loads correctly at all and is not crashing, it seems even after vscode quit and restart its actually not working or partly broken.

@nickstock
Copy link

ahh, I found out how to test the extensions as they are loading, Bracket-Pair-Colorizer-2 was causing the extension host to completely crash out on startup of vscode

@deepak1556
Copy link
Contributor

@nickstock and others on m1 seeing extension host crash, issue is tracked at #115646. Please follow it for udpates.

@simonhyphen8
Copy link

As #115646 is closed, I am posting my comment here as I am seeing the same error ("Extension Host Terminated Unexpectedly")

I'm using VSCode with Salesforce.
MacBook Pro M1 with Big Sur V11.0
VSCode version 1.53.0
I only have 14 extensions installed - the standard Salesforce ones, VSCode LiveShare, ESLint and a Salesforce Documenter.
Restarting the extension host using the button that pops up works, as does closing & reopening the project, but this is proving very frustrating. I can't tell in these posts if this issue is fixed or not, or if I have to do something to resolve it myself?

Any advice greatly appreciated!

Log Info:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1747 Overwriting grammar scope name to file mapping for scope text.log.
Old grammar file: file:https:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/log/syntaxes/log.tmLanguage.json.
New grammar file: file:https:///Users/simonmolloy/.vscode/extensions/salesforce.salesforcedx-vscode-apex-replay-debugger-50.16.0/syntaxes/apexlog.tmLanguage.json
register @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1747
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1747 Overwriting grammar scope name to file mapping for scope text.html.basic.
Old grammar file: file:https:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/html/syntaxes/html.tmLanguage.json.
New grammar file: file:https:///Users/simonmolloy/.vscode/extensions/salesforce.salesforcedx-vscode-lightning-50.16.0/syntaxes/html.tmLanguage.json
register @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1747
4/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Cannot find en-gb, defaulting to en
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] (node:9590) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Cannot find en-gb, defaulting to en
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Activation Mode: autodetect
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Aura Components Extension Activated
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] WorkspaceType detected: 4
3/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Cannot find en-gb, defaulting to en
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Activation Mode: autodetect
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Lightning Web Components Extension Activated
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] WorkspaceType detected: 4
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] SFDX CLI Extension Activated
5/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Cannot find en-gb, defaulting to en
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Listening on port 63009
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1961 [[object Object]]The "file" argument must be of type string. Received null
$onExtensionRuntimeError @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1961
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1961 TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received null
at validateString (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/internal/validators.js:120)
at normalizeSpawnArguments (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/child_process.js:415)
at Object.spawn (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/child_process.js:551)
at Server. (/Users/simonmolloy/.vscode/extensions/salesforce.salesforce-vscode-slds-1.4.0/client/out/sldsLanguageClient.js:151)
at Object.onceWrapper (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/events.js:421)
at Server.emit (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/events.js:315)
at emitListeningNT (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/net.js:1347)
at processTicksAndRejections (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/internal/process/task_queues.js:83)
$onExtensionRuntimeError @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1961
4/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received null at validateString (internal/validators.js:120:11) at normalizeSpawnArguments (child_process.js:415:3) at Object.spawn (child_process.js:551:16) at Server. (/Users/simonmolloy/.vscode/extensions/salesforce.salesforce-vscode-slds-1.4.0/client/out/sldsLanguageClient.js:151:41) at Object.onceWrapper (events.js:421:28) at Server.emit (events.js:315:20) at emitListeningNT (net.js:1347:10) at processTicksAndRejections (internal/process/task_queues.js:83:21)
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
4/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Cannot find en-gb, defaulting to en
b @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Apex Debugger Extension Activated
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Setting up ISV Debugger environment variables
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Configured file watcher for .sfdx/sfdx-config.json
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Apex Replay Debugger Extension Activated
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Project is not for ISV Debugger
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:60 [Extension Host] Deleted environment variables SFDX_DEFAULTUSERNAME and SFDX_INSTANCE_URL
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:738 SFDX: Deploy Source to Org failed to run
onDidChangeNotification @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:738
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1734 Extension host terminated unexpectedly. Code: null Signal: SIGSEGV
_onExtensionHostCrashed @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1734
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:618 ERR Extension host terminated unexpectedly. The following extensions were running: vscode.microsoft-authentication, vscode.emmet, vscode.html-language-features, HugoOM.sfdx-autoheader, salesforce.salesforcedx-vscode-core, vscode.debug-auto-launch, vscode.git, ms-vsliveshare.vsliveshare, vscode.npm, salesforce.salesforcedx-vscode-lightning, dbaeumer.vscode-eslint, salesforce.salesforcedx-vscode-lwc, ms-vscode.js-debug, vscode.github-authentication, salesforce.salesforce-vscode-slds, salesforce.salesforcedx-vscode-apex, salesforce.salesforcedx-vscode-visualforce, salesforce.salesforcedx-vscode-apex-debugger, salesforce.salesforcedx-vscode-apex-replay-debugger, vscode.github, ms-vsliveshare.vsliveshare-audio, vscode.merge-conflict, vscode.testing-editor-contributions, vscode.typescript-language-features, vscode.configuration-editing, vscode.json-language-features, vscode.extension-editing
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:738 Extension host terminated unexpectedly.
onDidChangeNotification @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:738
bootstrap-window.js:1 [uncaught exception]: Error: This socket has been ended by the other party
g @ bootstrap-window.js:1
bootstrap-window.js:1 Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/net.js:455)
at v.write (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2653)
at v._writeNow (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at Immediate. (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at processImmediate (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/internal/timers.js:456)
g @ bootstrap-window.js:1
events.js:292 Uncaught Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/net.js:455)
at v.write (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2653)
at v._writeNow (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at Immediate. (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at processImmediate (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/internal/timers.js:456)
bootstrap-window.js:1 [uncaught exception]: Error: This socket has been ended by the other party
g @ bootstrap-window.js:1
bootstrap-window.js:1 Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/net.js:455)
at v.write (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2653)
at v._writeNow (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at v.flush (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at v.dispose (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at Object.S [as dispose] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:14)
at i.dispose (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2659
g @ bootstrap-window.js:1
events.js:292 Uncaught Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/net.js:455)
at v.write (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2653)
at v._writeNow (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at v.flush (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at v.dispose (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at Object.S [as dispose] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:14)
at i.dispose (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:76)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2659

@deepak1556
Copy link
Contributor

@OOOHA can you check if the issue is present with latest insiders https://code.visualstudio.com/insiders

@deepak1556 deepak1556 added info-needed Issue requires more information from poster and removed info-needed Issue requires more information from poster labels Feb 9, 2021
@simonhyphen8
Copy link

I have installed Insiders this morning - I will monitor it and see if the crashes still occur.

@deepak1556
Copy link
Contributor

@derekschinke which platform ? Please paste the output from devtools #114714 (comment)

@OOOHA
Copy link
Author

OOOHA commented Mar 9, 2021

@deepak1556 The latest version has the problem too.
And it will pop up as soon as I open VSCode.

And The same problem occurs on the M1 Mac mini running Mac OS 11.2.2 with the latest arm64 VSCode version.

@deepak1556
Copy link
Contributor

@OOOHA can you provide the output from devtools console when it happens, also can you attach the crash report following these steps https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports

@derekschinke
Copy link

@OOOHA I ended up having to completely delete everything related to VSCode from my M1 Mac, and then install the latest stable with M1 support.

@OOOHA
Copy link
Author

OOOHA commented Mar 10, 2021

@derekschinke Which version did you install?
I did the same thing with you and I installed the arm64 version.Should I try the universal version?
I've got the same error on both kind of Mac

@OOOHA
Copy link
Author

OOOHA commented Mar 10, 2021

@deepak1556 it says "zsh: parse error near `\n' "but didn't lead me to any folder.
Or did I did it in the wrong way?

@deepak1556
Copy link
Contributor

Can you share what you tried ? It should be something like,

code --crash-reporter-directory /tmp/vscode-crash

@OOOHA
Copy link
Author

OOOHA commented Mar 10, 2021

@deepak1556 I ran code --crash-reporter-directory in Terminal.
Is that correct ?
Or where should I run this command line?

@deepak1556
Copy link
Contributor

I ran code --crash-reporter-directory in Terminal. Is that correct ?

Yes that is correct, if the extension host crashes, a report will be generated under the directory you had provided for the --crash-reporter-directory cli option.

@OOOHA
Copy link
Author

OOOHA commented Mar 10, 2021

I ran code --crash-reporter-directory in Terminal. Is that correct ?

Yes that is correct, if the extension host crashes, a report will be generated under the directory you had provided for the --crash-reporter-directory cli option.

No matter how many time I tried it always give me the same output "sh: parse error near `\n'".
What should I do?

@tamuratak
Copy link
Contributor

It seems to be a duplicate of georgewfraser/vscode-tree-sitter/issues/28.

@OOOHA
Copy link
Author

OOOHA commented Apr 18, 2021

It seems to be a duplicate of georgewfraser/vscode-tree-sitter/issues/28.

I just found out by running extension Bisect a lot of times.
just Before I'm going to update.
I'll try my mac tomorrow.
Thanks!

@deepak1556 deepak1556 removed the windows VS Code on Windows issues label May 5, 2021
@oneshhh
Copy link

oneshhh commented Jun 18, 2021

hey guys so i was working on vs code one day and suddenly my vscode started giving me extension host terminated unexpectedly and i cant use it correctly and also my live server has stopped working. also it started to happen after i installed node.js i don't know what happened but yea..
i am using a macbook os el capitan 10.11
intel core 2 duo 2.4ghz
i know pretty old but works fine. please help me guys

ill leave a screenshot down there please help me with anything you can.
Screen Shot 2021-06-18 at 10 23 47

@OOOHA
Copy link
Author

OOOHA commented Jun 18, 2021

hey guys so i was working on vs code one day and suddenly my vscode started giving me extension host terminated unexpectedly and i cant use it correctly and also my live server has stopped working. also it started to happen after i installed node.js i don't know what happened but yea..
i am using a macbook os el capitan 10.11
intel core 2 duo 2.4ghz
i know pretty old but works fine. please help me guys

ill leave a screenshot down there please help me with anything you can.
Screen Shot 2021-06-18 at 10 23 47

Maybe try the "extension Bisect "
use cmd+shift+P and search for extension Bisect.

@oneshhh
Copy link

oneshhh commented Jun 18, 2021

didn't helped it got activated and disabled my two extensions i se prettier and live server, this is the developer tools screenshot, can you please check if you understand anything that is happening from it.
Screen Shot 2021-06-18 at 11 10 00

@OOOHA
Copy link
Author

OOOHA commented Jun 18, 2021

didn't helped it got activated and disabled my two extensions i se prettier and live server, this is the developer tools screenshot, can you please check if you understand anything that is happening from it.
Screen Shot 2021-06-18 at 11 10 00

This is over my ability.
@deepak1556 might know the problem.

@ghost
Copy link

ghost commented Jun 18, 2021

electron/js2c/renderer_init.js:61 The vm module of Node.js is deprecated in the renderer process and will be removed.
t._load @ electron/js2c/renderer_init.js:61
console.ts:137 [Extension Host] (node:865) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code Helper (Renderer) --trace-deprecation ... to show where the warning was created)
b @ console.ts:137
localProcessExtensionHost.ts:272 Extension Host
localProcessExtensionHost.ts:273 dyld: lazy symbol binding failed: Symbol not found: _pthread_chdir_np Referenced from: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/../../../Electron Framework.framework/Electron Framework Expected in: /usr/lib/libSystem.B.dylibdyld: Symbol not found: _pthread_chdir_np Referenced from: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/../../../Electron Framework.framework/Electron Framework Expected in: /usr/lib/libSystem.B.dylib
abstractExtensionService.ts:621 Extension host terminated unexpectedly. Code: null Signal: SIGTRAP
_onExtensionHostCrashed @ abstractExtensionService.ts:621
log.ts:296 ERR Extension host terminated unexpectedly. The following extensions were running: vscode.microsoft-authentication, vscode.emmet, vscode.html-language-features, vscode.debug-auto-launch, vscode.git, ritwickdey.LiveServer
notificationsAlerts.ts:40 Extension host terminated unexpectedly.
onDidChangeNotification @ notificationsAlerts.ts:40
log.ts:296 ERR Error: No authentication provider 'microsoft' is currently registered.
at L.getSessions (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2000)
at processTicksAndRejections (internal/process/task_queues.js:93)
at async bi.getAccounts (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
at async bi.update (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
at async bi.initialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
at async bi.waitAndInitialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
log.ts:290 WARN Settings Sync: Accounts are not initialized
ipc.cp.ts:247 IPC "Search" crashed with exit code null and signal SIGTRAP
(anonymous) @ ipc.cp.ts:247
SAME PROBLEM!!!!

@oneshhh
Copy link

oneshhh commented Jun 18, 2021

man i can't find anything please help anyone it would be appreciated

@TimMensch
Copy link

TimMensch commented Jun 18, 2021

In the past month I've been getting CONSTANT failures of the extension host. I've tried both the release and the insiders build of VS Code. It's bad enough that I usually can't go for 20 minutes without a failure (!!).

And I'm sorry, but I don't have time to pause my day job to fully debug VS Code. Code needs ROBUST, isolated handling of extensions; it really, really, really shouldn't be possible to crash the extension host under any circumstances.

A particular extension could die. Sure. Fine. But to crash it so that the entire editor suddenly has no extension functionality? No, not cool. And if something does cause it to crash, there should be telemetry that lets the user know which extension is at fault! And no, I don't have any AV running on my system outside of the built-in Windows Defender, so that's not the issue unless it's something Microsoft itself is doing to kill VS Code. And with people above reporting that they're running zero user-installed extensions, it doesn't seem likely that it's a third party extension issue anyway.

From my point of view VS Code has gone from being the most awesome editor/mini-IDE to being absolutely flaky and an embarrassment that I'm feeling I need to apologize for recommending to my team in a matter of a few months. PLEASE put some serious manpower on this problem! If each extension needs to run in a sandbox, or to be otherwise isolated from the rest of the app, then that should be a priority!

I've disabled most of the extensions I've used to see if I can track down which of the many extensions I use is causing the issue, but ... extremely frustrated here, especially when after I look I see there are dozens of similar reports dating back months and no actual resolution to the underlying problem. 👎

Sorry for being so grumpy but I hate having an editor that I've been recommending for years suddenly start behaving as if it's
barely functional and can't be relied upon.


CPUs AMD Ryzen 7 3800XT 8-Core Processor (16 x 3893)
GPU Status 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled
Load (avg)  
Memory (System) 31.95GB (11.59GB free)
Process Argv --crash-reporter-id 1ea1d622-9637-463a-91c3-3a0788249eae
Screen Reader no
VM 0%

Extension Author (truncated) Version
better-toml bun 0.3.2
dart-code Dar 3.23.1
flutter Dar 3.23.0
vscode-eslint dba 2.1.23
EditorConfig Edi 0.16.4
prettier-vscode esb 6.4.0
vscode-firefox-debug fir 2.9.4
vscode-jest-runner fir 0.4.44
cloudcode goo 1.12.1
gc-excelviewer Gra 3.0.42
vscode-graphql Gra 0.3.16
theme-dark-plus-contrast k3a 0.1.101
rainbow-csv mec 1.8.1
file-downloader min 1.0.11
vscode-json5 mrm 1.0.0
vscode-scss mrm 0.10.0
vscode-docker ms- 1.13.0
csharp ms- 1.23.12
vscode-kubernetes-tools ms- 1.3.3
remote-containers ms- 0.183.0
remote-wsl ms- 0.58.1
cmake-tools ms- 1.7.3
cpptools ms- 1.4.1
debugger-for-chrome msj 4.12.12
debugger-for-edge msj 1.0.15
microsoft-office-add-in-debugger mso 0.2.0
twospacefourspace Ohm 0.2.1
prettyxml Pra 0.8.1
prisma Pri 2.25.0
remote-vscode raf 1.1.0
vscode-commons red 0.0.6
vscode-yaml red 0.20.0
vscode-sort-json ric 1.20.0
code-settings-sync Sha 3.4.3
code-spell-checker str 1.10.2
jest-typescript-toolbox sve 1.3.2
vsfire tob 1.4.1
cmake twx 0.0.17
es-quotes vil 0.2.6
change-case wma 1.0.0
markdown-all-in-one yzh 3.4.0

@TimMensch
Copy link

Killing almost all of the above extensions doesn't help at all. Still saw the extension host failure.

Seemingly related: It often dies when trying to debug a Node process with a node-pwa debug target. And by "dies" I mean it never actually finishes starting up the process, and can't stop debugging; hitting stop or trying to kill it does nothing. I have to quit VS Code and re-run. This often coincides with the Extension Host failure.

@deepak1556
Copy link
Contributor

@oneshhh @TimMensch the issue you are facing is #125989 please follow it for updates.

@TimMensch
Copy link

@deepak1556 am I reading that issue wrong? It looks like it's a Mac only issue, and I'm on Windows 10.

@deepak1556
Copy link
Contributor

Sorry I meant to ping @FeDeP2 who had similar trace as #125989

For your scenario, are you able to get crash dumps following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-and-symbolicating-local-crash-reports , also what is the output in devtools when the extension host crashes ?

@oneshhh
Copy link

oneshhh commented Jun 21, 2021

soo i downgraded to 1.52 and it is working fine now but its too buggy

@farindra
Copy link

Im on mac OS 10.11, for now just downgrade it,
and I downloaded January 2020 (version 1.42) build from https://code.visualstudio.com/updates/v1_42 and ran over the previous installation without uninstalling and surprisingly, the error disappeared and all extensions are loading and working properly.

@oneshhh
Copy link

oneshhh commented Jun 23, 2021

@farindra is it working all good is the extension crashing again? because i also downgraded to 1.52 but it started the same thing with live server.

@TimMensch
Copy link

@deepak1556 Had a chance to run Bisect, and it isolated Prisma as the problematic extension. And it looks like it's a) a known problem, and b) somehow related to an indirect dependency readdirp.

See the full thread here: prisma/language-tools#786

Still seems wrong that one extension can take down all the others.

@Crowl3y
Copy link

Crowl3y commented Jun 29, 2021

All of a sudden this started happening to me out of the blue. Nothing new had been installed on my machine, no Anti-Virus software installed/running. Received an error saying there was no repo and to initialize, but there is 100% a repo.
Almost unusable in it's current state as i have no auto-complete, no search functionality, no git.

Machine: MacBook Pro (Retina, 15-inch, Mid 2014), 2.2 GHz Intel Core i7, El Capitan 10.11.4

Completely uninstalled and downloaded fresh.
On every launch I get the error message "Extension host terminated unexpectedly".
Have ran Bisect, which found nothing.
Disabled every extension, still occurring.

Console errors below:

electron/js2c/renderer_init.js:61
The vm module of Node.js is deprecated in the renderer process and will be removed.
t._load @ electron/js2c/renderer_init.js:61

console.ts:137 [Extension Host]
(node:23913) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code Helper (Renderer) --trace-deprecation ... to show where the warning was created)
b @ console.ts:137

abstractExtensionService.ts:621
Extension host terminated unexpectedly. Code: null Signal: SIGTRAP
_onExtensionHostCrashed @ abstractExtensionService.ts:621

log.ts:296
ERR Extension host terminated unexpectedly. The following extensions were running: vscode.microsoft-authentication, vscode.typescript-language-features, vscode.debug-auto-launch, vscode.git, vscode.npm

notificationsAlerts.ts:40
Extension host terminated unexpectedly.
onDidChangeNotification @ notificationsAlerts.ts:40

log.ts:296
ERR Error: No authentication provider 'microsoft' is currently registered.
at L.getSessions (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2000)
at processTicksAndRejections (internal/process/task_queues.js:93)
at async bi.getAccounts (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
at async bi.update (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
at async bi.initialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)
at async bi.waitAndInitialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2417)

log.ts:290
WARN Settings Sync: Accounts are not initialized

localProcessExtensionHost.ts:272
Extension Host
localProcessExtensionHost.ts:273
dyld: lazy symbol binding failed: Symbol not found: _pthread_chdir_np Referenced from: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/../../../Electron Framework.framework/Electron Framework Expected in: /usr/lib/libSystem.B.dylibdyld: Symbol not found: _pthread_chdir_np Referenced from: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/../../../Electron Framework.framework/Electron Framework Expected in: /usr/lib/libSystem.B.dylib

@deepak1556
Copy link
Contributor

@Crowl3y the issue you are facing is tracked in #125989 and will be fixed in 1.58 stable.

@TimMensch thanks for the follow-up, it is good to know about the problematic extension. As for the design of the extension host, it is better to open a separate issue so that the component owner can talk about it.

Since the original report, this issue got side tracked with reports of crashes by other extensions and core. If you are still experiencing extension host crash with latest insiders https://code.visualstudio.com/insiders, please file a separate issue so that it can be looked into.

@OOOHA are you facing the original issue with macOS 11.4 and latest insiders ?

@OOOHA
Copy link
Author

OOOHA commented Jun 29, 2021

@deepak1556 It's all good for a long time.
Should I close this issue?

@deepak1556
Copy link
Contributor

Yup lets do that, thanks for confirming.

@alexdima
Copy link
Member

alexdima commented Jun 29, 2021

@TimMensch I am sorry about the crashes you have experienced. With VS Code's architecture, we have managed to isolate extensions from the core of VS Code, but all extensions execute together in a single process called the extension host process. So a single misbehaving extension can "take down" the entire extension host. This problem has come up multiple times over the years (e.g. #75627 ) and we plan to investigate spawning multiple extension hosts in the future, but this is not an easy undertaking, nor is it clearly the best thing to do. From your post I see that you probably have over 50 extensions. Spawning an extension host process for each of those extensions would cause stutters under Windows (which is notoriously problematic with spawning very many processes quickly) and might eat up a whole lot of RAM. Also, each extension host needs to be managed (events are sent to it, text buffers are mirrored, etc.) by the renderer process, so the overhead for the renderer to keep around 50 extension host processes might be incredibly high.

Our current strategy is to create tooling to help you isolate problematic extensions. We automatically profile the extension host when it is not responsive and identify the top executing extension (F1 > Running extensions) and render a warning icon next to it. We have other tooling like extension bisect to help narrow down the problematic extension. But ultimately, we need the cooperation of extension authors to improve their extensions to stop causing high CPU usage or crashes. We recommend to our extension authors to move any CPU intensive tasks off the extension host process and into a worker or a separate process.

@vitoneto
Copy link

vitoneto commented Jul 7, 2021

I fixed it!

What i did was:

I was using the 1.57 version of vs code.
After try a lot of things i just deleted vs code and installed 1.54.3 version of vs code.

The version i'm using now is: https://code.visualstudio.com/updates/v1_54

Works for me, i hope to help someone.

@sahmmie
Copy link

sahmmie commented Jul 21, 2021

Still, experiencing the same issue in the thread? @vitoneto says have to downgrade to February build is the only solution, why is this happening?

@vitoneto
Copy link

Now i update to the June 2021 (version 1.58). It's working pretty good also!

@lironesamoun
Copy link

lironesamoun commented Aug 4, 2021

I still experimenting this.
Latest VSCode and latest Big Sure version on M1
It happens on host when I try to edit big CSS or JS file.

Update
Was also caused by bracket pair colorizer 2

@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests