Codex Desktop crashes on startup with exit code 3221225501 (0xC000001D) on Windows 11 25H2
Open 💬 6 comments Opened May 25, 2026 by magiciseed87
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
Unable to check — app crashes on startup
What subscription do you have?
Free
What platform is your computer?
Windows 11 25H2 (Build 26200.8457) x64
What issue are you seeing?
Codex Desktop app crashes immediately on startup with the following error:
(code=3221225501, signal=null).
Most recent error: Codex app-server websocket closed (code=3221225501)
Exit code 3221225501 corresponds to 0xC000001D (STATUS_ILLEGAL_INSTRUCTION), indicating the bundled binary is executing an unsupported CPU instruction.
What steps can reproduce the bug?
- Download and install Codex Desktop from the official website (installed as a Windows app via MSIX/Store package)
- Launch Codex
- App immediately shows the error screen with code 3221225501
No further interaction is possible — the app never reaches the main UI.
What is the expected behavior?
Codex Desktop should launch normally and display the main interface without crashing.
Additional information
- CPU: AMD Ryzen AI MAX+ 395 w/ Radeon 8060S (Zen 5, 16 cores / 32 threads)
- RAM: 124 GB
- GPU: AMD Radeon 8060S
- Git: Git for Windows 2.54.0 (freshly installed)
What I've tried:
- Installed Git for Windows (resolved an initial "git not found" error, but this crash persists)
- Tried with VPN on/off (Astrill VPN, tested OpenWeb and StealthVPN protocols)
- Clicked "Update Codex" and "Reload" buttons — no change
- Rebooted the system — no change
This appears to be the same class of issue as #57698 in anthropics/claude-code, where the bundled Bun binary crashes with 0xC000001D on certain systems.
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Solution: openai/codex #24408 — Windows Desktop crashes on startup exit code 0xC000001D
Issue Summary
Codex Desktop crashes immediately on startup on Windows with exit code 3221225501 (0xC000001D = STATUS_ILLEGAL_INSTRUCTION). The bundled binary executes an unsupported CPU instruction. Affected CPU: AMD Ryzen AI MAX+ 395 (Zen 5). Same class of issue as claude-code #57698 (Bun binary crash).
Root Cause Analysis
The Error
0xC000001D=STATUS_ILLEGAL_INSTRUCTION— the CPU encounters an instruction it doesn't support.Why Zen 5?
AMD Zen 5 (and Intel's newer architectures) have changed instruction set behavior:
The Bundled Binary
Codex Desktop bundles a native binary (likely Node.js/Bun or a Rust binary) that was compiled with CPU-specific optimizations. The binary likely uses:
Similar Issue Reference
claude-code #57698 had the same issue with the Bun binary. The fix was to provide a "baseline" build without AVX-512 optimizations.
Proposed Fix
Fix 1: Provide baseline binary build
Compile a fallback binary without advanced CPU instructions:
Fix 2: Runtime CPU feature detection
At startup, detect CPU capabilities and select the appropriate binary:
Fix 3: Graceful fallback on illegal instruction
Fix 4: MSIX package update
Update the MSIX/Store package to include both binaries:
Test Plan
Impact Assessment
Exactly the same issues, not solved.
I can reproduce the same issue on another Windows 11 25H2 machine.
Environment:
Reproduction:
codex.exe --version
=> codex-cli 0.142.0-alpha.6
codex.exe app-server --listen ws://127.0.0.1:4500
=> exits immediately
$LASTEXITCODE
=> -1073741795
Unsigned exit code:
-1073741795 = 3221225501 = 0xC000001D / STATUS_ILLEGAL_INSTRUCTION
Health check:
curl.exe http://127.0.0.1:4500/healthz
=> Failed to connect, because app-server never starts listening.
Desktop log evidence:
This suggests the bundled Desktop app-server sidecar starts, initializes, then crashes with STATUS_ILLEGAL_INSTRUCTION. It does not appear to be a login, WSL, proxy, or config.toml issue.
Same Issue...
I finally found the root cause on my machine.
Environment
Symptoms
Codex always failed with:
Desktop logs showed that:
Windows Event Viewer showed:
The root cause was Astrill's LSP (
ASProxy64.dll) injecting intocodex.exe.Solution
Astrill has a hidden menu.
Hold Ctrl while opening the Astrill menu and select:
After rebooting:
returns
and Codex starts normally.
I also wrote a complete investigation here:
https://gist.github.com/tegku/ac6d11e634299f7b007b536836e7a043