- Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Description
Environment
- Node.js: v22
- ruflo: 3.5.42
- OS: Windows 11 (sandbox/WDAG)
- Invoked via:
npx ruflo memory init
Steps to reproduce
mkdir t1 && cd t1 npx ruflo init npx ruflo memory init Expected behavior
Process exits after printing Synced to: ...memory.db
Actual behavior
Process hangs indefinitely after the sync message. Must Ctrl+C to exit.
Console log
C:\Users\WDAGUtilityAccount\t1>npx ruflo memory init [AgentDB Patch] Controller index not found: C:\Users\WDAGUtilityAccount\AppData\Local\npm-cache\_npx\9806d7724c607a8d\node_modules\agentic-flow\node_modules\agentdb\dist\controllers\index.js Initializing Memory Database ────────────────────────────────────────────────── Schema initialized +-------------------------- Configuration ---------------------------+ | Backend: hybrid | | Schema Version: 3.0.0 | | Database Path: C:\Users\WDAGUtilityAccount\t1\.swarm\memory.db | | | | Features: | | Vector Embeddings: ✓ Enabled | | Pattern Learning: ✓ Enabled | | Temporal Decay: ✓ Enabled | | HNSW Indexing: ✓ Enabled | | Migration Tracking: ✓ Enabled | +--------------------------------------------------------------------+ +---- Controller Registry (ADR-053) -----+ | AgentDB Controllers: | | Activated: 4 Failed: 1 Init: 151ms | +----------------------------------------+ ... Verifying initialization...Loading ONNX model: all-MiniLM-L6-v2... Loading model: all-MiniLM-L6-v2 (23MB) Downloading: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/onnx/model.onnx Downloading: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json (node:16224) ExperimentalWarning: Importing WebAssembly module instances is an experimental feature and might change at any time ::: Verifying initialization...ONNX embedder ready: 384d, SIMD: true Using FP16 quantized model: all-MiniLM-L6-v2 Loading ONNX model: all-MiniLM-L6-v2... Loading model: all-MiniLM-L6-v2 (23MB) Downloading: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/onnx/model.onnx Downloading: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/tokenizer.json :.. Verifying initialization...Optimized ONNX embedder ready: 384d, SIMD: true, Cache: 512 Verification passed (6/6 tests) Next Steps: - Store data: claude-flow memory store -k "key" --value "data" - Search: claude-flow memory search -q "query" - Train patterns: claude-flow neural train -p coordination - View stats: claude-flow memory stats Synced to: C:\Users\WDAGUtilityAccount\t1\.claude\memory.db [hangs here — process does not exit] Additional bugs observed in the same run
- ONNX model loaded twice —
all-MiniLM-L6-v2(23MB) is downloaded and initialized twice during a singlememory initcall - Broken dependency path — on every run:
[AgentDB Patch] Controller index not found: ...agentic-flow/node_modules/agentdb/dist/controllers/index.js - 1 of 5 AgentDB controllers failed to activate —
Activated: 4 Failed: 1
Root cause hypothesis
ONNX Runtime spawns worker threads that are never terminated. The SQLite connection may also not be closed. The process has no explicit process.exit() call after completing memory init, so active handles keep the event loop alive.
Workaround
Ctrl+C after Synced to: message appears — the database is fully initialized at that point.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels