Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.917.9434.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What issue are you seeing?
Codex Desktop consistently crashes/closes approximately 2–7 seconds after launch.
The issue started around September 27, 2026. Before the issue started, Codex showed repeated errors during a chat session, and I also briefly saw a notification mentioning that some network had been detected.
IMPORTANT: The same launch/close behavior occurs on TWO different Windows computers.
Steps to reproduce:
- Launch Codex Desktop.
- The Codex window opens normally.
- The application initializes and the UI becomes visible.
- Approximately 2–7 seconds later the window closes.
- ChatGPT.exe/Electron subprocesses may remain alive briefly and then terminate.
The issue reproduces on every launch.
Versions tested:
- 26.924.2738.0 — affected
- 26.917.9434.0 — affected
Troubleshooting already performed:
- Completely reinstalled Codex Desktop.
- Reset the Windows/MSIX application data.
- Tested two different Codex Desktop versions.
- Created a completely fresh Chromium/Electron profile by renaming:
C:\Users\YouRock\AppData\Roaming\Codex\web\Codex - The crash still reproduced with the newly generated clean profile.
- Updated the NVIDIA GPU driver.
- Checked Windows user proxy settings: no proxy configured.
- Checked WinHTTP proxy: direct connection/no proxy.
- Checked HTTP/HTTPS/Node/Electron environment variables.
- Ran DISM /ScanHealth: no component store corruption.
- Ran sfc /scannow: no integrity violations.
- Codex CLI authentication works ("Logged in using ChatGPT").
- Codex app-server initializes successfully.
- Bitdefender was completely uninstalled and Windows was rebooted before testing again. The crash still occurs.
- Windows Defender remains enabled.
- The issue also reproduces on a second computer.
Crashpad creates a fresh dump when Codex closes.
Crashpad sidecar:
{"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}
I analyzed the fresh dump with Microsoft WinDbg.
WinDbg results:
Process: ChatGPT.exe
ExceptionCode: 0x80000003 (Break instruction exception)
Failure.Bucket: BREAKPOINT_80000003_chrome.dll!Unknown
Failure.ProblemClass.Primary: BREAKPOINT
MODULE_NAME: chrome
IMAGE_NAME: chrome.dll
IMAGE_VERSION: 153.0.8010.53
FAILURE_ID_HASH: {be0d4058-7058-b7fb-5291-62cb1f25d882}
Exception address:
chrome!uv_mutex_unlock+0x100f6d
Faulting instruction:
int 3
The stack goes through Chromium/V8/Node and eventually reaches:
chrome!ChromeMain
ChatGPT.exe
The dump reports approximately 7 seconds of process uptime before the crash.
Windows Event Viewer does not show a new Application Error corresponding to this particular crash. There was an older unrelated MoAppHang report, so I have not treated that old event as evidence for the current crash.
I also tested after completely uninstalling Bitdefender and rebooting, because endpoint security/DLL injection was suggested as a possible cause. This made no difference.
Because the problem reproduces:
- on two computers,
- after reinstalling Codex,
- with two Codex versions,
- with a completely fresh Chromium profile,
- and after removing third-party endpoint security,
this does not appear to be a simple corrupted local profile or installation.
I have the following diagnostic files available:
- Crashpad .dmp
- Crashpad _sidecar.json
- complete WinDbg !analyze -v output
- Codex application logs
- Codex Doctor output
I can provide additional diagnostics if needed.
codex-crash-analysis_1580_2026-09-28_18-42-14-792.txt
What steps can reproduce the bug?
- Start Codex Desktop on Windows.
- The main Codex window opens normally and the UI becomes visible.
- Wait approximately 2–7 seconds.
- The Codex window closes without any user action.
- ChatGPT.exe/Electron subprocesses may remain running briefly before terminating.
The problem occurs on every launch.
It reproduces after:
- reinstalling Codex;
- resetting the Windows app;
- creating a completely fresh Chromium/Electron profile;
- testing Codex versions 26.924.2738.0 and 26.917.9434.0;
- updating the NVIDIA driver;
- completely uninstalling Bitdefender and rebooting Windows.
No VPN or Windows/WinHTTP proxy is configured.
What is the expected behavior?
Codex Desktop should remain open after startup and allow normal use of the application instead of terminating a few seconds after initialization.
Additional information
The issue reproduces on two separate Windows computers.
A fresh Crashpad dump from one affected launch was analyzed with WinDbg:
ExceptionCode: 0x80000003 (Break instruction exception)
Failure.Bucket: BREAKPOINT_80000003_chrome.dll!Unknown
MODULE_NAME: chrome
IMAGE_NAME: chrome.dll
IMAGE_VERSION: 153.0.8010.53
FAILURE_ID_HASH: {be0d4058-7058-b7fb-5291-62cb1f25d882}
Crashpad sidecar:
{"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}
The faulting instruction is an INT 3 breakpoint inside chrome.dll.
I have the full WinDbg !analyze -v output and the original Crashpad dump available if maintainers need them.
Activity
YouRoPlay commentedon Sep 28, 2026
One more detail I remembered about the period immediately before the crash-on-launch issue started:
I was working extensively with many high-resolution JPG images (maze/map images) attached to a Codex chat.
Before I reinstalled Codex, the application had already started producing repeated errors. Codex indicated that it was aware of the errors and, as far as I remember, explained that they were related in some way to how images were being handled/processed. Unfortunately, I no longer remember the exact error message or explanation.
I also saw a Windows network/firewall-style permission dialog once and allowed the requested access.
I eventually reinstalled Codex because of these repeated errors. After the reinstall, the current crash-on-launch behavior began.
I am not claiming that the JPG files or image processing caused the current crash, but this was the sequence of events immediately before the problem started.
xu96558-sys commentedon Oct 1, 2026
Reproducing the same Windows desktop crash on a newer build.
Environment:
Behavior:
WinDbg on the latest dump:
I also tried a fresh user-data-dir, --disable-direct-composition, a forced reload of app://-/index.html, confirmed NODE_OPTIONS is unset, and tested after stopping third-party IME processes. The crash still reproduces.
This appears to be the same crash signature as this issue, and it still reproduces on 26.928.2636.0 / Windows build 26300.9457.
xwu136772-jpg commentedon Oct 4, 2026
I can reproduce the same crash signature on the current stable Windows package.
Environment:
Behavior:
window ready-to-show/rendererWindowVisible=true.Crashpad sidecar:
{"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}WinDbg:
The faulting instruction is an
int 3breakpoint inside the bundledchrome.dll. The stack remains primarily inside Chromium/V8/Node frames before returning to the app.Troubleshooting already completed without resolving the crash:
I am keeping the raw Crashpad .dmp private because it may contain process memory, but I can provide additional sanitized WinDbg output if useful.
jackfeicoder commentedon Oct 6, 2026
I use Gemini fix it.### Title:
[Bug]: Windows Desktop client crashes (~40s after launch) with 0xC0000005 Null-Pointer Dereference in
windows-updater.nodeduring scheduled runtime update1. System Environment
x86_64(AMD64)OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g026.930.7945.0C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache26.1005.1301.0(OpenAI.CodexPrimaryRuntime.v26-1005-1301-0_x64.msix)2. Problem Summary
Upon launching the application, everything operates normally for approximately 40–50 seconds. Then, the application silently terminates and crashes to desktop without any visible error prompt or exception dialog.
Inspection of Crashpad minidumps (
.dmp) and local execution logs confirms that the crash is triggered by an unhandled Null-Pointer Dereference (0xC0000005) inside the native Node-API addonwindows-updater.nodewhen executing scheduled updates for the Primary Runtime framework.3. Detailed Crash Analysis & Root Cause
A. Minidump Details (
Crashpad\reports\*.dmp)"ptype": "browser")0xC0000005(STATUS_ACCESS_VIOLATION)0x0000000000000000(Null-pointer dereference).0x7fff490da779windows-updater.node0x7fff490c00000x1d2000(~1.82 MB)windows-updater.node + 0x1a779C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0\app\resources\native\windows-updater.nodeB. Source Code & Function Identification
Strings and symbols extracted from the faulting binary link back to the native updater implementation:
D:\codex-apps-workspace\codex\codex-apps\electron\native\windows-updater-addon\windows-updater.ccD:\codex-apps-workspace\codex\codex-apps\electron\native\windows-updater-addon\primary-runtime-lifetime.ccSendStoreInstallProgress/StoreInstallProgressPayloadNapi::ThreadSafeFunction::NonBlockingCallstagePackage/installPrimaryRuntimePackageC. Root Cause Mechanism
trigger=scheduled_update.OpenAI.CodexPrimaryRuntime.v26-1005-1301-0_x64.msixfromhttps://persistent.oaistatic.com/into a temporary directory underLocalCache.windows-updater.nodeto stage and install the MSIX framework into Windows.Napi::ThreadSafeFunction(SendStoreInstallProgress->NonBlockingCall), the native code accesses a null pointer context (0x0), causing an unhandled fatal access violation that instantly terminates the entire application.4. Critical Secondary Impact: Severe Disk Leakage
Because the native updater crashes every single time prior to completing registration, the app leaves the newly downloaded 528MB file orphaned in
LocalCache\codex-windows-runtime-framework-<random>\.Upon restarting, the application assumes the update was never fetched and repeats the download cycle:
5. Steps to Reproduce
26.930.7945.0on Windows 11.%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\.As soon as the download finishes (~48s), the process crashes silently with code 0xC0000005.
Manually registering the already-downloaded framework MSIX via native Windows PowerShell successfully bypasses the bug in windows-updater.node:
powershell
1. Manually install the downloaded Primary Runtime package
Add-AppxPackage -Path "$env:LOCALAPPDATA\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache<framework-temp-dir>\OpenAI.CodexPrimaryRuntime.v26-1005-1301-0.msix"
2. Reclaim orphaned disk space caused by repeated failed attempts
Get-ChildItem -Path "$env:LOCALAPPDATA\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache" -Filter "codex-windows-runtime-framework*" | Remove-Item -Recurse -Force
Once installed, Get-AppxPackage OpenAI shows OpenAI.CodexPrimaryRuntime.v26-1005-1301-0 is present. The desktop client now boots smoothly without attempting to re-invoke the broken updater addon, completely resolving the crash.
In electron\native\windows-updater-addon\windows-updater.cc and primary-runtime-lifetime.cc:
Ensure ThreadSafeFunction and callback references are validated (nullptr checks) before invoking NonBlockingCall.
Add structured exception handling / C++ exception boundaries around WinRT package staging and callbacks to prevent native crashes from terminating the Electron host process.
Implement cleanup logic for incomplete/failed staging folders in LocalCache to avoid multi-gigabyte storage leaks.
YouRoPlay commentedon Oct 6, 2026
Re-tested on the new production Windows build 26.930.61225 / MSIX 26.930.7945.0.
The issue is still reproducible: Codex Desktop closes shortly after launch exactly as before.
Updating over the previous installation did not change the behavior.
Karatanov commentedon Oct 13, 2026
Potential recovery for users seeing startup
0x80000003inchrome.dll(one user-confirmed case, 2026-10-13): An affected Windows 11 Enterprise build 22631 user with OpenAI.Codex26.1007.2314.0reports that complete removal and fresh reinstall of the Codex Windows app fixed the crash. In their case, previous Repair/Reset and reinstall efforts, clean~/.codex/Chromium profiles, verified Primary Runtime installation, and a--disable-gputest had failed. The recommended successful-attempt workflow was to remove the app viaGet-AppxPackage -Name OpenAI.Codex | Remove-AppxPackage -ErrorAction Stop, restart Windows, then reinstall from the official Microsoft Store; the user confirmed the full-reinstall outcome rather than each individual step separately. Latest analyzed dump before recovery:0x80000003,chrome.dll +0xB2C2A34. Not a guaranteed fix or established root cause. Further details: #52684.YouRoPlay commentedon Oct 13, 2026
Update — October 13, 2026: Full reinstall did not resolve the crash
I tested a complete removal and fresh installation of Codex Desktop on Windows 10.
Steps performed:
.codexdirectory and session history.OpenAI.CodexusingRemove-AppxPackage.Result: Codex Desktop 26.1007.2314.0 still crashes approximately 13 seconds after launch.
New Crashpad dump analyzed with WinDbg:
The failure hash and failure bucket are identical to my previous crash on the older version, despite the updated Chromium build.
Therefore, the complete reinstall workaround reported by another user does not resolve the issue on my system.
Please investigate this persistent Windows startup crash. I can provide further diagnostics if needed.
soren1sususu-design commentedon Oct 14, 2026
New reproducible lead: Sogou IME interaction (two affected Windows PCs)
I would like to add a reproducible input-method compatibility finding to this
chrome.dll/0x80000003startup-crash issue. This is not yet a confirmed root cause; it is an independently observed workaround and a useful variable for maintainers to investigate.Affected machine A (verified with WinDbg)
OpenAI.Codex 26.1007.2314.0(Get-AppxPackagestatus:Ok)ChatGPT.exechrome.dll 155.0.8059.40Crashpad dump analyzed in WinDbg (
!analyze -v; sensitive paths omitted):The loaded-module list includes
SogouTSF.imeandSogouPY.ime. Their presence alone does not prove they caused the exception; the exception was recorded inchrome.dll.Reproduction / workaround on two separate PCs
Two users with previously functioning Windows desktop installations started seeing the same user-visible startup-crash behavior within the last 2–3 days.
On both PCs:
Important limitation: These steps change both the selected IME and Sogou background-process state, so we have not isolated which component or callback is responsible. The WinDbg crash signature above was verified on machine A only; we have not established machine B's exception code or exact app/IME versions. This does not imply that all crashes reported in this thread share the same cause.
Request to maintainers
Could the Windows desktop / Chromium integration team test the current app against Sogou Pinyin IME (TSF components) and investigate whether text-input initialization, IME callbacks, or third-party hooks can trigger this browser-process breakpoint? A defensive fix would be valuable even if a third-party IME initiates the problematic interaction.
A full Crashpad dump was retained locally but not posted publicly, because minidumps can contain private process-memory data. Sanitized logs or a dump via an approved private channel could be supplied if needed.
Temporary workaround for similarly affected users: switch to Microsoft Pinyin and fully exit Sogou-related background processes before relaunching the desktop app.
jonyadamit commentedon Oct 20, 2026
Additional reproduction on Codex 26.1013.4894.0 — identical failure hash, unexpected recovery
I experienced the same Windows Desktop startup crash, with the exact failure hash reported in this issue.
This also appears related to #54625, which reports the same Chromium version and a similar crash on Codex 26.1013.
Environment
26.1013.4894.026300.9711, x64155.0.8059.800.163.0-alpha.10.2Crash behavior
Starting October 19, 2026, the application consistently terminated approximately 20–30 seconds after launch, even while idle on the New Chat screen.
The crash reproduced without opening a conversation and even while the remote Linux host normally used by Codex was powered off.
Windows Event Viewer did not provide a useful corresponding crash event.
WinDbg analysis
Two Crashpad dumps were produced during the same failed launch.
Renderer process:
0xC0000005(invalid pointer read)chrome.dll0xFFFFFFFFFFFFFFFF{5cd13162-58f6-4190-dced-e6b658b0f99b}Browser/main process, approximately one second later:
0x80000003(BREAKPOINT)chrome.dllBREAKPOINT_80000003_chrome.dll!Unknown{be0d4058-7058-b7fb-5291-62cb1f25d882}The browser-process failure hash is identical to the one documented in this issue.
Troubleshooting — none of these resolved the crash
--disable-gpu.NODE_OPTIONS.CODEX_HOME.Even with a fresh Codex home, Stable crashed before or shortly after authentication.
Unexpected recovery
26.727.4816.0alongside Stable.CODEX_HOME. Beta worked normally.26.1013.4894.0again. It no longer crashed..codex-global-state.json, recovering the previously missing projects and remote connections.No Stable downgrade or Windows restart was performed.
The Stable version remained
26.1013.4894.0before and after recovery.I cannot establish whether installing/uninstalling Beta caused the recovery, or whether another state change was responsible. The recovery should not be interpreted as a verified workaround.
Nevertheless, the combination of an exact matching failure hash, successful older Beta launch, failure with fresh application profiles, and recovery without changing Stable's version may help narrow the investigation.
I have retained the Crashpad dumps, sidecar metadata, and WinDbg output and can provide sanitized diagnostics if useful.
note: #54625 matches my software generation more closely: Codex 26.1013, Chromium 155.0.8059.80, and the startup breakpoint exception. However, it doesn't establish the identical failure
JiadyHu commentedon Oct 24, 2026
I am experiencing the same startup crash on Windows 10.
Environment
Symptoms
%LOCALAPPDATA%\OpenAI\Codexruntime directory and rebooting did not resolve the issue.CodexSandboxService.OpenAI.Codexdid not resolve the issue.Diagnostics
ProcDump observed:
0x80000003.BREAKPOINT0x406D1388exceptions0x000006BA0x00000001WinDbg analysis of a process-termination dump reported:
PROCESS_NAME: ChatGPT.exeEXCEPTION_CODE: 0x80000003FAILURE_BUCKET_ID: BREAKPOINT_80000003_win32u.dll!NtUserMsgWaitForMultipleObjectsExIMAGE_NAME: win32u.dllchrome!frames.The dump was captured at process termination with ProcDump's
-toption, so I understand that this may not identify the original fatal exception location.Could you advise whether this matches the known Windows startup crash and whether there is a supported workaround or a fixed build available?
I have the sanitized WinDbg output available if further diagnostics are needed. I have not attached the full memory dump because it may contain private data.