Skip to content

[aft-plugin] Binary crashed (restarts: 3) #4

Closed

Description

@canomogollon

Short description

The package keeps crashing on my Linux machine. In theory, everything should be working, but it always fails.

What happened?

Description

The package keeps crashing on my Linux machine. In theory, everything should be working, but it always fails.

Environment

  • Plugin: v0.11.1
  • Binary: 0.11.1
  • OS: linux x64
  • Node: v24.14.0
  • OpenCode: 1.4.3

Configuration

Enabled flags from ~/.config/opencode/aft.json:

{
  "experimental_search_index": true,
  "experimental_semantic_search": true
}

Diagnostics

  • Timestamp: 2026-04-11T23:11:57.736Z
  • OpenCode installed: true
  • OpenCode config has plugin: true
  • AFT config parse error: none

Config paths

{
  "configDir": "/home/elkin/.config/opencode",
  "opencodeConfig": "/home/elkin/.config/opencode/opencode.json",
  "opencodeConfigFormat": "json",
  "aftConfig": "/home/elkin/.config/opencode/aft.json",
  "aftConfigFormat": "json",
  "tuiConfig": "/home/elkin/.config/opencode/tui.json",
  "tuiConfigFormat": "json"
}

AFT flags

{
  "experimental_search_index": true,
  "experimental_semantic_search": true
}

Plugin cache

{
  "path": "/home/elkin/.cache/opencode/packages/@cortexkit/aft-opencode@latest",
  "cached": "0.11.1",
  "latest": "0.11.1"
}

Binary cache

{
  "versions": [
    "v0.11.1"
  ],
  "activeVersion": "v0.11.1",
  "totalSize": 25473504,
  "path": "/home/elkin/.cache/aft/bin"
}

Storage

{
  "path": "/home/elkin/.local/share/opencode/storage/plugin/aft",
  "exists": true,
  "indexSize": 9899773,
  "semanticSize": 180775300,
  "backupsSize": 0,
  "urlCacheSize": 0,
  "onnxruntimeSize": 67724896
}

ONNX Runtime

{
  "required": true,
  "systemPath": "/usr/local/lib",
  "cachedPath": null,
  "platform": "linux-x64",
  "installHint": "apt install libonnxruntime or download from https://github.com/microsoft/onnxruntime/releases"
}

Log (last 200 lines, sanitized)

[2026-04-11T21:35:55.885Z] INFO [aft-plugin] [aft] started, pid 235625
[2026-04-11T21:35:55.994Z] INFO [aft-plugin] [aft] 
[2026-04-11T21:35:55.994Z] INFO [aft-plugin] [aft] thread '<unnamed>' (235639) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T21:35:55.994Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T21:35:55.994Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T21:35:56.063Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T21:35:56.063Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T21:36:40.958Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T21:36:40.961Z] INFO [aft-plugin] [aft] started, pid 236328
[2026-04-11T21:36:41.081Z] INFO [aft-plugin] [aft] 
[2026-04-11T21:36:41.081Z] INFO [aft-plugin] [aft] thread '<unnamed>' (236343) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T21:36:41.081Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T21:36:41.081Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T21:36:41.148Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T21:36:41.148Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T21:38:55.683Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.11.1/aft
[2026-04-11T21:38:55.685Z] INFO [aft-plugin] Config loaded from ~/.config/opencode/aft.json
[2026-04-11T21:38:55.687Z] INFO [aft-plugin] ONNX Runtime found at system path: /usr/local/lib
[2026-04-11T21:38:55.717Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:46425
[2026-04-11T21:44:49.545Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T21:44:49.547Z] INFO [aft-plugin] [aft] started, pid 251454
[2026-04-11T21:44:49.673Z] INFO [aft-plugin] [aft] 
[2026-04-11T21:44:49.673Z] INFO [aft-plugin] [aft] thread '<unnamed>' (251461) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T21:44:49.673Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T21:44:49.673Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T21:44:49.743Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T21:44:49.743Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-11T21:44:49.927Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T21:44:49.935Z] INFO [aft-plugin] [aft] started, pid 251498
[2026-04-11T21:44:56.033Z] INFO [aft-plugin] [aft] 
[2026-04-11T21:44:56.033Z] INFO [aft-plugin] [aft] thread '<unnamed>' (251593) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T21:44:56.033Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T21:44:56.033Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T21:44:56.101Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T21:44:56.101Z] INFO [aft-plugin] Auto-restart #2 in 200ms
[2026-04-11T21:44:56.305Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T21:44:56.371Z] INFO [aft-plugin] [aft] started, pid 251631
[2026-04-11T22:18:30.145Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:18:30.145Z] INFO [aft-plugin] [aft] thread '<unnamed>' (345813) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:18:30.145Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:18:30.145Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:18:30.219Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:18:30.219Z] INFO [aft-plugin] Auto-restart #3 in 400ms
[2026-04-11T22:18:30.657Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:18:30.661Z] INFO [aft-plugin] [aft] started, pid 345857
[2026-04-11T22:22:27.230Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:22:27.232Z] INFO [aft-plugin] [aft] started, pid 350304
[2026-04-11T22:22:27.349Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:22:27.349Z] INFO [aft-plugin] [aft] thread '<unnamed>' (350311) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:22:27.349Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:22:27.349Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:22:27.417Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:22:27.417Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-11T22:22:27.557Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:22:27.558Z] INFO [aft-plugin] [aft] started, pid 350348
[2026-04-11T22:22:39.555Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:22:39.555Z] INFO [aft-plugin] [aft] thread '<unnamed>' (350594) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:22:39.555Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:22:39.555Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:22:39.622Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:22:39.622Z] INFO [aft-plugin] Auto-restart #2 in 200ms
[2026-04-11T22:22:39.824Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:22:39.825Z] INFO [aft-plugin] [aft] started, pid 350632
[2026-04-11T22:24:06.925Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:24:06.925Z] INFO [aft-plugin] [aft] thread '<unnamed>' (352446) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:24:06.925Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:24:06.925Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:24:06.993Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:24:06.993Z] INFO [aft-plugin] Auto-restart #3 in 400ms
[2026-04-11T22:24:07.395Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:24:07.397Z] INFO [aft-plugin] [aft] started, pid 352489
[2026-04-11T22:24:44.833Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:24:44.837Z] INFO [aft-plugin] [aft] started, pid 353330
[2026-04-11T22:24:44.950Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:24:44.950Z] INFO [aft-plugin] [aft] thread '<unnamed>' (353336) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:24:44.950Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:24:44.950Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:24:45.048Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:24:45.048Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-11T22:24:45.188Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:24:45.192Z] INFO [aft-plugin] [aft] started, pid 353378
[2026-04-11T22:28:42.325Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:28:42.325Z] INFO [aft-plugin] [aft] thread '<unnamed>' (360744) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:28:42.325Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:28:42.325Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:28:42.391Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:28:42.391Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:28:53.258Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:28:53.263Z] INFO [aft-plugin] [aft] started, pid 360934
[2026-04-11T22:28:53.382Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:28:53.382Z] INFO [aft-plugin] [aft] thread '<unnamed>' (360944) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:28:53.382Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:28:53.382Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:28:53.450Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:28:53.450Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:38:30.881Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:38:30.884Z] INFO [aft-plugin] [aft] started, pid 371244
[2026-04-11T22:38:30.998Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:38:30.998Z] INFO [aft-plugin] [aft] thread '<unnamed>' (371250) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:38:30.998Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:38:30.998Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:38:31.066Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:38:31.066Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-11T22:38:31.205Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:38:31.209Z] INFO [aft-plugin] [aft] started, pid 371296
[2026-04-11T22:38:50.059Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:38:50.059Z] INFO [aft-plugin] [aft] thread '<unnamed>' (371523) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:38:50.059Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:38:50.059Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:38:50.129Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:38:50.129Z] INFO [aft-plugin] Auto-restart #2 in 200ms
[2026-04-11T22:38:50.329Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:38:50.330Z] INFO [aft-plugin] [aft] started, pid 371560
[2026-04-11T22:39:08.329Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:39:08.329Z] INFO [aft-plugin] [aft] thread '<unnamed>' (371757) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:39:08.329Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:39:08.329Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:39:08.396Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:39:08.396Z] INFO [aft-plugin] Auto-restart #3 in 400ms
[2026-04-11T22:39:08.796Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:39:08.798Z] INFO [aft-plugin] [aft] started, pid 371800
[2026-04-11T22:40:08.406Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:40:08.406Z] INFO [aft-plugin] [aft] thread '<unnamed>' (372256) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:40:08.406Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:40:08.406Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:40:08.472Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:40:08.472Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:40:57.944Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:40:57.946Z] INFO [aft-plugin] [aft] started, pid 372558
[2026-04-11T22:40:58.063Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:40:58.063Z] INFO [aft-plugin] [aft] thread '<unnamed>' (372564) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:40:58.063Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:40:58.063Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:40:58.128Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:40:58.128Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:41:08.132Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:41:08.133Z] INFO [aft-plugin] [aft] started, pid 372655
[2026-04-11T22:41:08.247Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:41:08.247Z] INFO [aft-plugin] [aft] thread '<unnamed>' (372661) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:41:08.247Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:41:08.247Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:41:08.319Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:41:08.319Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:41:19.545Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:41:19.550Z] INFO [aft-plugin] [aft] started, pid 372824
[2026-04-11T22:41:19.658Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:41:19.658Z] INFO [aft-plugin] [aft] thread '<unnamed>' (372830) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:41:19.658Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:41:19.658Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:41:19.725Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:41:19.725Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:41:34.466Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:41:34.469Z] INFO [aft-plugin] [aft] started, pid 372953
[2026-04-11T22:41:34.581Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:41:34.581Z] INFO [aft-plugin] [aft] thread '<unnamed>' (372959) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:41:34.581Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:41:34.581Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:41:34.648Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:41:34.648Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:52:39.404Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:52:39.406Z] INFO [aft-plugin] [aft] started, pid 378660
[2026-04-11T22:52:39.523Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:52:39.523Z] INFO [aft-plugin] [aft] thread '<unnamed>' (378666) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:52:39.523Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:52:39.523Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:52:39.590Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:52:39.590Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T22:53:20.042Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T22:53:20.043Z] INFO [aft-plugin] [aft] started, pid 379170
[2026-04-11T22:53:20.158Z] INFO [aft-plugin] [aft] 
[2026-04-11T22:53:20.158Z] INFO [aft-plugin] [aft] thread '<unnamed>' (379176) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T22:53:20.158Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T22:53:20.158Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T22:53:20.224Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T22:53:20.224Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T23:04:21.492Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T23:04:21.494Z] INFO [aft-plugin] [aft] started, pid 383617
[2026-04-11T23:04:21.608Z] INFO [aft-plugin] [aft] 
[2026-04-11T23:04:21.608Z] INFO [aft-plugin] [aft] thread '<unnamed>' (383623) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T23:04:21.608Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T23:04:21.608Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T23:04:21.674Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T23:04:21.674Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T23:06:05.242Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T23:06:05.249Z] INFO [aft-plugin] [aft] started, pid 384600
[2026-04-11T23:06:05.374Z] INFO [aft-plugin] [aft] 
[2026-04-11T23:06:05.374Z] INFO [aft-plugin] [aft] thread '<unnamed>' (384612) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T23:06:05.374Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T23:06:05.374Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T23:06:05.440Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T23:06:05.440Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log
[2026-04-11T23:06:16.568Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.11.1/aft (cwd: ~/devs/astrojs/controlinterno)
[2026-04-11T23:06:16.573Z] INFO [aft-plugin] [aft] started, pid 384735
[2026-04-11T23:06:16.693Z] INFO [aft-plugin] [aft] 
[2026-04-11T23:06:16.693Z] INFO [aft-plugin] [aft] thread '<unnamed>' (384753) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ort-2.0.0-rc.11/src/lib.rs:191:41:
[2026-04-11T23:06:16.693Z] INFO [aft-plugin] [aft] Failed to load ONNX Runtime dylib: Error { code: GenericFailure, msg: "failed to load from `/usr/local/lib/libonnxruntime.so`: dlopen failed" }
[2026-04-11T23:06:16.693Z] INFO [aft-plugin] [aft] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-04-11T23:06:16.762Z] INFO [aft-plugin] Process exited: code=null, signal=SIGABRT
[2026-04-11T23:06:16.762Z] ERROR [aft-plugin] Max restarts (3) reached, giving up. Logs: /tmp/aft-plugin.log

Diagnostics

Plugin version

No response

AFT binary version

No response

Platform

No response

Log output (optional)

Activity

  1. self-assigned this
    on Apr 12, 2026
  2. ualtinok commented on Apr 12, 2026

    @ualtinok
    Collaborator

    Fixed in v0.11.2. The root cause was an incompatible libonnxruntime.so on the system — the ort crate panics when dlopen loads a broken or ABI-mismatched .so, and with panic = "abort" in the release profile, that panic killed the entire AFT process.

    What v0.11.2 changes:

    1. pre_validate_onnx_runtime() — raw dlopen probe before ort touches the library. Catches broken/incompatible .so files and returns a clear error with version info and fix instructions.

    2. panic = "unwind" in release profile — catch_unwind now works as a safety net. Binary grew from 19MB to 23MB.

    3. Doctor ORT version check — bunx @cortexkit/aft-opencode@latest doctor now detects incompatible versions and suggests removal/upgrade.

    To fix your setup:

    # Clear the old OpenCode plugin cache to get v0.11.2
    rm -rf ~/.cache/opencode/packages/@cortexkit
    
    # If you have an old libonnxruntime.so, remove it — AFT auto-downloads the right version
    sudo rm /usr/local/lib/libonnxruntime*
    sudo ldconfig
    
    # Restart OpenCode

    Run bunx @cortexkit/aft-opencode@latest doctor to verify everything is clean.

  3. canomogollon commented on Apr 13, 2026

    @canomogollon
    Author

    Binary incompatible with Ubuntu 22.04 (GLIBC 2.35) — requires GLIBC 2.39

    Description:

    System Information

    • OS: Pop!OS 22.04 (Ubuntu 22.04 jammy)
    • GLIBC Version: 2.35
    • AFT Plugin Version: v0.11.4
    • OpenCode Version: 1.4.3

    Error Details

    The pre-compiled AFT binary fails to start with the following error:
    /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by aft binary)
    The binary crashes immediately on startup and exhausts the auto-restart limit (3 attempts).

    Root Cause

    The AFT binary appears to be compiled on/for Ubuntu 24.04+ (GLIBC 2.39+), making it incompatible with older LTS distributions:

    • Ubuntu 22.04 LTS → GLIBC 2.35 (widely used in production)
    • Ubuntu 24.04 LTS → GLIBC 2.39 (required by current AFT binary)
    • Pop!OS 22.04 → GLIBC 2.35 (based on Ubuntu 22.04)

    Impact

    This breaks AFT for a significant portion of users:

    • Ubuntu 22.04 LTS users (supported until April 2027)
    • Pop!OS 22.04 users
    • Any distribution with GLIBC < 2.39

    Suggested Fixes

    1. Compile with backward compatibility:
      • Build on Ubuntu 22.04 or use a container with GLIBC 2.35
      • Use GLIBCXX_OLD_ABI flags during compilation
    2. Provide alternative builds:
      • Offer separate binaries for Ubuntu 22.04 vs 24.04
      • Document minimum GLIBC requirement clearly
    3. Graceful detection:
      • Check GLIBC version before attempting to load
      • Display clear error message with fix instructions instead of crash loop
    4. Source build option:
      • Allow users to build from source for their specific system

    Workaround

    Currently, the only workaround is to remove the plugin:

    # Remove from opencode.json
    "@cortexkit/aft-opencode@latest"
    # Clean cache
    rm -rf ~/.cache/opencode/packages/@cortexkit/aft-opencode@latest
    rm -rf ~/.cache/aft
    Additional Context
    This is particularly problematic for production environments where Ubuntu 22.04 LTS is the standard (supported until 2027). Many organizations cannot upgrade to 24.04 immediately.
    ---
    Environment:
    - OpenCode: 1.4.3
    - Plugin: @cortexkit/aft-opencode@latest (v0.11.4)
    - Node: Bun
    - OS: Pop!OS 22.04
  4. ualtinok commented on Apr 13, 2026

    @ualtinok
    Collaborator

    Fixed in 0.11.5

    Binary incompatible with Ubuntu 22.04 (GLIBC 2.35) — requires GLIBC 2.39

    Description:

    System Information

    • OS: Pop!OS 22.04 (Ubuntu 22.04 jammy)
    • GLIBC Version: 2.35
    • AFT Plugin Version: v0.11.4
    • OpenCode Version: 1.4.3

    Error Details

    The pre-compiled AFT binary fails to start with the following error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by aft binary) The binary crashes immediately on startup and exhausts the auto-restart limit (3 attempts).

    Root Cause

    The AFT binary appears to be compiled on/for Ubuntu 24.04+ (GLIBC 2.39+), making it incompatible with older LTS distributions:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions