claude-code - 💡(How to fix) Fix [BUG] Claude Code process crashes with exit code 3221225477 (0xC0000005) on every spawn from Desktop app on Windows 11 [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#49271Fetched 2026-04-17 08:46:00
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[error] Session query error: Claude Code process exited with code 3221225477 Error: Claude Code process exited with code 3221225477 at uon.getProcessExitError (app://.vite\build\index.js:345:7111) at ChildProcess.n (app://.vite\build\index.js:345:10068) at Object.onceWrapper (node:events:623:26) at ChildProcess.emit (node:events:520:35) at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Code Example

[error] Session query error: Claude Code process exited with code 3221225477
Error: Claude Code process exited with code 3221225477
    at uon.getProcessExitError (app://\.vite\build\index.js:345:7111)
    at ChildProcess.n (app://\.vite\build\index.js:345:10068)
    at Object.onceWrapper (node:events:623:26)
    at ChildProcess.emit (node:events:520:35)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

---

From %APPDATA%\Claude\logs\main.log:

[error] Session local_2b030343-58cb-4de0-ac80-74c0861cff5d query error: Claude Code process exited with code 3221225477
[error] Sentry caught: {
  eventId: '9ed156817cbf4d609876da778bda0ba8',
  type: 'Error',
  value: 'Claude Code process exited with code 3221225477',
  stack: 'Error: Claude Code process exited with code 3221225477\n' +
    '    at uon.getProcessExitError (app://\\.vite\\build\\index.js:345:7111)\n' +
    '    at ChildProcess.n (app://\\.vite\\build\\index.js:345:10068)\n' +
    '    at Object.onceWrapper (node:events:623:26)\n' +
    '    at ChildProcess.emit (node:events:520:35)\n' +
    '    at ChildProcess._handle.onexit (node:internal/child_process:294:12)'
}
[info] [CCD CycleHealth] unhealthy cycle (2s, hadFirstResponse=false, reason=no_response)
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?

The Claude Desktop app (Windows) cannot launch Claude Code sessions. Every spawn of the embedded claude.exe (v2.1.92) crashes within ~2 seconds with exit code 3221225477 (STATUS_ACCESS_VIOLATION / 0xC0000005). This is 100% reproducible on cold start.

Running claude.exe directly from a terminal (CLI v2.1.85) works perfectly — the crash is specific to how the Electron app spawns the child process.

Environment:

  • OS: Windows 11 Education 10.0.26200
    • Desktop app: v1.2773.0 (previously v1.1617.0 — same crash)
      • Embedded Claude Code binary: 2.1.92
        • Node version (Electron): 24.14.0
          • CLI Claude Code (works fine): 2.1.85
            • Git: 2.53.0.2 Error from %APPDATA%\Claude\logs\main.log:
[error] Session query error: Claude Code process exited with code 3221225477
Error: Claude Code process exited with code 3221225477
    at uon.getProcessExitError (app://\.vite\build\index.js:345:7111)
    at ChildProcess.n (app://\.vite\build\index.js:345:10068)
    at Object.onceWrapper (node:events:623:26)
    at ChildProcess.emit (node:events:520:35)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Ruled out:

  • Disabling all MCP servers (including gdrive)
    • Different working directories (including fresh empty folders)
      • Session state / transcript corruption
        • Git for Windows version (upgraded to 2.53.0.2)
          • Swapping the embedded binary to 2.1.85 (desktop re-downloads 2.1.92 on launch)
            • No ANTHROPIC_API_KEY env var set
              • Updating desktop app from v1.1617.0 to v1.2773.0 (same crash) Key observation: The CLI binary runs fine from any terminal. The crash only occurs when the Electron app spawns claude.exe as a child process, pointing to something in the spawn configuration (stdio pipes, env, or spawn flags) interacting badly with the 2.1.92 binary on this Windows build.

Possibly related: #43547, #18772, #30165, #40052

What Should Happen?

The Desktop app should successfully spawn the embedded Claude Code binary and start an interactive session, the same way the CLI binary works when launched directly from a terminal.

Error Messages/Logs

From %APPDATA%\Claude\logs\main.log:

[error] Session local_2b030343-58cb-4de0-ac80-74c0861cff5d query error: Claude Code process exited with code 3221225477
[error] Sentry caught: {
  eventId: '9ed156817cbf4d609876da778bda0ba8',
  type: 'Error',
  value: 'Claude Code process exited with code 3221225477',
  stack: 'Error: Claude Code process exited with code 3221225477\n' +
    '    at uon.getProcessExitError (app://\\.vite\\build\\index.js:345:7111)\n' +
    '    at ChildProcess.n (app://\\.vite\\build\\index.js:345:10068)\n' +
    '    at Object.onceWrapper (node:events:623:26)\n' +
    '    at ChildProcess.emit (node:events:520:35)\n' +
    '    at ChildProcess._handle.onexit (node:internal/child_process:294:12)'
}
[info] [CCD CycleHealth] unhealthy cycle (2s, hadFirstResponse=false, reason=no_response)

Steps to Reproduce

a1. Install Claude Desktop app on Windows 11 Education (10.0.26200) 2. Open the app (any working directory, including a fresh empty folder) 3. 3. Start a new Claude Code session (type any message) 4. 4. The embedded claude.exe (2.1.92) spawns and crashes within ~2 seconds with exit code 3221225477 5. 5. This happens 100% of the time on cold start Contrast: Running claude from a terminal (CLI v2.1.85) in the same directory works perfectly every time.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.92 (embedded in Desktop app v1.2773.0) / CLI 2.1.85 works fine

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

The issue is likely due to the spawn configuration of the Electron app when launching the embedded claude.exe binary, causing a crash with exit code 3221225477, and can be mitigated by investigating the differences in environment, stdio pipes, or spawn flags between the Electron app and the working CLI launch.

Guidance

  • Investigate the spawn configuration of the Electron app, specifically the environment variables, stdio pipes, and spawn flags used when launching claude.exe, to identify potential differences with the CLI launch.
  • Compare the environment variables set by the Electron app with those set when running claude.exe from a terminal to ensure consistency.
  • Consider testing the Electron app with a different version of the embedded claude.exe binary, such as 2.1.85, to see if the issue is specific to version 2.1.92.
  • Review the error logs and stack traces to identify any patterns or clues that may indicate the root cause of the crash.

Example

No specific code example is provided, as the issue is more related to the configuration and environment of the Electron app and claude.exe launch.

Notes

The issue seems to be specific to the Windows 11 Education environment and the Electron app's spawn configuration. Further investigation is needed to determine the exact cause and a potential fix.

Recommendation

Apply a workaround by investigating and adjusting the spawn configuration of the Electron app to match the working CLI launch, as the root cause is likely related to the environment or launch settings rather than a specific version issue.

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