You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@MontySharkly — this is almost certainly a Node.js 25.x bug, not a CodeGraph application bug. Could you confirm by running:
node --version
The error `Fatal process out of memory: Zone` is V8's WASM JIT (turboshaft) Zone allocator failing while compiling tree-sitter grammars. It reproduces on Node 25.7.0 → 25.9.0 (see #54 / #81 for the same stack traces from other reporters). CodeGraph already has lazy grammar loading (#61) and an engines constraint (<25.0.0), but npm install -g only warns on engine mismatch, so it doesn't block.
Fix: switch to Node.js 22 LTS:
# nvm
nvm install 22 && nvm use 22
# Homebrew
brew install node@22 && brew link --overwrite --force node@22
Then codegraph init should run cleanly.
I'm pushing a follow-up that converts the soft Node 25+ warning into a hard exit (with a CODEGRAPH_ALLOW_UNSAFE_NODE=1 override) so future users hit a clear error message before the OOM crash. Will link the PR here when it's up.
If node --version shows anything other than 25.x, please share the version and full error output — that would be a different bug.
Shipped in #149 (merged at b47c956). Future runs on Node 25.x will print a bordered banner and exit 1 immediately — no more OOM crash 30 seconds into indexing. If you do need to run on Node 25 (e.g. testing a future Node fix), CODEGRAPH_ALLOW_UNSAFE_NODE=1 codegraph ... restores the old warn-and-continue behavior.
Easiest path is still Node 22 LTS:
```bash
nvm install 22 && nvm use 22
```
If you confirm `node --version` and the new behavior on your machine after upgrading codegraph, that closes the loop.
Activity
andreinknv commentedon May 6, 2026
If you need it urgently, use my wip branch temporarily while we waiting for pr merges. https://github.com/andreinknv/codegraph/tree/wip, I am using myself, but I am 471 commits more, lol.
colbymchenry commentedon May 8, 2026
@MontySharkly — this is almost certainly a Node.js 25.x bug, not a CodeGraph application bug. Could you confirm by running:
The error `Fatal process out of memory: Zone` is V8's WASM JIT (turboshaft) Zone allocator failing while compiling tree-sitter grammars. It reproduces on Node 25.7.0 → 25.9.0 (see #54 / #81 for the same stack traces from other reporters). CodeGraph already has lazy grammar loading (#61) and an
enginesconstraint (<25.0.0), butnpm install -gonly warns on engine mismatch, so it doesn't block.Fix: switch to Node.js 22 LTS:
Then
codegraph initshould run cleanly.I'm pushing a follow-up that converts the soft Node 25+ warning into a hard exit (with a
CODEGRAPH_ALLOW_UNSAFE_NODE=1override) so future users hit a clear error message before the OOM crash. Will link the PR here when it's up.If
node --versionshows anything other than 25.x, please share the version and full error output — that would be a different bug.fix(cli): hard-exit on Node 25.x instead of soft warning + crash (#149)
colbymchenry commentedon May 8, 2026
Shipped in #149 (merged at b47c956). Future runs on Node 25.x will print a bordered banner and exit 1 immediately — no more OOM crash 30 seconds into indexing. If you do need to run on Node 25 (e.g. testing a future Node fix),
CODEGRAPH_ALLOW_UNSAFE_NODE=1 codegraph ...restores the old warn-and-continue behavior.Easiest path is still Node 22 LTS:
```bash
nvm install 22 && nvm use 22
```
If you confirm `node --version` and the new behavior on your machine after upgrading codegraph, that closes the loop.
maop commentedon May 14, 2026
I have this exac error too, should i open a new issue?
colbymchenry commentedon May 14, 2026
Thank you, I will look into this ASAP.
fix(cli): hard-exit on Node 25.x instead of soft warning + crash (col…