claude-code - 💡(How to fix) Fix [BUG] Claude Desktop crashes on launch with a V8 "JavaScript heap out of memory" error every time, making the app unusable. The window opens briefly (~15–18 seconds) then dies with SIGTRAP / trace trap. Persists across a full clean reinstall.

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Summary: Claude Desktop crashes on launch with a V8 "JavaScript heap out of memory" error every time, making the app unusable. The window opens briefly (~15–18 seconds) then dies with SIGTRAP / trace trap. Persists across a full clean reinstall. OOM error in V8: Ineffective mark-compacts near heap limit Error occurred in handler for '...claude.buddy$BuddyBleTransport$_reportState': No handler registered (Bluetooth companion transport) Cleared caches: Cache, Code Cache, GPUCache, IndexedDB (fixed a separate IndexedDB LOCK error but not the OOM)

Error Messages/Logs

Fix Action

Fix / Workaround

Likely related open issues: #61992, #49579, #48942, #48261 (same OOM-on-launch signature, tied to Code/Cowork startup loading too many heavy resources into one V8 heap). Workaround: claude.ai in the browser works fine.

Code Example

alexli@Alexs-MacBook-Air ~ % ls -lt ~/Library/Application\ Support/Claude/logs/
ls: /Users/alexli/Library/Application Support/Claude/logs/: No such file or directory
alexli@Alexs-MacBook-Air ~ % ls -lt ~/Library/Application\ Support/Claude/logs/
ls: /Users/alexli/Library/Application Support/Claude/logs/: No such file or directory
alexli@Alexs-MacBook-Air ~ % ls -lt ~/Library/Logs/DiagnosticReports/ | grep -i claude
alexli@Alexs-MacBook-Air ~ %
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Summary: Claude Desktop crashes on launch with a V8 "JavaScript heap out of memory" error every time, making the app unusable. The window opens briefly (~15–18 seconds) then dies with SIGTRAP / trace trap. Persists across a full clean reinstall. Environment:

App version: Claude Desktop 1.9659.2 macOS: 26.2 (build 25C56) Hardware: MacBook Air

What happens: On launch the V8 old-space heap climbs to ~2048 MB (the default ceiling), the last-resort Mark-Compact GC frees nothing, then V8 aborts with OOM and the process dies. OOM error in V8: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory zsh: trace trap /Applications/Claude.app/Contents/MacOS/Claude Other signatures on every launch (matching existing reports):

MaxListenersExceededWarning: Possible EventEmitter memory leak detected on [WebContents] and [Cookies] Error occurred in handler for '...claude.buddy$BuddyBleTransport$_reportState': No handler registered (Bluetooth companion transport) DeprecationWarning: url.parse()

Troubleshooting already performed (all failed):

Restarted machine, killed all lingering Claude processes Cleared caches: Cache, Code Cache, GPUCache, IndexedDB (fixed a separate IndexedDB LOCK error but not the OOM) Removed MCP config (claude_desktop_config.json) — still crashes, so MCP is not the cause Cleared Cowork/agent state: cowork-enabled-cli-ops.json, local-agent-mode-sessions, vm_bundles, claude-code Full state wipe (rm -rf ~/Library/Application Support/Claude) — still crashes Full clean reinstall — still crashes

Likely related open issues: #61992, #49579, #48942, #48261 (same OOM-on-launch signature, tied to Code/Cowork startup loading too many heavy resources into one V8 heap). Workaround: claude.ai in the browser works fine.

What Should Happen?

claude code should stay open

Error Messages/Logs

alexli@Alexs-MacBook-Air ~ % ls -lt ~/Library/Application\ Support/Claude/logs/
ls: /Users/alexli/Library/Application Support/Claude/logs/: No such file or directory
alexli@Alexs-MacBook-Air ~ % ls -lt ~/Library/Application\ Support/Claude/logs/
ls: /Users/alexli/Library/Application Support/Claude/logs/: No such file or directory
alexli@Alexs-MacBook-Air ~ % ls -lt ~/Library/Logs/DiagnosticReports/ | grep -i claude
alexli@Alexs-MacBook-Air ~ %

Steps to Reproduce

open the claude desktop app and it stays open for a few seconds then quit.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude 1.9659.2 (390d6c) 2026-05-28T21:50:01.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Desktop crashes on launch with a V8 "JavaScript heap out of memory" error every time, making the app unusable. The window opens briefly (~15–18 seconds) then dies with SIGTRAP / trace trap. Persists across a full clean reinstall.