question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Extension host terminated unexpectedly." error caused by Flutter extension

See original GitHub issue

Issue Type: Bug

To reproduce this problem, you need to install Flutter(dart-code.flutter) extension and open an existing Flutter project with Visual Studio Code.

Wait some seconds, you will see a popup notification in the bottom right corner said “Extension host terminated unexpectedly.” with options “Open Developer Tools” and “Restart Extension Host”:

a screenshot of the popup error notification

By the way, this error also exists on Visual Studio Code - Insiders.

Extension version: 3.18.1 VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z) OS version: Windows_NT x64 10.0.21296

System Info
Item Value
CPUs Intel® Core™ i5-6300HQ CPU @ 2.30GHz (4 x 2304)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.89GB (5.32GB free)
Process Argv –crash-reporter-id 26bd872c-b1c3-4c78-af26-9906b4c1ce99
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python383cf:30185419
pythonvspyt700:30244268
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30211401
wsl2promptcf:30224613
vstry244cf:30250196
pythonvsdeb440:30248342
unusedprompt:30224610
folderexplorercf:30224615
openfilemenucf:30224648
pythonvsded773:30248341
pythonvspyt600:30247031

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Jan 27, 2021

Can you try:

  • uninstall the Flutter extension
  • uninstall the Dart extension
  • Close VS Code
  • Delete any folders starting with dart-code from %USERPROFILE%\.vscode\extensions
  • Re-open VS Code and re-install the Flutter extension (which will also install Dart)
  • See if the issue still occurs

This will eliminate any of the extension code being corrupt, which has happened in the past.

If it still occurs then, try enabling the Dart-Code general extension log which might help understand whether any of the code is bring run at all (and if so, how far it’s getting).

Thanks!

0reactions
DanTupcommented, Jan 27, 2021

Great, glad to hear! It sounds like the extension was somehow corrupt then. I can’t explain why, it’s not something the extension is involved in (VS code downloads and extracts the extension code and the extension never modifies its own code), but at least you got to the bottom of it! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receiving error message 'Extension host terminated ...
My failure has no "Code": Extension host terminated unexpectedly. Code: null Signal: SIGABRT. MessageService.ts enter image description here.
Read more >
Anyone else repeatedly getting the error "Remote Extension ...
Anyone else repeatedly getting the error "Remote Extension host terminated unexpectedly 3 times within the last 5 minutes" (rendering VS Code ...
Read more >
Extension Host - Visual Studio Code
The Visual Studio Code Extension Host is responsible for managing extensions and ensuring the stability and performance of Visual Studio Code.
Read more >
Extension Host Terminated Unexpectedly Jupyter Notebook ...
Had Extension host terminated unexpectedly errors when using last version I do EDA in Python and often use Jupyter Notebooks so I can...
Read more >
"Extension host terminated unexpectedly" & can't use html ...
If you are not able to use html shortcuts or you can't get html boilerplate directly by pressing " ! and Tab "...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found