Node.js Heap Out of Memory Error During Execution

Resolved 💬 3 comments Opened Aug 22, 2025 by ezrover Closed Aug 25, 2025

Bug Description
<--- Last few GCs --->

[29027:0x7f8e78018000] 15427699 ms: Scavenge (interleaved) 4047.5 (4067.9) -> 4041.5 (4106.1) MB, pooled: 0 MB, 49.23 / 0.00 ms (average mu = 0.249, current mu = 0.181) allocation failure;
[29027:0x7f8e78018000] 15430057 ms: Mark-Compact (reduce) 4042.2 (4106.1) -> 4040.3 (4046.1) MB, pooled: 0 MB, 2290.92 / 0.00 ms (+ 54.7 ms in 11 steps since start of marking, biggest step 5.1 ms, walltime since start of marking 2358 ms) (average mu = 0.
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 0x1072c30b1 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/local/Cellar/node/24.5.0/bin/node]
2: 0x106102183 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/local/Cellar/node/24.5.0/bin/node]
3: 0x106102144 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/local/Cellar/node/24.5.0/bin/node]
4: 0x1062de6d7 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/Cellar/node/24.5.0/bin/node]
5: 0x1062e10e4 v8::internal::Heap::OldGenerationConsumedBytes() const [/usr/local/Cellar/node/24.5.0/bin/node]
6: 0x1062e0f69 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector, v8::base::TimeTicks) [/usr/local/Cellar/node/24.5.0/bin/node]
7: 0x1062ef61d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1::operator()() const [/usr/local/Cellar/node/24.5.0/bin/node]
8: 0x1062ef2ad void heap::base::Stack::SetMarkerAndCallbackImpl<v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1>(heap::base::Stack, void, void const*) [/usr/local/Cellar/node/24.5.0/bin/node]
9: 0x106a79d7a PushAllRegistersAndIterateStack [/usr/local/Cellar/node/24.5.0/bin/node]
10: 0x1062dcbe5 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/Cellar/node/24.5.0/bin/node]
11: 0x10625cf9f v8::internal::StackGuard::HandleInterrupts(v8::internal::StackGuard::InterruptLevel) [/usr/local/Cellar/node/24.5.0/bin/node]
12: 0x1066588ad v8::internal::Runtime_StackGuardWithGap(int, unsigned long, v8::internal::Isolate) [/usr/local/Cellar/node/24.5.0/bin/node]
13: 0x106b47276 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/usr/local/Cellar/node/24.5.0/bin/node]
14: 0x106a9ed58 Builtins_MaglevFunctionEntryStackCheck_WithoutNewTarget [/usr/local/Cellar/node/24.5.0/bin/node]
15: 0x12861c69c
zsh: abort claude --permission-mode bypassPermissions

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.88
  • Feedback ID: 19c4cdd9-926a-486e-b38e-5bce5493275b

Errors

[]

View original on GitHub ↗

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