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

Closed
iqmeta opened this issue Jun 11, 2019 · 12 comments
Closed

Extension host terminated unexpectedly. #75267

iqmeta opened this issue Jun 11, 2019 · 12 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@iqmeta
Copy link

iqmeta commented Jun 11, 2019

Issue Type: Bug

Extension host terminated unexpectedly. Restart server buttons, crash 2sec. later again.

workbench.main.js:3183 Extension host terminated unexpectedly. Code: 3221225477 Signal: null
_onExtensionHostCrashed @ workbench.main.js:3183
workbench.main.js:2379 Extension host terminated unexpectedly.
onDidNotificationChange @ workbench.main.js:2379

No extensions even installed. Did clean reinstall.

VS Code version: Code 1.35.0 (553cfb2, 2019-06-04T01:17:12.481Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz (4 x 2400)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_off
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 12.00GB (1.92GB free)
Process Argv
Screen Reader no
VM 100%
Extensions: none
@vscodebot
Copy link

vscodebot bot commented Jun 11, 2019

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

@vscodebot vscodebot bot added the terminal Integrated terminal issues label Jun 11, 2019
@iqmeta
Copy link
Author

iqmeta commented Jun 11, 2019

image

[2019-06-11 15:38:20.758] [sharedprocess] [info] Scanned user extensions: 0
[2019-06-11 15:38:20.819] [sharedprocess] [info] Scanned system extensions: 72

[2019-06-11 15:47:02.437] [exthost] [info] extension host started
[2019-06-11 15:47:02.489] [exthost] [info] ExtensionService#_doActivateExtension vscode.extension-editing {"startup":false,"activationEvent":"onLanguage:typescript"}
[2019-06-11 15:47:02.489] [exthost] [info] ExtensionService#loadCommonJSModule c:\Program Files\Microsoft VS Code\resources\app\extensions\extension-editing\dist\extension
[2019-06-11 15:47:02.501] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features {"startup":false,"activationEvent":"onLanguage:typescript"}
[2019-06-11 15:47:02.501] [exthost] [info] ExtensionService#loadCommonJSModule c:\Program Files\Microsoft VS Code\resources\app\extensions\typescript-language-features\dist\extension
[2019-06-11 15:47:02.523] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":""}
[2019-06-11 15:47:02.523] [exthost] [info] ExtensionService#loadCommonJSModule c:\Program Files\Microsoft VS Code\resources\app\extensions\debug-auto-launch\dist\extension
[2019-06-11 15:47:02.529] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"
"}
[2019-06-11 15:47:02.529] [exthost] [info] ExtensionService#loadCommonJSModule c:\Program Files\Microsoft VS Code\resources\app\extensions\emmet\dist\extension
[2019-06-11 15:47:02.541] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":""}
[2019-06-11 15:47:02.541] [exthost] [info] ExtensionService#loadCommonJSModule c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\main
[2019-06-11 15:47:02.581] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":"
"}
[2019-06-11 15:47:02.581] [exthost] [info] ExtensionService#loadCommonJSModule c:\Program Files\Microsoft VS Code\resources\app\extensions\merge-conflict\dist\extension
[2019-06-11 15:47:02.595] [exthost] [info] eager extensions activated

image

@singcl
Copy link

singcl commented Jun 12, 2019

I have the same problem.

@iqmeta
Copy link
Author

iqmeta commented Jun 24, 2019

Gone back, no problems on this version:

Version: 1.31.1 (user setup)
Commit: 1b8e830
Date: 2019-02-12T02:20:54.427Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.16299

@Chuxel
Copy link
Member

Chuxel commented Jun 24, 2019

@sandy081 I can repro this as well.

Trace logs from Dev Tools Console:

extensionHost.ts:288 [Extension Host] debugger listening on port 43708
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.addEnvironment` appears multiple times in the `commands` section.
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.connect` appears multiple times in the `commands` section.
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.disconnectEnvironment` appears multiple times in the `commands` section.
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.delete` appears multiple times in the `commands` section.
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.portForwarding` appears multiple times in the `commands` section.
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.unshareServer` appears multiple times in the `commands` section.
abstractExtensionService.ts:394 [ms-vsliveshare.cloudenv-explorer]: Command `cloudenv.getAccessToken` appears multiple times in the `commands` section.
abstractTextMateService.ts:52 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///Applications/Visual%20Studio%20Code%20-%20Insiders.app/Contents/Resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///Users/chuck/.vscode-insiders/extensions/redhat.vscode-yaml-0.4.1/syntaxes/yaml.tmLanguage.json
register @ abstractTextMateService.ts:52
_handleGrammarExtensionPointUser @ abstractTextMateService.ts:361
_.grammarsExtPoint.setHandler.e @ abstractTextMateService.ts:196
_handle @ extensionsRegistry.ts:144
acceptUsers @ extensionsRegistry.ts:135
_handleExtensionPoint @ abstractExtensionService.ts:377
_doHandleExtensionPoints @ abstractExtensionService.ts:325
_handleExtensionPoints @ extensionService.ts:520
(anonymous) @ extensionService.ts:510
(anonymous) @ errors.ts:184
n @ errors.ts:184
_startLocalExtensionHost @ extensionService.ts:509
(anonymous) @ extensionService.ts:505
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
_scanAndHandleExtensions @ extensionService.ts:424
(anonymous) @ abstractExtensionService.ts:102
(anonymous) @ errors.ts:184
n @ errors.ts:184
_initialize @ abstractExtensionService.ts:98
g.runWhenIdle @ extensionService.ts:133
requestIdleCallback (async)
t.runWhenIdle @ async.ts:695
P._lifecycleService.when.then @ extensionService.ts:132
Promise.then (async)
P @ extensionService.ts:130
_createInstance @ instantiationService.ts:110
_createServiceInstance @ instantiationService.ts:217
_createServiceInstanceWithOwner @ instantiationService.ts:206
_createAndCacheServiceInstance @ instantiationService.ts:195
_getOrCreateServiceInstance @ instantiationService.ts:135
get @ instantiationService.ts:53
initLayout @ layout.ts:183
(anonymous) @ workbench.ts:138
(anonymous) @ errors.ts:184
n @ errors.ts:184
e.invokeFunction.t @ workbench.ts:132
invokeFunction @ instantiationService.ts:60
startup @ workbench.ts:132
(anonymous) @ main.ts:128
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
open @ main.ts:112
t.main @ main.ts:357
(anonymous) @ workbench.js:30
Promise.then (async)
bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26
e @ bootstrap-window.js:132
t._invokeFactory @ loader.js:985
t.complete @ loader.js:995
s._onModuleComplete @ loader.js:1595
s._onModuleComplete @ loader.js:1607
s._resolve @ loader.js:1557
s.defineModule @ loader.js:1221
o @ loader.js:1645
c @ loader.js:776
(anonymous) @ gettingStarted.contribution.ts:18
(anonymous) @ fake:1
t._createAndEvalScript @ loader.js:779
(anonymous) @ loader.js:762
a @ loader.js:866
(anonymous) @ loader.js:875
readFileAfterClose @ internal/fs/read_file_context.js:53
abstractExtensionService.ts:390 [xabikos.JavaScriptSnippets]: Unknown language in `contributes.JavaScriptSnippets.language`. Provided value: vue
_logMessageInConsole @ abstractExtensionService.ts:390
_handleExtensionPointMessage @ abstractExtensionService.ts:344
n @ abstractExtensionService.ts:320
_msg @ extensionsRegistry.ts:37
error @ extensionsRegistry.ts:46
e.toValidSnippet @ snippetsService.ts:62
w.point.setHandler.e @ snippetsService.ts:214
_handle @ extensionsRegistry.ts:144
setHandler @ extensionsRegistry.ts:129
_initExtensionSnippets @ snippetsService.ts:204
E._pendingWork.push.Promise.resolve.o.when.then @ snippetsService.ts:145
Promise.then (async)
E @ snippetsService.ts:144
_createInstance @ instantiationService.ts:110
a.IdleValue @ instantiationService.ts:223
_executor @ async.ts:726
_handle.t.runWhenIdle @ async.ts:733
requestIdleCallback (async)
t.runWhenIdle @ async.ts:695
w @ async.ts:733
_createServiceInstance @ instantiationService.ts:223
_createServiceInstanceWithOwner @ instantiationService.ts:206
_createServiceInstanceWithOwner @ instantiationService.ts:208
_createServiceInstanceWithOwner @ instantiationService.ts:208
_createAndCacheServiceInstance @ instantiationService.ts:195
_getOrCreateServiceInstance @ instantiationService.ts:135
_createInstance @ instantiationService.ts:87
createInstance @ instantiationService.ts:75
e @ codeEditorWidget.ts:304
_createInstance @ instantiationService.ts:110
createInstance @ instantiationService.ts:75
createEditorControl @ textEditor.ts:191
createEditor @ textEditor.ts:136
create @ baseEditor.ts:112
doCreateEditorControl @ editorControl.ts:117
doShowEditorControl @ editorControl.ts:86
(anonymous) @ editorControl.ts:68
(anonymous) @ errors.ts:184
n @ errors.ts:184
openEditor @ editorControl.ts:61
(anonymous) @ editorGroupView.ts:843
(anonymous) @ errors.ts:184
n @ errors.ts:184
t @ editorGroupView.ts:841
(anonymous) @ editorGroupView.ts:841
(anonymous) @ errors.ts:184
n @ errors.ts:184
doShowEditor @ editorGroupView.ts:836
(anonymous) @ editorGroupView.ts:446
(anonymous) @ errors.ts:184
n @ errors.ts:184
restoreEditors @ editorGroupView.ts:422
e @ editorGroupView.ts:147
_createInstance @ instantiationService.ts:110
createInstance @ instantiationService.ts:75
createFromSerialized @ editorGroupView.ts:62
doCreateGroupView @ editorPart.ts:515
fromJSON @ editorPart.ts:895
deserializeNode @ grid.ts:455
deserializeNode @ grid.ts:448
deserialize @ grid.ts:484
doCreateGridControlWithState @ editorPart.ts:889
doCreateGridControlWithPreviousState @ editorPart.ts:856
doCreateGridControl @ editorPart.ts:828
createContentArea @ editorPart.ts:804
create @ part.ts:69
forEach @ workbench.ts:302
renderWorkbench @ workbench.ts:292
(anonymous) @ workbench.ts:150
(anonymous) @ errors.ts:184
n @ errors.ts:184
e.invokeFunction.t @ workbench.ts:132
invokeFunction @ instantiationService.ts:60
startup @ workbench.ts:132
(anonymous) @ main.ts:128
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
r @ errors.ts:184
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
open @ main.ts:112
t.main @ main.ts:357
(anonymous) @ workbench.js:30
Promise.then (async)
bootstrapWindow.load.removeDeveloperKeybindingsAfterLoad @ workbench.js:26
e @ bootstrap-window.js:132
t._invokeFactory @ loader.js:985
t.complete @ loader.js:995
s._onModuleComplete @ loader.js:1595
s._onModuleComplete @ loader.js:1607
s._resolve @ loader.js:1557
s.defineModule @ loader.js:1221
o @ loader.js:1645
c @ loader.js:776
(anonymous) @ gettingStarted.contribution.ts:18
(anonymous) @ fake:1
t._createAndEvalScript @ loader.js:779
(anonymous) @ loader.js:762
a @ loader.js:866
(anonymous) @ loader.js:875
readFileAfterClose @ internal/fs/read_file_context.js:53
log.ts:173   ERR Error: [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/Users/chuck/Developer/Repos/_microsoft/vscode-dev-containers/containers/kubernetes-helm/.vscode'
log.ts:173   ERR [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/Users/chuck/Developer/Repos/_microsoft/vscode-dev-containers/containers/kubernetes-helm/.vscode'
extensionHost.ts:198 Extension Host
extensionHost.ts:199 Debugger attached.
abstractExtensionService.ts:155 Extension host terminated unexpectedly. Code:  null  Signal:  SIGSEGV
_onExtensionHostCrashed @ abstractExtensionService.ts:155
_onExtensionHostCrashed @ extensionService.ts:363
_onExtensionHostCrashOrExit @ abstractExtensionService.ts:147
e.onDidExit @ abstractExtensionService.ts:137
fire @ event.ts:558
_onExtHostProcessExit @ extensionHost.ts:457
_extensionHostProcess.on @ extensionHost.ts:213
emit @ events.js:182
ChildProcess._handle.onexit @ internal/child_process.js:240
notificationsAlerts.ts:40 Extension host terminated unexpectedly.
onDidNotificationChange @ notificationsAlerts.ts:40
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:558
addNotification @ notifications.ts:156
notify @ notificationService.ts:55
prompt @ notificationService.ts:90
_onExtensionHostCrashed @ extensionService.ts:383
_onExtensionHostCrashOrExit @ abstractExtensionService.ts:147
e.onDidExit @ abstractExtensionService.ts:137
fire @ event.ts:558
_onExtHostProcessExit @ extensionHost.ts:457
_extensionHostProcess.on @ extensionHost.ts:213
emit @ events.js:182
ChildProcess._handle.onexit @ internal/child_process.js:240

@sandy081
Copy link
Member

@Chuxel Thanks for the log, I cannot see what caused this with Signal: SIGSEGV.

Can you check extension host log in output channel if we can get any additional info.

Also, do you suspect if you have any extensions that could cause this?

@sandy081 sandy081 added the info-needed Issue requires more information from poster label Jun 25, 2019
@sandy081
Copy link
Member

@iqmeta Can you also provide the log from dev tools?

@Chuxel
Copy link
Member

Chuxel commented Jun 25, 2019

@sandy081 Attached are full logs. 20190625T094743.zip

Right now starting up VS Code Insiders does not cause the bomb. Two difference I can see from the logs are:

  1. Extensions were getting removed from disk after an update and there was a note about getting rid of unused language packs. This is in the crash sharedprocess.log but not when I start now:
[2019-06-25 09:47:46.668] [sharedprocess] [info] main {"machineId":"bfab06063a5496825f7dfb2fed677220157eee7fa5665ecbd0031440d47bab9b"}
[2019-06-25 09:47:46.911] [sharedprocess] [info] Deleted from disk ms-vscode-remote.remote-ssh-edit-nightly /Users/chuck/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-edit-nightly-2019.6.34020
[2019-06-25 09:47:46.912] [sharedprocess] [info] Deleted from disk ms-vscode-remote.remote-ssh-nightly /Users/chuck/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-nightly-2019.6.34020
[2019-06-25 09:47:46.912] [sharedprocess] [info] Deleted from disk ms-vscode-remote.remote-wsl /Users/chuck/.vscode-insiders/extensions/ms-vscode-remote.remote-wsl-0.38.0
[2019-06-25 09:47:46.913] [sharedprocess] [info] Deleted from disk shan.code-settings-sync /Users/chuck/.vscode-insiders/extensions/shan.code-settings-sync-3.3.0
[2019-06-25 09:47:46.950] [sharedprocess] [info] Deleted from disk ms-vscode-remote.remote-ssh-explorer-nightly /Users/chuck/.vscode-insiders/extensions/ms-vscode-remote.remote-ssh-explorer-nightly-2019.6.34020
[2019-06-25 09:47:47.020] [sharedprocess] [info] Deleted from disk ms-vscode-remote.remote-containers /Users/chuck/.vscode-insiders/extensions/ms-vscode-remote.remote-containers-0.63.0
[2019-06-25 09:48:26.673] [sharedprocess] [info] Starting to clean up unused language packs.
  1. The other possibility is Live Share Audio is causing some sort of issue. I don't see that extensions' log in the crash logs.

@Chuxel
Copy link
Member

Chuxel commented Jun 25, 2019

Actually both Live Share Audio and GitHub Pull request are missing. Here's fresh start logs w/o the crash for comparison: 20190625T103640.zip

At least in this run it looks like GitHub Pull Request is before Live Share Audio in the startup sequence.

@iqmeta
Copy link
Author

iqmeta commented Jun 26, 2019

@iqmeta Can you also provide the log from dev tools?

Some directions on the logs how and where..

@sandy081
Copy link
Member

@Chuxel Unfortunately I cannot find any helpful information from the logs. No hints of crash.

But interestingly I see issues against Live Share Audio extension with similar crash log - microsoft/live-share#1510

So your crash could be due to that extension.

@iqmeta You can get logs from

  • Help -> Developer Tools -> Console
  • View -> Output -> Logs

@vscodebot
Copy link

vscodebot bot commented Jul 3, 2019

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Jul 3, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 17, 2019
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