RangeError: Maximum call stack size exceeded
Unbounded recursion blew the JS stack.
30 issues · 1 open · 29 resolved (97%) · first seen May 2, 2025
First response · local
What to do now
Most likely: The local Claude Code process crashed while parsing or executing.
- Record the Claude Code version and the first stack frame before restarting.
- Try a fresh session with the same minimal input to distinguish corrupted state from a repeatable crash.
- Preserve logs and compare reports from the same version before downgrading.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is gone quiet. No new reports in the last 180 days — this looks resolved or superseded. The open backlog peaked at 11 in 2026-01 and sits at 1 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
12 of these reports name the Claude Code build they were running, spanning 7 releases. Heaviest reporters:
- Claude Code v2.0.76
- Claude Code v2.1.2
- Claude Code v2.1.1
- Claude Code v2.1.17
- Claude Code v2.1.14
- Claude Code v2.0.74
- Claude Code v2.0.73
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 17 days across 29 closures. Of the 29 closures with a recorded reason, 21% were closed as completed and 23 as not-planned or duplicate. The most recent completed fix landed in 2026-01.
Workarounds reported by the community
8 of these issues post a workaround someone says worked. The highest-engagement ones:
- [BUG] Stack overflow crash parsing ANSI-colored vitest output in v2.1.1
- …through Claude Code Claude Code crashes with stack overflow Workaround: Running tests with NO COLOR=1 prevents the crash. Claude Code Version: 2.1.1 Platform: Claude Max Operating System: Linux (WSL) Terminal/Shell: (you…
Found in the description of #16786 · resolved - RangeError: Maximum call stack size exceeded in endOfWORD() - CLI crashes with long outputs
- …experience for professional code analysis - Need for manual workarounds Current Workaround Instructing AI (via prompt engineering) to generate structured analysis instead of literal line-by-line citations, keeping output…
Found in the description of #9157 · resolved - RangeError: Maximum call stack size exceeded when running in tmux with large outputs
- …gh scroll event rate ( 9935 reports 4,000-6,700 events/sec) Workarounds - Running Claude Code outside tmux (not ideal for workflows requiring multiple sessions) - Avoiding large outputs - Using wider tmux panes - Frequen…
Found in the description of #21529 · resolved - RangeError: Maximum call stack size exceeded in CZ function (v2.1.37)
- …long conversations or multiple agents hit this frequently - Workaround: restart CLI, /compact, or increase Node stack size Attachments - Full error stack trace available - User context: nora-80b-runpod project, 30+ min c…
Found in the description of #25183 · resolved - [Bug] Stack Overflow in CLI v2.1.37 - Missing turnCount increment in CZ function
- …long conversations or multiple agents hit this frequently - Workaround: restart CLI, /compact, or increase Node stack size Attachments - Full error stack trace available - User context: nora-80b-runpod project, 30+ min c…
Found in the description of #25182 · resolved
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 1–30
Ranked by community engagement (reactions weighted over comments).
- RangeError: Maximum call stack size exceeded crash
- Stack Overflow in Async Grep Tool Execution
- [BUG] Maximum call stack exceeded
- [BUG] Stack Overflow Near Maximum Context Length
- [BUG] Crash in vim normal mode when E (endOfWord) is pressed at the end of the current prompt
- [BUG] Maximum call stack size exceeded on Windows on ARM
- RangeError: Maximum call stack size exceeded in message streaming
- [BUG] Stack overflow crash parsing ANSI-colored vitest output in v2.1.1
- [BUG] Node.js crash: Cannot find module '/Users/[username]'
- RangeError: Maximum call stack size exceeded in terminal rendering (noR recursion)
- [BUG] Claude Code hangs on startup; sometimes crashes with RangeError: Maximum call stack size exceeded
- RangeError: Maximum call stack size exceeded in endOfWORD() - CLI crashes with long outputs
- [BUG] Maximum call stack size exceeded on first install
- RangeError: Maximum call stack size exceeded when running in tmux with large outputs
- [Bug] Stack overflow in tool execution streaming path (RangeError: Maximum call stack size exceeded)
- RangeError: Maximum call stack size exceeded in CZ function (v2.1.37)
- [Bug] Stack Overflow in CLI v2.1.37 - Missing turnCount increment in CZ function
- Stack overflow crash from corrupted JSONL session files during concurrent writes
- [BUG] RangeError: Maximum call stack size exceeded during WebFetch
- RangeError: Maximum call stack size exceeded during idle state (possible concurrent session issue)
- RangeError: Maximum call stack size exceeded during MCP hook processing
- [Bug] Maximum call stack size exceeded in markdown lexer
- [BUG] Unable to Start Claude code on Windows 11
- RangeError: Maximum call stack size exceeded in text cursor navigation
- [BUG] RangeError: Maximum call stack size exceeded
- Maximum call stack size exceeded error
- Maximum call stack size exceeded during high-context message processing
- [BUG] RangeError: Maximum call stack size exceeded during AskUserQuestion (post-parallel-agents)
- [Bug] Maximum call stack size exceeded in file writing during long sessions with auto-compact disabled
- Recursive Call Stack Overflow in Text Manipulation Method