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. #112442

Closed
PravinKadwe opened this issue Dec 14, 2020 · 8 comments
Closed

Extension host terminated unexpectedly. #112442

PravinKadwe opened this issue Dec 14, 2020 · 8 comments
Labels
info-needed Issue requires more information from poster

Comments

@PravinKadwe
Copy link

Is there any solution to the "Extension host terminated unexpectedly." problem? this is a notification pop up when the VSCode window loads.

@vscodebot
Copy link

vscodebot bot commented Dec 14, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@gjsjohnmurray
Copy link
Contributor

/needsMoreInfo

Find out which extension is causing the problem, then report it to the extension author.

@PravinKadwe
Copy link
Author

I open the Developer Tool for the notification that popped up in VSCode and these errors are shown in Console:

ERR [File Watcher (node.js)] Error: ENOENT: no such file or log.ts:197 directory, stat 'e:\Study\Bootstrap\Bootstrap.vscode'

abstractExtensionService.ts:840 Extension 'ms-toolsai.jupyter cannot use PROPOSED API (must started out of dev or enabled via --enable-proposed-api)
updateEnableProposedApi @ abstractExtensionService.ts:829

console.ts:137 [Extension Host] Error: ENOENT: no such file or directory, open 'c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js'
t.log @ console.ts:112

abstractExtensionService.ts:467 Extension host terminated unexpectedly. Code: 0 Signal: null
_onExtensionHostCrashed @ abstractExtensionService.ts:431

log.ts:197 ERR Extension host terminated unexpectedly. The following extensions were running:

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

extensionHostManager.ts:73 Error received from starting extension host
(anonymous) @ extensionHostManager.ts:37

extensionHostManager.ts:74 timeout
(anonymous) @ extensionHostManager.ts:37

lifecycle.ts:158 Error: Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!
at d.add (lifecycle.ts:158)
at e._register (lifecycle.ts:188)
at extensionHostManager.ts:80

add @ lifecycle.ts:156
_register @ lifecycle.ts:156
(anonymous) @ extensionHostManager.ts:37
log.ts:197 ERR Error: No authentication provider 'microsoft' is currently registered.
at E.getSessions (authenticationService.ts:471)
at async e.getAccounts (userDataSyncWorkbenchService.ts:204)
at async e.update (userDataSyncWorkbenchService.ts:189)
at async e.initialize (userDataSyncWorkbenchService.ts:160)
at async e.waitAndInitialize (userDataSyncWorkbenchService.ts:143)

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

@gjsjohnmurray
Copy link
Contributor

Make sure you are running 1.52, then use the new bisect command to find out which extension is causing the problem.

@PravinKadwe
Copy link
Author

Thanks for your support. I find out the reason behind the notification "Extension host terminated unexpectedly."
when we install VSCode ( from the official link (with the recent updates as well ) ) into our system most of the Antiviruses deletes two files from the folders.

[ C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node ]
AND
[C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\worker]

These two files get deleted by Antiviruses

1 ) extensionHostProcess.js
Address:
C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js

2) extensionHostWorker.js
Address:
C:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\worker\extensionHostWorker.js

The SOLUTION is: [ I'm using Quick Heal Antiviruses But Steps are the same for most of the Antiviruses ]

  1. open antiviruses then click on the scan option, look for the " Quarantine & Backup " option click on it,

  2. Then click on " view files ",

  3. Then from the list of quarantined files restore both the files [ extensionHostProcess.js and extensionHostWorker.js ] individually by clicking on the restore button,

  4. Make shower you click in a check box " Add this to exclusion list ",

  5. Then click on " Yes ".

Well, my problem has been solved by this method.

@mjbvz
Copy link
Collaborator

mjbvz commented Dec 21, 2020

Closing since this sounds like a problem with the antivirus program, not VS Code

@mjbvz mjbvz closed this as completed Dec 21, 2020
@rogierlommers
Copy link

Does this also apply to MacOS? And where do I find these two files?

  • extensionHostProcess.js
  • extensionHostWorker.js

Running MacOS 11.1 (Big Sur) and facing the problem since a few weeks now.
I'm (forced to) using Carbon Black Cloud (version 3.5.1.13).

@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 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

5 participants
@rogierlommers @gjsjohnmurray @mjbvz @PravinKadwe and others