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

[VS Code] [Audio] Extension host terminated unexpectedly #1510

Closed
dcardin opened this issue Jan 15, 2019 · 17 comments
Closed

[VS Code] [Audio] Extension host terminated unexpectedly #1510

dcardin opened this issue Jan 15, 2019 · 17 comments

Comments

@dcardin
Copy link

dcardin commented Jan 15, 2019

Product and Version [VS/VSCode]: VSCode 1.30.2
OS Version [macOS/Windows]: Ubuntu 18.04.02
Live Share Extension Version: 0.3.1100
Target Platform or Language [e.g. Node.js]:

Steps to Reproduce / Scenario:
Create a live share session
Click on start audio call

Extension crashes.

Extension host terminated unexpectedly. Code:  null  Signal:  SIGSEGV
t._onExtensionHostCrashed @ extensionService.ts:165
(anonymous) @ extensionService.ts:159
e.fire @ event.ts:228
t._onExtHostProcessExit @ extensionHost.ts:492
(anonymous) @ extensionHost.ts:250
emitTwo @ events.js:126
emit @ events.js:214
__dirname.ChildProcess._handle.onexit @ internal/child_process.js:198
L'hôte d’extension s'est arrêté de manière inattendue.
t.onDidNotificationChange @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
e.fire @ event.ts:228
t.notify @ notifications.ts:113
t.notify @ notificationService.ts:52
t.prompt @ notificationService.ts:91
t._onExtensionHostCrashed @ extensionService.ts:190
(anonymous) @ extensionService.ts:159
e.fire @ event.ts:228
t._onExtHostProcessExit @ extensionHost.ts:492
(anonymous) @ extensionHost.ts:250
emitTwo @ events.js:126
emit @ events.js:214
__dirname.ChildProcess._handle.onexit @ internal/child_process.js:198

liveshare.zip

@daytonellwanger
Copy link
Collaborator

@jasongin to take a look.

@frankdugan3
Copy link

I'm having a similar issue, also on Ubuntu 18.04.

@jasongin jasongin changed the title [VS Code] [Audio] [VS Code] [Audio] Extension host terminated unexpectedly Jan 24, 2019
@catawump
Copy link

catawump commented Mar 1, 2019

I'm also having this issue on Ubuntu 18.04. Uninstalling and reinstalling the extension did not resolve.

@maa3x
Copy link

maa3x commented Jun 11, 2019

Same here!
Live share works but when start audio call, the extension host crashes.
Ubuntu 18.04

@aliruss
Copy link

aliruss commented Jun 11, 2019

i have this problem too

@fsevenm
Copy link

fsevenm commented Jun 23, 2019

I have this problem too. Live share works perfectly but cannot start audio call. Ubuntu 18.04 here.

@Chuxel
Copy link
Member

Chuxel commented Jun 26, 2019

@jasongin I hit something like this as well in VS Code Insiders on Mac.

From: microsoft/vscode#75267

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.

@jasongin
Copy link
Member

@Chuxel the audio extension does not load the native module until you actually try to start/join a call. This error is caused by a crash in native code, not JS. So if you're seeing this crash without tring to start/join a call, then I don't think it would be caused by this extension.

@TheDevMinerTV
Copy link

My extension host crashes upon starting VS Code, so I don't think that the audio part is related to the issue.

@jramsay
Copy link
Member

jramsay commented Jul 22, 2019

We have made some significant updates to our audio extension with the latest Live Share Audio extension release (0.1.60). I've tried to repro using Ubuntu 19.04 with the latest VS Code and VS Live Share Audio extension and haven't been able to repro. Can you try updating VS Code, and both the Live Share & Live Share Audio extensions to the latest versions and see if this fixes your issue?

@lucaskds
Copy link

lucaskds commented Sep 3, 2019

Here it fails silently, only shows 'Connecting audio', then the message disappears.

My logs:
LiveShareLogs.zip

Product and Version [VS/VSCode]: VSCode 1.38.0-insider
OS Version [macOS/Windows]: Ubuntu 18.04.3 LTS (WSL)
Live Share Extension Version: v1.0.752
Live Share Audio Extension Version: v0.1.64

When I do the same using the VS Code - Insiders outside WSL, it works fine.

@PowerWeb5
Copy link

I too have encountered Extension Host termination on VSCode startup with Live Share.

Live Share (not Audio) Extension Update Triggers Extension Host Crash on Windows

However, it occurs every time Live Share gets updated for many months now, and even with Windows 10 x64 (instead of Linux) in my case.

And it occurs with Live Share extension, even when Live Share Audio extension is disabled.

It appears to be related to extension update installation. It occurs every time after each Live Share extension update, and only occurs when those extension updates are installed.

Related Issues to Upvote for Fixing Root Cause in VS Code

I've detailed this further at microsoft/vscode#80165 and described how this appears to be a trend affecting many extensions and needing some core Extension Host-level fixes, in microsoft/vscode#79782, and the need for extension isolation in microsoft/vscode#52116.

Please upvote and comment on those 3 core VSCode issue reports/requests if believe that this is something that the VSCode core team should prioritize in fixing the root cause (vs. many extension-specific temporary workarounds, considering how many other extensions are affected and the 800+ bug reports across them related to this).

Also comment/upvote if you believe that VSCode should improve logging (so can actually identify the extension causing the crash), auto restart the extension host when occurs, and/or implement extension isolation (like I'd proposed in microsoft/vscode#79782) to avoid crashing all extensions when it does occur.

@maa3x
Copy link

maa3x commented Sep 11, 2019

Related: microsoft/vscode#79116

@fubaduba
Copy link
Contributor

@jramsay can we please try and repro this and see if this persists?

@fubaduba fubaduba added the bug label Feb 10, 2020
@ramiroluz
Copy link

Joining a live share session, I get this message:

Extension host terminated unexpectedly.

The session keeps "Loading file tree" forever.
Captura de tela de 2020-04-06 09-27-59
Captura de tela de 2020-04-06 09-27-34

@ramiroluz
Copy link

Joining a live share session, I get this message:

Extension host terminated unexpectedly.

The session keeps "Loading file tree" forever.
Captura de tela de 2020-04-06 09-27-59
Captura de tela de 2020-04-06 09-27-34

In my case it may be related to another extension, look at the log:

-1586176604208.log

TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///usr/share/code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///home/ramiro/.vscode/extensions/redhat.vscode-yaml-0.7.2/syntaxes/yaml.tmLanguage.json
register @ TMScopeRegistry.ts:45
console.ts:137 [Extension Host] [before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4
t.log @ console.ts:137
console.ts:137 [Extension Host] (node:14384) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:137
console.ts:137 [Extension Host] (node:14384) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:137
bootstrap-window.js:213 [uncaught exception]: Error: read ECONNRESET
onUnexpectedError @ bootstrap-window.js:213
bootstrap-window.js:216 Error: read ECONNRESET
    at Pipe.onStreamRead (internal/stream_base_commons.js:183)
onUnexpectedError @ bootstrap-window.js:216
events.js:180 Uncaught Error: read ECONNRESET
    at Pipe.onStreamRead (internal/stream_base_commons.js:183)
abstractExtensionService.ts:155 Extension host terminated unexpectedly. Code:  7  Signal:  null
_onExtensionHostCrashed @ abstractExtensionService.ts:155
notificationsAlerts.ts:40 Extension host terminated unexpectedly.
onDidChangeNotification @ notificationsAlerts.ts:40
log.ts:197   ERR Unable to read file 'vsls:/.vscode/settings.json' (Canceled: Canceled): Error: Unable to read file 'vsls:/.vscode/settings.json' (Canceled: Canceled)
    at _.doReadAsFileStream (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1667:417)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
log.ts:197   ERR Unable to read file 'vsls:/.vscode/tasks.json' (Canceled: Canceled): Error: Unable to read file 'vsls:/.vscode/tasks.json' (Canceled: Canceled)
    at _.doReadAsFileStream (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1667:417)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
log.ts:197   ERR Unable to read file 'vsls:/.vscode/launch.json' (Canceled: Canceled): Error: Unable to read file 'vsls:/.vscode/launch.json' (Canceled: Canceled)
    at _.doReadAsFileStream (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1667:417)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
log.ts:197   ERR Unable to read file 'vsls:/.vscode/settings.json' (Canceled: Canceled): Error: Unable to read file 'vsls:/.vscode/settings.json' (Canceled: Canceled)
    at _.doReadAsFileStream (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1667:417)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
log.ts:197   ERR Unable to read file 'vsls:/.vscode/tasks.json' (Canceled: Canceled): Error: Unable to read file 'vsls:/.vscode/tasks.json' (Canceled: Canceled)
    at _.doReadAsFileStream (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1667:417)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
log.ts:197   ERR Unable to read file 'vsls:/.vscode/launch.json' (Canceled: Canceled): Error: Unable to read file 'vsls:/.vscode/launch.json' (Canceled: Canceled)
    at _.doReadAsFileStream (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1667:417)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
log.ts:197   ERR Canceled: Canceled
    at Object.t.canceled (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:47:183)
    at file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3676:896
    at Array.forEach (<anonymous>)
    at g.dispose (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3676:844)
    at e.dispose (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3689:229)
    at K._stopExtensionHostProcess (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3569:961)
    at K._onExtensionHostCrashed (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3570:752)
    at K._onExtensionHostCrashed (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:4041:630)
    at K._onExtensionHostCrashOrExit (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3570:605)
    at file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3570:334
    at c.fire (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:110:24)
    at z._onExtHostProcessExit (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3946:890)
    at ChildProcess.<anonymous> (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3941:866)
    at ChildProcess.emit (events.js:203:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
log.ts:197   ERR No file system provider found for resource 'vsls:/pom.xml': ENOPRO: No file system provider found for resource 'vsls:/pom.xml'
    at _.withProvider (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1662:245)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)
    at async _.exists (file:///usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1664:571)
    at async Promise.all (index 0)
extensionHost.ts:211 Extension Host
extensionHost.ts:212 /home/ramiro/.vscode/extensions/stephen-riley.regexworkbench-2.0.4/node_modules/@stephen-riley/pcre2-wasm/dist/libpcre2.js:1(function (exports, require, module, __filename, __dirname) { var Module=typeof Module!=="undefined"?Module:{};!function(){const{resolve:resolve}=require("path");Module.locateFile=function(file){return resolve(__dirname,file)};Module.loaded=new Promise(resolve=>{Module.onRuntimeInitialized=resolve})}();var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_HAS_NODE=false;var ENVIRONMENT_IS_SHELL=false;ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_HAS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";[RuntimeError: abort(Error: ENOENT: no such file or directory, unlink '/home/ramiro/.local/share/vsliveshare/cascade.json') at Error: 	at jsStackTrace (/home/ramiro/.vscode/extensions/stephen-riley.regexworkbench-2.0.4/node_modules/@stephen-riley/pcre2-wasm/dist/libpcre2.js:1:22439)	at stackTrace (/home/ramiro/.vscode/extensions/stephen-riley.regexworkbench-2.0.4/node_modules/@stephen-riley/pcre2-wasm/dist/libpcre2.js:1:22610)	at process.abort (/home/ramiro/.vscode/extensions/stephen-riley.regexworkbench-2.0.4/node_modules/@stephen-riley/pcre2-wasm/dist/libpcre2.js:1:18716)	at process.emit (events.js:208:15)	at processEmit [as emit] (/home/ramiro/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.1891/out/prod/extension-prod.js:93481:32)	at processPromiseRejections (internal/process/promises.js:201:33)	at processTicksAndRejections (internal/process/task_queues.js:86:32)	at process.abort (/home/ramiro/.vscode/extensions/stephen-riley.regexworkbench-2.0.4/node_modules/@stephen-riley/pcre2-wasm/dist/libpcre2.js:1:18747)	at process.emit (events.js:208:15)	at processEmit [as emit] (/home/ramiro/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.1891/out/prod/extension-prod.js:93481:32)	at processPromiseRejections (internal/process/promises.js:201:33)	at processTicksAndRejections (internal/process/task_queues.js:86:32)] {  vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {}, CallSite {} ]}

@lostintangent
Copy link
Member

Closing is as resolved, since we believe this issue was fixed and it hasn't been reported in a while. Please re-open it if you're continuing to experience this bug. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests