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

[BUG] FATAL ERROR : Reached heap limit Allocation failed

Open adamkwhite opened this issue 6 months ago • 0 comments

Environment

  • Platform (select one):
    • [X] Other: Claude Pro Max
  • Claude CLI version: 1.0.24 (Claude Code)
  • Operating System: Windows WSL Ubuntu 22.04
  • Terminal: Terminal App

Bug Description

Steps to Reproduce

  1. Claude Code was resolving a merge conflict

Expected Behavior

  • Proper resolution of the merge conflict

Actual Behavior

  • Stack trace (see below)

Additional Context

  • I was near the usage limit for the day. I believe Claude Code hit the usage limit in the middle of this task

  • The console had the following

<--- Last few GCs --->

[86531:0x64caf27b1540] 12536089 ms: Mark-sweep 4087.8 (4108.9) -> 4087.3 (4112.9) MB, 140.8 / 0.0 ms (average mu = 0.860, current mu = 0.688) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 1: 0x79cb6660633c node::Abort() [/lib/x86_64-linux-gnu/libnode.so.109] 2: 0x79cb664fa5db [/lib/x86_64-linux-gnu/libnode.so.109] 3: 0x79cb669ec544 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.109] 4: 0x79cb669ec938 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.109] 5: 0x79cb66bd80e9 [/lib/x86_64-linux-gnu/libnode.so.109] 6: 0x79cb66bedc69 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.109] 7: 0x79cb66bc8c5a v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.109] 8: 0x79cb66bc9d78 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.109] 9: 0x79cb66ba90ff v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.109] 10: 0x79cb66ba19ec v8::internal::FactoryBasev8::internal::Factory::NewRawTwoByteString(int, v8::internal::AllocationType) [/lib/x86_64-linux-gnu/libnode.so.109] 11: 0x79cb66bac379 v8::internal::Factory::NewStringFromUtf8(v8::base::Vector const&, v8::internal::AllocationType) [/lib/x86_64-linux-gnu/libnode.so.109] 12: 0x79cb669fe3aa v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/lib/x86_64-linux-gnu/libnode.so.109] 13: 0x79cb66714397 node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Localv8::Value*) [/lib/x86_64-linux-gnu/libnode.so.109] 14: 0x79cb665d902a [/lib/x86_64-linux-gnu/libnode.so.109] 15: 0x79cb66881a6f [/lib/x86_64-linux-gnu/libnode.so.109] Aborted (core dumped)

adamkwhite avatar Jun 16 '25 19:06 adamkwhite