[Bug] Out of Memory (OOM) Error During Code Generation
Bug Description
Claude Code crashed with OOM
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.92
- Feedback ID: dd26167f-0744-4bcf-8175-303125f6fca5
Errors
<--- Last few GCs --->
[69507:0x130008000] 196922250 ms: Mark-Compact (reduce) 4041.3 (4057.0) -> 4041.3 (4054.0) MB, pooled: 0 MB, 18.58 / 0.00 ms (average mu = 0.952, current mu = 0.000) last resort; GC in old space requested
[69507:0x130008000] 196922268 ms: Mark-Compact (reduce) 4041.3 (4054.0) -> 4041.3 (4054.0) MB, pooled: 0 MB, 17.92 / 0.00 ms (average mu = 0.909, current mu = 0.002) last resort; GC in old space requested
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0x10226a164 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
2: 0x10239ba5c v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
3: 0x10239ba14 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
4: 0x10256ed18 v8::internal::HeapAllocator::CollectAllAvailableGarbage(v8::internal::AllocationType) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
5: 0x102547060 v8::internal::MaybeHandle<v8::internal::SeqTwoByteString> v8::internal::FactoryBase<v8::internal::Factory>::NewRawStringWithMap<v8::internal::SeqTwoByteString>(int, v8::internal::Tagged<v8::internal::Map>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
6: 0x1023c165c v8::internal::DirectHandle<v8::internal::String> v8::internal::String::SlowFlatten<v8::internal::DirectHandle>(v8::internal::Isolate*, v8::internal::DirectHandle<v8::internal::String><v8::internal::ConsString>, v8::internal::AllocationType) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
7: 0x1023bae54 v8::String::ValueView::ValueView(v8::Isolate*, v8::Local<v8::String>) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
8: 0x102329298 node::StringBytes::Size(v8::Isolate*, v8::Local<v8::Value>, node::encoding) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
9: 0x102323b78 node::StreamBase::Writev(v8::FunctionCallbackInfo<v8::Value> const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
10: 0x102324e7c void node::StreamBase::JSMethod<&node::StreamBase::Writev(v8::FunctionCallbackInfo<v8::Value> const&)>(v8::FunctionCallbackInfo<v8::Value> const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
11: 0x102cf6818 Builtins_CallApiCallbackGeneric [/opt/homebrew/Cellar/node/24.4.0/bin/node]
12: 0x1483d676c
13: 0x14817e4c0
14: 0x1483e0ed4
15: 0x1483de228
16: 0x1483dc178
17: 0x1483435fc
18: 0x1483df978
19: 0x102cf28cc Builtins_JSEntryTrampoline [/opt/homebrew/Cellar/node/24.4.0/bin/node]
20: 0x102cf2570 Builtins_JSEntry [/opt/homebrew/Cellar/node/24.4.0/bin/node]
21: 0x1024d0c28 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
22: 0x1024d0618 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]
23: 0x1023acf48 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]
24: 0x1021b8bd8 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]
25: 0x1021c7928 node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
26: 0x102325b40 node::ReportWritesToJSStreamListener::OnStreamAfterReqFinished(node::StreamReq*, int) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
27: 0x102325c0c node::WriteWrap::OnDone(int) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
28: 0x102325f00 node::StreamReq::Done(int, char const*) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
29: 0x1023283b8 node::LibuvStreamWrap::AfterUvWrite(uv_write_s*, int) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
30: 0x102328ab4 node::MakeLibuvRequestCallback<uv_write_s, void ()(uv_write_s, int)>::Wrapper(uv_write_s*, int) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
31: 0x107714638 uv__write_callbacks [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
32: 0x107713bd0 uv__stream_io [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
33: 0x10771aca8 uv__io_poll [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
34: 0x10770ab58 uv_run [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
35: 0x1021b93ec node::SpinEventLoopInternal(node::Environment*) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
36: 0x102293f38 node::NodeMainInstance::Run(node::ExitCode, node::Environment) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
37: 0x102293ccc node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node/24.4.0/bin/node]
38: 0x10223f808 node::Start(int, char**) [/opt/homebrew/Cellar/node/24.4.0/bin/node]
39: 0x19bdfeb98 start [/usr/lib/dyld]
zsh: abort claude
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗