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 due to GitHub copilot #176562

Closed
edwardspresume opened this issue Mar 8, 2023 · 35 comments
Closed

Extension host terminated unexpectedly due to GitHub copilot #176562

edwardspresume opened this issue Mar 8, 2023 · 35 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extension-host Extension host issues freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Milestone

Comments

@edwardspresume
Copy link

edwardspresume commented Mar 8, 2023

Type: Bug

My extensions keep terminating. GitHub copilot seem to be the reason for the crash for myself and others. Disabling copilot stops the crashing for us, but we need a better solution

VS Code version: Code 1.76.0 (92da948, 2023-03-01T10:25:16.105Z)
OS version: Linux x64 6.1.12-1-MANJARO
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz (8 x 3292)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 6, 4, 3
Memory (System) 15.51GB (8.98GB free)
Process Argv code/projects/url_finder/v2 --crash-reporter-id 9ca28901-9313-4681-bac3-c399ba55c953
Screen Reader no
VM 0%
DESKTOP_SESSION undefined
XDG_CURRENT_DESKTOP undefined
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE undefined
Extensions (89)
Extension Author (truncated) Version
better-comments aar 3.0.2
Bookmarks ale 13.3.1
project-manager ale 12.7.0
scope-bar amo 0.2.1
chronicler arc 0.1.16
svelte-intellisense ard 0.7.1
astro-vscode ast 0.29.6
tailwind-docs aus 2.0.0
jsoncrack-vscode Ayk 1.0.8
vscode-tailwindcss bra 0.9.7
buildt-vscode Bui 0.2.5
turbo-console-log Cha 2.7.1
regex chr 0.4.0
clippy-ai cli 0.5.0
gitignore cod 0.9.0
vscode-markdownlint Dav 0.49.0
vscode-eslint dba 2.4.0
vscode-faker dee 2.0.0
vscode-axe-linter deq 4.6.0
git-extension-pack don 0.1.3
githistory don 0.6.20
es7-react-js-snippets dsz 4.4.3
gitlens eam 13.3.2
vscode-html-css ecm 1.13.1
EditorConfig Edi 0.16.4
json-tools eri 1.0.2
prettier-vscode esb 9.10.4
vscode-svelte-snippets fiv 0.5.0
code-runner for 0.12.0
shell-format fox 7.2.5
copilot Git 1.77.9225
copilot-labs Git 0.12.791
gc-excelviewer Gra 4.2.56
todo-tree Gru 0.0.224
headwind hey 1.7.0
codesnap-plus hui 1.4.1
output-colorizer IBM 0.1.2
npm ide 1.3.0
vscode-edit-csv jan 0.7.3
vscode-text-pastry jkj 1.3.1
svg joc 1.5.0
vsc-python-indent Kev 1.18.0
ts-error-translator mat 0.8.0
web-accessibility Max 0.2.83
rainbow-csv mec 3.5.0
git-graph mhu 1.30.0
fluent-icons mig 0.0.18
dotenv mik 1.0.1
vscode-scss mrm 0.10.0
playwright ms- 1.0.8
isort ms- 2022.8.0
python ms- 2023.4.0
vscode-pylance ms- 2023.3.10
remote-ssh ms- 0.98.0
remote-ssh-edit ms- 0.84.0
remote-explorer ms- 0.2.0
vscode-typescript-next ms- 5.1.20230307
sqltools mtx 0.27.1
color-highlight nau 2.5.0
playwright-snippets nit 1.0.1
es6-css-minify olb 3.3.3
material-icon-theme PKi 4.24.0
vscode-css-peek pra 4.2.0
quicktype qui 12.0.46
vscode-rapidapi-client Rap 1.9.3
typescript-hero rbb 3.0.0
LiveServer rit 5.7.9
partial-diff ryu 1.4.3
vscode-fileutils sle 3.10.0
html-to-css-autocompletion sol 1.1.2
sonarlint-vscode Son 3.15.1
stepsize Ste 1.0.13
code-spell-checker str 2.19.0
svelte-vscode sve 107.2.0
ts-quickfixes-extension tam 1.15.0
open-in-browser tec 2.0.0
vscode-mdx uni 1.2.5
errorlens use 3.7.0
intellicode-api-usage-examples Vis 0.2.7
vscodeintellicode Vis 1.2.30
console-ninja Wal 0.0.81
quokka-vscode Wal 1.0.527
wallaby-vscode Wal 1.0.350
vscode-todo-highlight way 1.0.5
vscode-import-cost wix 3.3.0
JavaScriptSnippets xab 1.8.0
markdown-all-in-one yzh 3.5.0
material-theme zhu 3.15.6
vscode-open-in-github ziy 1.3.6
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewvextcfv2:30681851
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1cf:30587006
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
vsccsb:30677849
pythonms35:30680984

@fazofazaal
Copy link

I am having the same issue. This is so annoying

@tunayokumus
Copy link

tunayokumus commented Mar 9, 2023

same here. Issue started happening today. Didn't install any new extensions in the last days. Seems to be an OOM issue. Using WSL2 backend.

@VladSez
Copy link

VladSez commented Mar 9, 2023

Not sure, if this is relevant, but after I disabled Github Copilot extension, looks like the issue is gone (at least for the last couple of hours it's not crashing)

I am on WSL2

@ghana7989
Copy link

It is so frustrating that I have to reload just to expect a crash with in 5 mins or less.
please fix this ASAP

@nacmartin
Copy link

Not sure, if this is relevant, but after I disabled Github Copilot extension, looks like the issue is gone (at least for the last couple of hours it's not crashing)

I am on WSL2

Yes, I have done the same and the sun shines again.

@atomflunder
Copy link

Not sure, if this is relevant, but after I disabled Github Copilot extension, looks like the issue is gone (at least for the last couple of hours it's not crashing)

I am on WSL2

Same here, thanks for the fix!

@edwardspresume
Copy link
Author

Not sure, if this is relevant, but after I disabled Github Copilot extension, looks like the issue is gone (at least for the last couple of hours it's not crashing)

I am on WSL2

Thank you! This fixed it for me as well

@Ali-AlDhamen
Copy link

Not sure, if this is relevant, but after I disabled Github Copilot extension, looks like the issue is gone (at least for the last couple of hours it's not crashing)

I am on WSL2

same here been having this issue for a week now, it's annoying

@starball5
Copy link

Related question on Stack Overflow: Extension host terminated unexpectedly 3 times within the last 5 minutes

@edwardspresume edwardspresume changed the title Extension host terminated unexpectedly 3 times within the last 5 minutes. Extension host terminated unexpectedly due to GitHub copilot Mar 14, 2023
@TeddyCr
Copy link

TeddyCr commented Mar 14, 2023

Same here. Having this issue for about a week. Quite unfortunate.

@wasied
Copy link

wasied commented Mar 14, 2023

Same for me with Github Copilot. Quite annoying.

@deepak1556
Copy link
Contributor

Can users provide the following 2 logs,

  1. Open Developer: Toggle Developer Tools and attach the generated log when extension host terminates
  2. Start the application following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report and attach the generated crash logs if available.

@deepak1556 deepak1556 added info-needed Issue requires more information from poster extension-host Extension host issues labels Mar 14, 2023
@TeddyCr
Copy link

TeddyCr commented Mar 14, 2023

I get a log of things from the developer tool, unsure which one to share. Let me know if that one help

abstractExtensionService.ts:931 Extension host (LocalProcess) terminated unexpectedly. Code: 7, Signal: unknown
[Extension Host] (node:15816) [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 (Plugin) --trace-deprecation ...` to show where the warning was created)

the 2) does not provide anything.

Looks like it does come from the copilot extension though, as soon as I re-enable it it the host terminates.

@deepak1556
Copy link
Contributor

Code: 7 seems like an exit due to OOM, @TeddyCr can you launch the application with code --verbose and attach the logs once extension host terminates.

@TeddyCr
Copy link

TeddyCr commented Mar 14, 2023

🤔 I am not sure what to share there. I get a big block of code from there /$HOME/.vscode/extensions/github.copilot-1.77.9225/dist/extension.js:8

@deepak1556
Copy link
Contributor

It would be great if you can share all the logs printed to the terminal, if not can you check for a line that has the following crashed with code 7 and reason .... I am mainly looking to confirm the value of reason.

@bpasero
Copy link
Member

bpasero commented Mar 15, 2023

👋 , since we just merged a lot of issues into this one as duplicate: has anyone been able to figure out a pattern that reproduces this issue reliably? We in our team all use Copilot on the same version and so far have not yet hit this issue.

Is it just using Copilot over some time in the editor when it randomly happens? Are there any settings configured around Copilot or editor suggest that might have an impact?

@Gerrnperl
Copy link

Gerrnperl commented Mar 15, 2023

@bpasero
For me the extension host always terminates when I do a git commit via vscode. When I disable Github Copilot (or just for 'git-commit'), the crash doesn't happen anymore.

And there will be a small probability of termination at other times

Peek 2023-03-15 20-43 When Copilot tries to autocomplete when I enter a commit message, the extension host terminates

VS Code Version: 1.76.1 (Commit: 5e805b7 , Date: 2023-03-08T16:31:31.010Z)

OS: x86_64 Linux 5.19.0-35-generic, Ubuntu 22.10 kinetic

@yegor-ch
Copy link

The same issue. It's related to a new version of the Copilot.
Try to downgrade the Copilot version to 1.76.9071
image

@isidorn
Copy link
Contributor

isidorn commented Mar 15, 2023

Can anyone reproduce this issue with the previous Copilot version 1.76.9071? You can change extension version by opening the Extensions viewlet, right click on Copilot > Install Another Version.

Also sharing exact steps like @Gerrnperl is extremely helpful for us!

@bpasero
Copy link
Member

bpasero commented Mar 15, 2023

@Gerrnperl thats a very nice small repro, which unfortunately I cannot reproduce. Curious, when you observe the memory used by "utility process" when the "Process Explorer" is opened (from "Help" menu), does that memory suddenly go to a very large value and then restart the process?

Screenshot 2023-03-15 at 14 54 31

@Gerrnperl
Copy link

Can anyone reproduce this issue with the previous Copilot version 1.76.9071? You can change extension version by opening the Extensions viewlet, right click on Copilot > Install Another Version.

@isidorn
For me, the previous version of Copilot didn't cause this issue.

@TeddyCr
Copy link

TeddyCr commented Mar 15, 2023

Same for me 1.76.9071 works as expected. As soon as I upgrade to the latest version the extension host eventually crashes within a few minutes.

@Gerrnperl
Copy link

Gerrnperl commented Mar 15, 2023

@Gerrnperl thats a very nice small repro, which unfortunately I cannot reproduce. Curious, when you observe the memory used by "utility process" when the "Process Explorer" is opened (from "Help" menu), does that memory suddenly go to a very large value and then restart the process?

@bpasero

Peek 2023-03-15 22-50

"utility process" took up about 400 MB at the time of the crash
I'm not sure if this is "unusually large", but with Copilot disabled, the utility process memory usage fluctuates between 100 MB and 350 MB (and sometimes rarely exceed 400 MB)

@bpasero
Copy link
Member

bpasero commented Mar 15, 2023

@Gerrnperl thanks, could you quit VS Code, run code --verbose, reproduce the issue and then send the logs as Zip from that session (e-mail is fine, its viewable on https://github.com/bpasero). You can find the logs folder from this command:

image

And it would be the most recent folder entry (every session gets their own folder).

@Baz00k
Copy link

Baz00k commented Mar 15, 2023

@bpasero I have reproduced the bug with --verbose flag and sent you zip by email

@abgoswam
Copy link
Member

abgoswam commented Mar 15, 2023

for folks who saw this issue on Copilot version 1.77.* (or above), could you re-enable the latest version and check if the issue still persists ?

  • if the issue still persists, would it be possible to send the logs using the steps mentioned by @bpasero above

@isidorn
Copy link
Contributor

isidorn commented Mar 15, 2023

+1 for @abgoswam comment from above. We have identified a potential experiment that was causing the problem, and we have turned it off just now. We now believe the issue is fixed. Thus - please try again and let us know if you still see the problem. Thanks all!

@a-r-j
Copy link

a-r-j commented Mar 15, 2023

Thanks for the fix! So far so good for me.

@deepak1556 deepak1556 assigned isidorn and unassigned deepak1556 Mar 16, 2023
@bpasero bpasero removed their assignment Mar 16, 2023
@bpasero bpasero removed the info-needed Issue requires more information from poster label Mar 16, 2023
@isidorn
Copy link
Contributor

isidorn commented Mar 16, 2023

@a-r-j thanks for verifying.

I am going ahead and closing this issue. If anybody is still seeing Extension Host crashes with Copilot do let us know and we will reopen this issue. Thank you all for your help!

@isidorn isidorn closed this as completed Mar 16, 2023
@isidorn isidorn added this to the March 2023 milestone Mar 16, 2023
@isidorn isidorn added the bug Issue identified by VS Code Team member as probable bug label Mar 16, 2023
@isidorn isidorn unpinned this issue Mar 16, 2023
@myagizmaktav
Copy link

myagizmaktav commented Mar 21, 2023

my problem was fixed. above 1.77.97

@mjbvz mjbvz added the verified Verification succeeded label Mar 21, 2023
@verveguy
Copy link

verveguy commented Mar 27, 2023

@isidorn I'm still seeing it on a fresh install of latest Copilot extension. 1.78.9758

@isidorn
Copy link
Contributor

isidorn commented Mar 27, 2023

@verveguy do F1 > extension bisect. Most likely another extension is causing it, or it is another Copilot issue. In which case - fell free to open a new issue. Thanks

@ozjuly19
Copy link

I also had this issue mine was a complete breakdown of my WSL2 install due to windows refusing to mount the virtual disk anymore. I have no solution at this time but this is possibly caused by WSL2.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug extension-host Extension host issues freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests