[BUG] FATAL ERROR: Reached heap limit
Resolved 💬 6 comments Opened Sep 17, 2025 by Chriscps91 Closed Jan 9, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude-Code was troubleshooting a persistent bug and crashed with the below error. This has happened multiple times working on this same bug it is troubleshooting.
What Should Happen?
Claude-code to continue successfully
Error Messages/Logs
<--- Last few GCs --->
[47607:0x25128000] 58702957 ms: Mark-Compact 1949.9 (1988.1) -> 1942.3 (2003.8) MB, pooled: 1 MB, 173.53 / 0.04 ms (average mu = 0.316, current mu = 0.202) allocation failure; scavenge might not succeed
[47607:0x25128000] 58703191 ms: Mark-Compact (reduce) 1952.2 (2004.3) -> 1949.8 (1980.3) MB, pooled: 0 MB, 102.65 / 0.01 ms (+ 56.3 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 225 ms) (average mu = 0.320, cu
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xe1803a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [claude]
2: 0x11ec9c0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [claude]
3: 0x11ecc97 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [claude]
4: 0x141a575 [claude]
5: 0x1433e09 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [claude]
6: 0x1385bc8 v8::internal::StackGuard::HandleInterrupts(v8::internal::StackGuard::InterruptLevel) [claude]
7: 0x1842cef v8::internal::Runtime_HandleNoHeapWritesInterrupts(int, unsigned long*, v8::internal::Isolate*) [claude]
8: 0x1da1476 [claude]
Steps to Reproduce
Have claude-code test a process and have a bug, use multiple sub-agents to assist in process.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.117
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗