V8 Out of Memory Error in Node.js File Reading Operation
Bug Description
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
----- Native stack trace -----
1: 0xca5580 node::Abort() [node]
2: 0xb78101 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
3: 0xecb640 v8::api_internal::ToLocalEmpty() [node]
4: 0xcad33c [node]
5: 0xf328df v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) [node]
6: 0xf3314d [node]
7: 0xf33615 v8::internal::Builtin_HandleApiCall(int, unsigned long, v8::internal::Isolate) [node]
8: 0x193cdf6 [node]
----- JavaScript stack trace -----
1: readFileSync (node:fs:453:20)
2: readFileSync (file:///home/rmbg/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:499:727)
3: mB (file:///home/rmbg/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:504:376)
4: file:///home/rmbg/.nvm/versions/node/v20.11.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1357:1059
5: processTicksAndRejections (node:internal/process/task_queues:95:5)
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 0.2.114
- Feedback ID: bfdc1c0c-2d86-41fe-9c26-2acedee2e5a4
Errors
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:490:14)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:488:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)","timestamp":"2025-05-14T19:12:28.938Z"}]This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗