continue icon indicating copy to clipboard operation
continue copied to clipboard

Crashes extension host on Ubuntu

Open G-Cyrille opened this issue 1 year ago • 19 comments

Type: Bug

Crashes extension host on Ubuntu (new ubuntu & vscode install) install. Installed from sync account settings

Extension version: 0.9.74 VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:42:16.599Z) OS version: Linux x64 6.5.0-21-generic snap Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (8 x 3511)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
Load (avg) 2, 1, 1
Memory (System) 15.59GB (13.00GB free)
Process Argv --no-sandbox --force-user-env --unity-launch --crash-reporter-id 21fc2607-06ed-496c-92ee-91a79c28047d
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
pydisww2:30959801
d34g3935:30971562
edj9j583:30969295
fegfb526:30973843
bg6jg535:30958357
78248357:30976999
dsvsc020:30976470

G-Cyrille avatar Mar 01 '24 15:03 G-Cyrille

@G-Cyrille Thank you for the report. Do you find any error logs if you do ctrl+shift+P, "Toggle Developer Tools" and look in the console? This is the most likely place to shed light on the problem

sestinj avatar Mar 01 '24 15:03 sestinj

I think I have the same problem. The crashes only happen inside workspaces. Editing single files is fine. When it crashes the host, this extension is at an "indexing" step.

Version: 1.87.0
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Datum: 2024-03-01T14:16:19.238Z
Electron: 27.3.4
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
Betriebssystem: Linux x64 6.7.8-arch1-1 (Arch Linux)
The following lines are related to the crash or this extension visible in the dev console
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'title') https://file+.vscode-resource.vscode-cdn.net/home/lucki/.vscode/extensions/continue.continue-0.8.14-linux-x64/gui/assets/index.js
    at setConfig (index.js:400:3418)
    at index.js:285:28771
    at produce (index.js:285:10336)
    at index.js:285:28743
    at Array.reduce (<anonymous>)
    at oI (index.js:285:28631)
    at reducer (index.js:285:30000)
    at index.js:285:16741
    at index.js:3391:9798
    at GI (index.js:285:15496)
Extension host (LocalProcess pid: 33135) terminated unexpectedly. Code: 132, Signal: unknown
ERR Extension host (LocalProcess pid: 33135) terminated unexpectedly. No extensions were activated.
INFO Automatically restarting the extension host.
INFO Started local extension host with pid 33951.
localProcessExtensionHost.ts:274 [Error: ENOENT: no such file or directory, open '/home/lucki/.config/Code/clp/8c2a02529fc8c1ad67791b0bf1e0b17c.de/corrupted.info'] {  errno: -2,  code: 'ENOENT',  syscall: 'open',  path: '/home/lucki/.config/Code/clp/8c2a02529fc8c1ad67791b0bf1e0b17c.de/corrupted.info'}
console.ts:137 [Extension Host] Error listing models:  TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OpenAI.listModels (/home/lucki/.local/share/vscode-oss/extensions/continue.continue-0.8.14-linux-x64/out/extension.js:147507:26)
at async intermediateToFinalConfig (/home/lucki/.local/share/vscode-oss/extensions/continue.continue-0.8.14-linux-x64/out/extension.js:162768:30)
at async loadFullConfigNode (/home/lucki/.local/share/vscode-oss/extensions/continue.continue-0.8.14-linux-x64/out/extension.js:162928:23)
at async VsCodeConfigHandler.loadConfig (/home/lucki/.local/share/vscode-oss/extensions/continue.continue-0.8.14-linux-x64/out/extension.js:172286:30)
at async vsCodeIndexCodebase (/home/lucki/.local/share/vscode-oss/extensions/continue.continue-0.8.14-linux-x64/out/extension.js:179240:18)
p @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1127
fire @ event.ts:1158
fire @ ipc.net.ts:650
V.onmessage @ localProcessExtensionHost.ts:376
System
System:
  Host: Archlinux Kernel: 6.8.1-arch1-1 arch: x86_64 bits: 64
  Desktop: GNOME v: 45.5 Distro: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: Z68 Pro3 Gen3 serial: <superuser required>
    UEFI: American Megatrends v: P2.30 date: 06/29/2012
CPU:
  Info: quad core model: Intel Core i5-2500K bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 1609 min/max: 1600/5900 cores: 1: 1649 2: 1596 3: 1596
    4: 1596
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    driver: N/A
  Device-2: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 550.54.14
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.4 driver: X:
    loaded: nvidia gpu: nvidia,nvidia-nvswitch resolution: 1: 2560x1440
    2: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.54.14
    renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2

Lucki avatar Mar 06 '24 11:03 Lucki

Hi,

Thank you for answering on this.

My console says in a loop 3 times before stopping all extensions :

log.ts:417
   - INFO Automatically restarting the extension host.
webWorkerExtensionHostIframe.html:1
   - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
log.ts:417
   - INFO Started local extension host with pid 6609.
console.ts:137
   - [Extension Host] swdc-tracker initialized and ready to send events to snow.software.com
   abstractExtensionService.ts:790 Extension host (LocalProcess pid: 6609) terminated unexpectedly. Code: 132, Signal: unknown
   yb @ abstractExtensionService.ts:790
   yb @ nativeExtensionService.ts:167
   xb @ abstractExtensionService.ts:782
   (anonymous) @ abstractExtensionService.ts:755
   y @ event.ts:1127
   fire @ event.ts:1158
   J @ localProcessExtensionHost.ts:521
   (anonymous) @ localProcessExtensionHost.ts:282
   y @ event.ts:1127
   fire @ event.ts:1158
   le @ ipc.ts:675
   t @ ipc.ts:743
   s @ ipc.ts:732
   (anonymous) @ ipc.ts:549
   y @ event.ts:1127
   z @ event.ts:1138
   fire @ event.ts:1162
   he @ event.ts:559
   emit @ VM114 sandbox_bundle:2
   onMessage @ VM114 sandbox_bundle:2
log.ts:437
   - ERR Extension host (LocalProcess pid: 6609) terminated unexpectedly. No extensions were activated.

image

If there anything I can do to provide more information let me know.

G-Cyrille avatar Mar 06 '24 18:03 G-Cyrille

Ref: https://discord.com/channels/1108621136150929458/1219331252629536799

It's somewhere crashing in LanceDB.

Lucki avatar Mar 24 '24 00:03 Lucki

Any updates? This makes continue unusable on Ubuntu.

r-o-n-i avatar Apr 01 '24 18:04 r-o-n-i

Workarounds until this is fixed:

  • Add "disableIndexing": true, to your config.
  • Only edit single files instead of workspaces.

Lucki avatar Apr 12 '24 15:04 Lucki

Same issue here on Ubuntu 22.04. At least the workaround by @Lucki helps.

sttzr avatar Apr 21 '24 12:04 sttzr

@sestinj any updates? There are quite a few open issues regarding this problem.

unlair avatar Jul 11 '24 21:07 unlair

@sestinj any updates? There are quite a few open issues regarding this problem.

apmcodes avatar Jul 15 '24 11:07 apmcodes

@cdenovo @apmcodes can you provide any more details on what error logs you are seeing? Given the time between this issue originally being opened and now it's important to be sure that they are actually the same problem

sestinj avatar Jul 15 '24 15:07 sestinj

@sestinj the logs have almost no information (including when using the Developer Console). My logs are identical to those posted by @G-Cyrille above: https://github.com/continuedev/continue/issues/911#issuecomment-1981528094

unlair avatar Jul 15 '24 16:07 unlair

It might be worth noting that I since changed my computer and unix distribution -> I don't have any issue (still using the same vscode account).

G-Cyrille avatar Jul 16 '24 07:07 G-Cyrille

Since around version v0.9.194 (pre-release) the previously mentioned workarounds (https://github.com/continuedev/continue/issues/911#issuecomment-2051956123) don't work anymore. This extension is now always crashing the host and I have to deactivate it to use any extensions at all.

Lucki avatar Aug 07 '24 15:08 Lucki

It might be worth noting that I since changed my computer and unix distribution -> I don't have any issue (still using the same vscode account).

Do you mean you switched to a non-Ubuntu-based distro?

unlair avatar Aug 22 '24 16:08 unlair

Since around version v0.9.194 (pre-release) the previously mentioned workarounds (#911 (comment)) don't work anymore. This extension is now always crashing the host and I have to deactivate it to use any extensions at all.

I just tried again today and I'm still getting the crashing extension host. Tried setting "continue.pauseCodebaseIndexOnStart": true but that didn't change anything.

unlair avatar Aug 22 '24 17:08 unlair

It might be worth noting that I since changed my computer and unix distribution -> I don't have any issue (still using the same vscode account).

Do you mean you switched to a non-Ubuntu-based distro?

I switched to popOS which is based on Ubuntu.

G-Cyrille avatar Aug 22 '24 17:08 G-Cyrille