continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
18.9k stars 1.6k forks source link

Continue crashes extensionHost #2175

Open duane-github opened 2 months ago

duane-github commented 2 months ago

Before submitting your bug report

Relevant environment info

- OS: Arch Linux x64 6.10.7-arch1-1 
- Continue: v0.8.50
- IDE: VSCodium
- Model: Version 1.92.2, Release 24228, Electron: 30.1.2, Chromium: 124.0.6367.243, Node.js: 20.14.0, V8: 12.4.254.20-electron.0
- config.json: 

{
  "models": [
    {
      "title": "Local Ollama",
      "provider": "ollama",
      "model": "phi3.5:3.8b-mini-instruct-q5_K_M"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Local Ollama",
    "provider": "ollama",
    "model": "starcoder2:3b-q5_K_M"
  },
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  }
}

Description

Continue never starts. It eventually causes a popup to appear in the lower right to restart extensionHost

To reproduce

Eliminate extensions until only Continue is left and causes the error. Try with pre-release version and with different previous release versions. Try now on a new and clean installation.

  1. codium --verbose
  2. Install Continue extension.
  3. Activate Continue: click on Continue icon.
  4. ss4

  5. Gets output: ... console4.txt

Logs: main.log renderer.log

Log output

DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:3240 Extension host (LocalProcess pid: 5494) terminated unexpectedly. Code: 0, Signal: unknown
_onExtensionHostCrashed @ workbench.desktop.main.js:3240
_onExtensionHostCrashed @ workbench.desktop.main.js:3241
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:3240
(anonymous) @ workbench.desktop.main.js:3240
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
_onExtHostProcessExit @ workbench.desktop.main.js:1925
(anonymous) @ workbench.desktop.main.js:1925
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
J @ workbench.desktop.main.js:123
onResponse @ workbench.desktop.main.js:123
onBuffer @ workbench.desktop.main.js:123
(anonymous) @ workbench.desktop.main.js:122
_deliver @ workbench.desktop.main.js:93
_deliverQueue @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
Se @ workbench.desktop.main.js:88
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:660   ERR Extension host (LocalProcess pid: 5494) terminated unexpectedly. No extensions were activated.
workbench.desktop.main.js:660  INFO Automatically restarting the extension host.
workbench.desktop.main.js:660  INFO Started local extension host with pid 5584.
webWorkerExtensionHostIframe.html:1 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
workbench.desktop.main.js:660 DEBUG [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///home/guest/.config/VSCodium/logs/20240903T143220/window1/exthost/webWorker/workerexthost.log
workbench.desktop.main.js:660 TRACE writeTextAreaState(reason: focusgain)
workbench.desktop.main.js:660 TRACE [text file model] resolve() - enter file:///home/guest/programs/test1-w.-continue.py
workbench.desktop.main.js:660 TRACE [text file model] resolveFromFile() file:///home/guest/programs/test1-w.-continue.py
workbench.desktop.main.js:660 TRACE writeTextAreaState(reason: focusgain)
workbench.desktop.main.js:660  INFO Extension host (LocalProcess pid: 5584) is unresponsive.
workbench.desktop.main.js:3240 Extension host (LocalProcess pid: 5584) terminated unexpectedly. Code: 132, Signal: unknown
_onExtensionHostCrashed @ workbench.desktop.main.js:3240
_onExtensionHostCrashed @ workbench.desktop.main.js:3241
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:3240
(anonymous) @ workbench.desktop.main.js:3240
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
_onExtHostProcessExit @ workbench.desktop.main.js:1925
(anonymous) @ workbench.desktop.main.js:1925
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
J @ workbench.desktop.main.js:123
onResponse @ workbench.desktop.main.js:123
onBuffer @ workbench.desktop.main.js:123
(anonymous) @ workbench.desktop.main.js:122
_deliver @ workbench.desktop.main.js:93
_deliverQueue @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
Se @ workbench.desktop.main.js:88
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:660   ERR Extension host (LocalProcess pid: 5584) terminated unexpectedly. No extensions were activated.
workbench.desktop.main.js:660  INFO Automatically restarting the extension host.
workbench.desktop.main.js:660  INFO Started local extension host with pid 5615.
webWorkerExtensionHostIframe.html:1 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
workbench.desktop.main.js:660 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:3240 Extension host (LocalProcess pid: 5615) terminated unexpectedly. Code: 132, Signal: unknown
_onExtensionHostCrashed @ workbench.desktop.main.js:3240
_onExtensionHostCrashed @ workbench.desktop.main.js:3241
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:3240
(anonymous) @ workbench.desktop.main.js:3240
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
_onExtHostProcessExit @ workbench.desktop.main.js:1925
(anonymous) @ workbench.desktop.main.js:1925
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
J @ workbench.desktop.main.js:123
onResponse @ workbench.desktop.main.js:123
onBuffer @ workbench.desktop.main.js:123
(anonymous) @ workbench.desktop.main.js:122
_deliver @ workbench.desktop.main.js:93
_deliverQueue @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
Se @ workbench.desktop.main.js:88
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:660   ERR Extension host (LocalProcess pid: 5615) terminated unexpectedly. No extensions were activated.
workbench.desktop.main.js:820 Extension host terminated unexpectedly 3 times within the last 5 minutes.
onDidChangeNotification @ workbench.desktop.main.js:820
(anonymous) @ workbench.desktop.main.js:820
_deliver @ workbench.desktop.main.js:93
_deliverQueue @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
addNotification @ workbench.desktop.main.js:820
notify @ workbench.desktop.main.js:1947
prompt @ workbench.desktop.main.js:1947
_onExtensionHostCrashed @ workbench.desktop.main.js:3241
_onExtensionHostCrashOrExit @ workbench.desktop.main.js:3240
(anonymous) @ workbench.desktop.main.js:3240
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
_onExtHostProcessExit @ workbench.desktop.main.js:1925
(anonymous) @ workbench.desktop.main.js:1925
_deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
J @ workbench.desktop.main.js:123
onResponse @ workbench.desktop.main.js:123
onBuffer @ workbench.desktop.main.js:123
(anonymous) @ workbench.desktop.main.js:122
_deliver @ workbench.desktop.main.js:93
_deliverQueue @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
Se @ workbench.desktop.main.js:88
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:93 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
onWillAddFirstListener @ workbench.desktop.main.js:93
_event @ workbench.desktop.main.js:91
(anonymous) @ workbench.desktop.main.js:88
onWillAddFirstListener @ workbench.desktop.main.js:88
_event @ workbench.desktop.main.js:91
G @ workbench.desktop.main.js:166
createMouseController @ workbench.desktop.main.js:209
re @ workbench.desktop.main.js:209
j @ workbench.desktop.main.js:742
_createInstance @ workbench.desktop.main.js:655
createInstance @ workbench.desktop.main.js:655
createNotificationsList @ workbench.desktop.main.js:823
show @ workbench.desktop.main.js:823
doAddToast @ workbench.desktop.main.js:1918
(anonymous) @ workbench.desktop.main.js:1918
execute @ workbench.desktop.main.js:97
St @ workbench.desktop.main.js:97
(anonymous) @ workbench.desktop.main.js:97
workbench.desktop.main.js:660 DEBUG Comments: URIs of continue on comments to add to storage .
workbench.desktop.main.js:660 TRACE [text file model] resolve() - enter file:///home/guest/programs/test1-w.-continue.py
workbench.desktop.main.js:660 TRACE [text file model] resolveFromFile() file:///home/guest/programs/test1-w.-continue.py

See above files.
constLiakos commented 2 months ago

I have the same issue. On linux mint with vs code installed with snap. Issue started with version 8.45.

terry-cellini commented 2 months ago

I have same issue on ubuntu cinnamon vscode,insiders and VScodium

jborut commented 2 months ago

Same here on Fedora.

stone-w4tch3r commented 2 months ago

Yep. Same here

- OS: fedora 40 
- Continue: v0.8.51, v0.9.206
- IDE: vscodium 1.92.2 (installed via official repo download.vscodium.com)
- Model: -
- config.json: -

continue.log

Using 0.8.44 fixes issue

May this be connected with fact that I have old CPU that does not supports AVX instructions?

limcheekin commented 1 month ago

The issue come up after install the extension of v0.8.51 and v0.9.207.

The following info is from VS code about box:

Version: 1.93.0
Commit: 4849ca9bdf9666755eb463db297b69e5385090e3
Date: 2024-09-04T13:02:38.431Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.8.0-41-generic (Ubuntu 24.04)
shockme commented 1 month ago

I believe this is caused by https://github.com/lancedb/lance/issues/2195 https://github.com/lancedb/lancedb/issues/1437.

MaxFSP commented 1 month ago

any fix here?

constLiakos commented 1 month ago

If your workstation is on a VM like mine (Proxmox), try to change processor type from x86-64-v2 to x86-64-v3 . It requires avx2. That worked for me.

roshanbodomlol commented 4 weeks ago

Same issue on macOS 15.0.1

christoferjh commented 3 weeks ago

Same issue on Linux Lite 7.2

shockme commented 3 weeks ago

any fix here?

The fix is to just use Zed (https://zed.dev). It's free, open source, works well and doesn't crash. It has smart integrations with Antropic, OpenAI and Ollama models.

I've been using it and recommend it.