vscode: Extension host terminated unexpectedly due to GitHub copilot

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 (92da9481c0904c6adfe372c12da3b7748d74bdcb, 2023-03-01T10:25:16.105Z) OS version: Linux x64 6.1.12-1-MANJARO Modes: Sandboxed: No

System Info
Item Value
CPUs Intel® Core™ 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

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 22
  • Comments: 35 (11 by maintainers)

Most upvoted comments

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

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

@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!

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

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

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.

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!

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.

I am having the same issue. This is so annoying

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

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.

@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: 5e805b79fcb6ba4c2d23712967df89a089da575b , Date: 2023-03-08T16:31:31.010Z)

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

👋 , 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?

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

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

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

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.