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

Resolved 💬 3 comments Opened Jul 29, 2025 by RaRdq Closed Aug 15, 2025

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"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗