JavaScript heap out of memory on install
Resolved 💬 1 comment Opened Oct 31, 2025 by seiyab Closed Nov 15, 2025
What version of Codex is running?
0.53.0
What subscription do you have?
Plus
Which model were you using?
_No response_
What platform is your computer?
Linux 6.10.14-linuxkit aarch64 unknown (on Docker Desktop on macOS)
What issue are you seeing?
Downloading @openai/codex@0.53.0: 119.34 MB/119.34 MB, done
Progress: resolved 1, reused 0, downloaded 0, added 0
<--- Last few GCs --->
[347:0xfffd4c010000] 11234 ms: Scavenge 397.2 (526.6) -> 397.2 (526.6) MB, pooled: 0 MB, 78.18 / 0.00 ms (average mu = 0.995, current mu = 0.791) allocation failure;
[347:0xfffd4c010000] 11515 ms: Scavenge 674.8 (804.2) -> 674.8 (804.2) MB, pooled: 0 MB, 53.39 / 0.00 ms (average mu = 0.995, current mu = 0.791) allocation failure;
FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xecff98 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
2: 0x12a4ddc v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
3: 0x12a4eb4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
4: 0x151dbdc [node]
5: 0x197b7ec [node]
6: 0x2019754 [node]
What steps can reproduce the bug?
pnpm add @openai/codex
Maybe platform dependent?
I'm trying to install codex in Docker container. Its base image is debian:13-slim. Running on Docker Desktop on macOS.
What is the expected behavior?
Successfully install
Additional information
Output of free -h
total used free shared buff/cache available
Mem: 11Gi 772Mi 7.8Gi 676Ki 3.3Gi 10Gi
Swap: 1.0Gi 0B 1.0GiThis issue has 1 comment on GitHub. Read the full discussion on GitHub ↗