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

Node.js Memory Exhaustion: Heap Allocation Failure During Resume Command

Open RaRdq opened this issue 1 year ago • 3 comments

Bug Description /resume command results in error: <--- Last few GCs --->

[51956:000002C350775000] 170374 ms: Scavenge (interleaved) 4007.5 (4105.4) -> 4007.5 (4105.4) MB, pooled: 0 MB, 3.61 / 0.00 ms (average mu = 0.224, current mu = 0.060) allocation failure; [51956:000002C350775000] 170481 ms: Mark-Compact 4064.0 (4161.4) -> 4007.8 (4105.0) MB, pooled: 1 MB, 85.92 / 0.00 ms (average mu = 0.229, current mu = 0.233) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace -----

1: 00007FF601A120AD node::SetCppgcReference+17245 2: 00007FF60197A4D8 v8::base::CPU::num_virtual_address_bits+92376 3: 00007FF6024FA1B1 v8::Isolate::ReportExternalAllocationLimitReached+65 4: 00007FF6024E7096 v8::Function::Experimental_IsNopFunction+2790 5: 00007FF602336920 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+31392 6: 00007FF602330644 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+6084 7: 00007FF60232BCF5 v8::CpuProfileNode::GetScriptResourceNameStr+188069 8: 00007FF601CB13BD BIO_ssl_shutdown+189

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 1.0.62
  • Feedback ID: 0934440f-6494-4078-a7a2-ec4acedbdeb0

Errors

[{"error":"Error: spawn /c/Users/rardq/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n    at onErrorNT (node:internal/child_process:483:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T08:48:43.216Z"},{"error":"Error: spawn /c/Users/rardq/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n    at onErrorNT (node:internal/child_process:483:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T08:48:43.220Z"}]

RaRdq avatar Jul 29 '25 08:07 RaRdq

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3178
  2. https://github.com/anthropics/claude-code/issues/5253
  3. https://github.com/anthropics/claude-code/issues/4301

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

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

This issue has been automatically closed as a duplicate of #3178.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 15 '25 18:08 github-actions[bot]

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 25 '25 14:08 github-actions[bot]