Skip to content

# Fatal process out of memory: Zone #140

Closed

Description

@MontySharkly

ran codegraph init [path]
resulted in

Fatal process out of memory: Zone

Activity

  1. andreinknv commented on May 6, 2026

    @andreinknv
    Contributor

    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.

  2. colbymchenry commented on May 8, 2026

    @colbymchenry
    Owner

    @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.

  3. colbymchenry commented on May 8, 2026

    @colbymchenry
    Owner

    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.

  4. maop commented on May 14, 2026

    @maop

    I have this exac error too, should i open a new issue?

    ┌  Indexing project
    │
    │  ◆ Scanning files — 1,420 found
    │  ✢ Parsing code  ██░░░░░░░░░░░░░░░░░░░░░░░  9%
    
    #
    # Fatal process out of memory: Zone
    #
    ----- Native stack trace -----
    
     1: 0x5610f7c63715  [node]
     2: 0x5610f7f0695b v8::base::FatalOOM(v8::base::OOMType, char const*) [node]
     3: 0x5610f86687a5  [node]
     4: 0x5610f8ee0392  [node]
     5: 0x5610f830cf7d  [node]
     6: 0x5610f831400b  [node]
     7: 0x5610f8004d36  [node]
     8: 0x5610f7f96d73  [node]
     9: 0x5610f92e0c96  [node]
    10: 0x5610f92f166f  [node]
    11: 0x5610f92f2f2d  [node]
    12: 0x5610f7e2809f  [node]
    13: 0x5610f7c627dc  [node]
    14: 0x7ff0efaa3579  [/usr/lib/libc.so.6]
    15: 0x7ff0efb1d858  [/usr/lib/libc.so.6]
    Trace/breakpoint trap      codegraph index
    node --version
    v24.14.1
    
  5. colbymchenry commented on May 14, 2026

    @colbymchenry
    Owner

    Thank you, I will look into this ASAP.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions