Node.js Heap Memory Exhaustion Preventing Chat History Retrieval

Resolved 💬 4 comments Opened Jul 26, 2025 by rjmh94 Closed Jan 4, 2026

Bug Description
ever since i had a chat that compacted 3 or 4 times, i can no longer get chat history to work. using --continue or --resume, ig gives me this: ubuntu@ip-172-26-3-80:~/app$ claude --continue

<--- Last few GCs --->

[1882301:0x3d5908a0] 13303 ms: Mark-sweep (reduce) 2045.5 (2066.4) -> 2045.5 (2063.4) MB, 31.5 / 0.0 ms (+ 19.3 ms in 1 steps since start of marking, biggest step 19.3 ms, walltime since start of marking 55 ms) (average mu = 0.666, current mu = 0.289)[1882301:0x3d5908a0] 13372 ms: Mark-sweep (reduce) 2046.5 (2064.4) -> 2046.5 (2064.4) MB, 66.3 / 0.0 ms (average mu = 0.433, current mu = 0.042) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xb9bbf0 node::Abort() [claude]
2: 0xaa27ee [claude]
3: 0xd734a0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [claude]
4: 0xd73847 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [claude]
5: 0xf50c55 [claude]
6: 0xf6312d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [claude]
7: 0xf3d81e v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [claude]
8: 0xf3ebe7 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [claude]
9: 0xf1f160 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [claude]
10: 0xf16bd4 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [claude]
11: 0xf18f68 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [claude]
12: 0xf2241c v8::internal::Factory::NewStringFromUtf8(v8::base::Vector<char const> const&, v8::internal::AllocationType) [claude]
13: 0xd826b3 v8::String::NewFromUtf8(v8::Isolate, char const, v8::NewStringType, int) [claude]
14: 0xc89ed1 [claude]
15: 0xc89fed node::StringDecoder::DecodeData(v8::Isolate, char const, unsigned long*) [claude]
16: 0xc8a5be [claude]
17: 0x16974ef [claude]
Aborted (core dumped)

--its happened every time for over a week. its not something that looks like it will fix itself. (i havent tried uninstalling though) is there a max number of compacts that will break chat history? thank you!!

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.61
  • Feedback ID: cc294049-2d29-4738-be97-061449d63921

Errors

[]

View original on GitHub ↗

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