Skip to content

ata compile CLI exits with code 137 (OOM) silently — no output, no error #21

@productdevbook

Description

@productdevbook

Bug

The ata compile CLI command exits with code 137 (OOM kill) without producing any output file or error message — even with a tiny schema.

Reproduce

echo '{"type":"object","properties":{"x":{"type":"string"}}}' > /tmp/min.json
npx ata compile /tmp/min.json -o /tmp/min.mjs
echo "exit:$?"
ls -la /tmp/min.mjs

Result:

exit:137
ls: /tmp/min.mjs: No such file or directory

Environment

  • ata-validator: 0.12.6 (just installed via bun add ata-validator)
  • Node: v24.11.0
  • macOS Darwin 25.4.0 (Apple Silicon)
  • Plenty of RAM available

Expected

CLI should produce the standalone validator module file at the -o path, or print a clear error.

Notes

  • npx ata --help works fine
  • npx ata --version errors with unknown command "--version" (separate small issue)
  • Calling Validator(schema).toStandaloneModule() directly from a Node script also exits with 137 silently, so the bug seems to be in the standalone module generator on Node v24

Workaround

Using runtime new Validator(schema) works fine for now — only pre-compile via CLI fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions