[Bug] JavaScript heap out of memory during execution

Resolved 💬 3 comments Opened Jan 8, 2026 by kwannz Closed Jan 12, 2026

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

[19847:0x8cc80c000] 40476452 ms: Mark-Compact 4060.9 (4105.3) -> 4056.9 (4105.3) MB, pooled: 2 MB, 250.92 / 0.00 ms (average mu = 0.203, current mu = 0.125) allocation failure; scavenge might not succeed
[19847:0x8cc80c000] 40476768 ms: Mark-Compact 4061.4 (4105.8) -> 4057.5 (4106.1) MB, pooled: 1 MB, 281.75 / 0.00 ms (average mu = 0.157, current mu = 0.109) allocation failure; scavenge might not succeed

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

1: 0x100c66164 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
2: 0x100d97a5c v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
3: 0x100d97a14 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
4: 0x100f7499c v8::internal::Heap::stack() [/opt/homebrew/Cellar/node/24.4.0/bin/node]
5: 0x100f770dc v8::internal::Heap::OldGenerationConsumedBytes() const [/opt/homebrew/Cellar/node/24.4.0/bin/node]
6: 0x100f76f7c v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector, v8::base::TimeTicks) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
7: 0x100f84908 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1::operator()() const [/opt/homebrew/Cellar/node/24.4.0/bin/node]
8: 0x100f845ac void heap::base::Stack::SetMarkerAndCallbackImpl<v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags)::$_1>(heap::base::Stack, void, void const*) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
9: 0x1016ccd20 PushAllRegistersAndIterateStack [/opt/homebrew/Cellar/node/24.4.0/bin/node]
10: 0x100f72f5c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
11: 0x100f6ab64 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
12: 0x100f527f0 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
13: 0x1012c5500 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
14: 0x10178df74 Builtins_CEntry_Return1_ArgvOnStack_NoBuiltinExit [/opt/homebrew/Cellar/node/24.4.0/bin/node]
15: 0x127531ca0
16: 0x127d6ddac
17: 0x1274111e0
18: 0x1281dc5c8
19: 0x127efee14
20: 0x1279af6ac
21: 0x1279ae7c0
22: 0x1281515a8
23: 0x1272c1224
24: 0x127e90748
25: 0x1279af87c
26: 0x1279ae7c0
27: 0x1279b2a3c
28: 0x12800e6b0
29: 0x127409754
30: 0x1016ee8cc Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/24.4.0/bin/node]
31: 0x1016ee570 Builtins_JSEntry [/opt/homebrew/Cellar/node/24.4.0/bin/node]
32: 0x100eccc28 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
33: 0x100ecc618 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::DirectHandle<v8::internal::Object>, v8::internal::DirectHandle<v8::internal::Object>, v8::base::Vector<v8::internal::DirectHandle<v8::internal::Object> const>) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
34: 0x100da8f48 v8::Function::Call(v8::Isolate, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
35: 0x100bb4bd8 node::InternalMakeCallback(node::Environment, v8::Local<v8::Object>, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>, node::async_context, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
36: 0x100bb4ea0 node::InternalMakeCallback(v8::Isolate, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>, node::async_context, v8::Local<v8::Value>) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
37: 0x100c19b44 node::Environment::CheckImmediate(uv_check_s*) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
38: 0x10610c214 uv__run_check [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
39: 0x106106b88 uv_run [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
40: 0x100bb53ec node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
41: 0x100c8ff38 node::NodeMainInstance::Run(node::ExitCode, node::Environment) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
42: 0x100c8fccc node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/24.4.0/bin/node]
43: 0x100c3b808 node::Start(int, char**) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
44: 0x195a4dd54 start [/usr/lib/dyld]
zsh: abort claude --dangerously-skip-permissions

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.1
  • Feedback ID: 0858e701-a1a8-4ce2-9fb2-f7576c46783b

Errors

Note: Error logs were truncated.

View original on GitHub ↗

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