claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

V8 Out of Memory Error When Reading Large Files

Open jimmy-validalpha opened this issue 7 months ago • 3 comments

Bug Description Claude tries to read large files and crashes every time:FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal ----- Native stack trace -----

1: 0xca5430 node::Abort() [node] 2: 0xb77f85 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node] 3: 0xecb220 v8::api_internal::ToLocalEmpty() [node] 4: 0xcad1ec [node] 5: 0x717297e4d546

----- JavaScript stack trace -----

1: readFileSync (node:fs:453:20) 2: readFileSync (file:///home/jimmy/.nvm/versions/node/v20.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:536:728) 3: DI (file:///home/jimmy/.nvm/versions/node/v20.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:541:375) 4: file:///home/jimmy/.nvm/versions/node/v20.11.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1513:1582 5: processTicksAndRejections (node:internal/process/task_queues:95:5)

Environment Info

  • Platform: linux
  • Terminal: windows-terminal
  • Version: 1.0.10
  • Feedback ID: 6bab155c-4e08-46f2-8e28-77c7683108f6

Errors

[]

jimmy-validalpha avatar Jun 04 '25 08:06 jimmy-validalpha

Related to: https://github.com/anthropics/claude-code/issues/1555 and https://github.com/anthropics/claude-code/issues/1554

guidedways avatar Jun 04 '25 08:06 guidedways

Temporary fix:

npm i -g @anthropic-ai/[email protected]
claude config set -g autoUpdaterStatus disabled

ulshv avatar Jun 04 '25 11:06 ulshv

same

Image

PierrunoYT avatar Jun 04 '25 12:06 PierrunoYT

same here since today https://github.com/anthropics/claude-code/issues/1600

C4T4 avatar Jun 04 '25 21:06 C4T4

+1 high impact issue

divake avatar Jun 06 '25 04:06 divake

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]