Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.903.61454
What subscription do you have?
Business
What platform is your computer?
No response
What issue are you seeing?
App: Codex Desktop 26.901.51231 (MSIX from Microsoft Store, OpenAI.Codex_<version>_x64__<publisher>)
Chromium/Electron: 152.0.7977.83
OS: Windows 11 10.0.26200 x64, 20 CPUs, 32 GB RAM
codex CLI: 0.144.4 (shares ~/.codex)
Plan: ChatGPT paid
Summary
The Codex Desktop browser (main) process repeatedly aborts with a V8 JavaScript heap out-of-memory error. This is not system memory exhaustion — the process working set at the time of the abort was roughly 1 GB on a 32 GB machine. The failure is against V8's own per-isolate heap ceiling inside the app's Node bindings layer.
Crucially, crash frequency scales with the size of the connected Apps/connector tool catalog. Removing connectors (and nothing else) cut the crash rate by more than half. That correlation is the strongest signal in this report and should point at the leak.
Crash signature
From the Crashpad minidump (ptype: browser):
Exception code : 0x80000003 (STATUS_BREAKPOINT — deliberate abort)
Faulting module: chrome.dll + 0x3A8078D
Thread : 44820The fatal log line captured in the same dump, on the same thread:
[41664:44820:0909/112341.259:ERROR:owl\common\node_bindings.cc:109]
OOM error in V8: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memoryCALL_AND_RETRY_LAST means V8 performed a final full GC and still could not satisfy the
allocation, so this is genuine old-space exhaustion rather than fragmentation or a
transient spike.
The process command line contains no --js-flags and no --max-old-space-size, so the
default V8 heap limit applies. Because the abort is a breakpoint handled by Crashpad,
Windows logs no Application Error event — from the user's point of view the app simply
vanishes with no dialog and no error.
Crash rate vs. catalog size
Crashpad reports collected over three days on one machine, correlated with the
codex_apps tool catalog size (measured from the app's own persisted
mcp-extension-sidebar-catalog state):
"After" reflects two changes: removing the Microsoft 365 connectors, and moving ten
oversized sessions/*.jsonl rollout files (1.44 GB, largest 288 MB) out of ~/.codex.
Crashes became less frequent but did not stop.
Expected behaviour
The browser process should not exhaust the V8 heap as a function of how many connectors an account has enabled. Specifically:
- The Apps catalog should not accumulate in the JS heap across repeated
app/listcalls. app/listshould not fire ~130 times per re-initialisation, and MCP child restarts should not trigger a full catalog re-broadcast storm.- A V8 OOM in the browser process should surface to the user rather than vanishing silently.
Reproduction
Not reliably reproducible on demand, but strongly correlated with:
- a large number of enabled ChatGPT connectors (300+ tools in
codex_apps) - long-running sessions with several open threads
- MCP servers configured (4 here: 2 stdio, 2 streamable HTTP)
Crash rate on this machine is currently ~4/day at 332 tools, and was ~9/day at 473 tools.
Related
- Bug: Codex startup blocks on MCP/App connector initialization, causing very slow launches #24397 — startup blocks on eager MCP/App connector initialisation
- Codex Desktop becomes unusable on long active threads due to app-server/renderer memory and TRACE log churn #21134 — renderer/app-server memory growth and TRACE log churn on long threads
- Codex Renderer is consuming excessive memory #38176 — renderer excessive memory
- Codex App 26.429.61741 causes persistent high CPU usage in renderer and severe UI lag on macOS #21326 — renderer high CPU, re-render/reconciliation loops
- macOS Codex Desktop runaway task worker and app-server consume 12+ GB RAM with sustained high CPU #36971, Codex App loads after 5mins use 11,27Gb memory usage and 23% of CPU #19540, App exhibits high memory usage #14666, App UI gets extremely slow and laggy during long sessions #11984, Codex Mac app high memory usage regression on macOS after update (26.422.62136) #20573 — related memory reports
None of these identify the V8 heap OOM in owl/common/node_bindings.cc or the correlation
with connector catalog size.
What steps can reproduce the bug?
Feedback ID: no-active-thread-01a08951-e615-7561-9c95-449926a9195d
What is the expected behavior?
No response
Additional information
No response
Activity
a2790058034-cmd commentedon Oct 3, 2026
Additional Windows reproduction:
The desktop app launches and reaches ready-to-show, but the MAIN/browser process continuously grows in memory until it exits.
Observed before crash:
The process exits with 0x80000003 (STATUS_BREAKPOINT).
Application log:
OOM error in V8: Zone Allocation failed - process out of memory
Immediately before OOM:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added to [WebContents].
With --trace-warnings, the stack points into the packaged Electron main process around:
Troubleshooting attempted without resolving:
An “Unable to load organization settings” dialog also appeared during some launches, but changing account/network conditions did not stop the memory growth.
The issue first became noticeable after the desktop app became extremely unresponsive while handling a large uploaded file, though I cannot establish that as the root cause.
This looks very close to #44394, except the failure here is highly repeatable at startup and survives a fully fresh local app state.
a2790058034-cmd commentedon Oct 3, 2026
Additional reproduction on Windows 11 / OpenAI.Codex 26.930.3930.0.
I can reproduce what appears to be the same browser/main-process V8 heap OOM on:
26.930.3930.0x64154.0.8037.9810.0.26200The desktop app launches and the main window reaches
ready-to-show, but the MAIN/browser process continuously grows in memory until it exits.Observed process sample before the crash:
So the dominant growth is in the browser/main process, not the renderer.
The process eventually exits with:
0x80000003 (STATUS_BREAKPOINT)and the application log shows:
OOM error in V8: Zone Allocation failed - process out of memoryImmediately before the OOM, Node/Electron reports:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroyed listeners added to [WebContents]. MaxListeners is 10.With
--trace-warnings, the warning stack points into the packaged Electron main-process code:Troubleshooting already completed without resolving the issue:
%LOCALAPPDATA%\Codex%APPDATA%\Codex%LOCALAPPDATA%\OpenAI\CodexRestoreHealthcompleted successfullysfc /scannowreports no integrity violationsapp://-/index.htmland sentPage.reload(ignoreCache=true), but the app still resumed memory growth and crashedAn “Unable to load organization settings” dialog was also observed during some launches, but disabling VPN did not stop the memory growth.
The issue first became noticeable after the desktop app became extremely unresponsive while handling a large uploaded file, although I cannot establish that upload as the root cause.
This looks very close to #44394, except in this reproduction the failure is highly repeatable at startup and survives a fully fresh local app state.
I can provide the full trace-warnings / OOM log if useful.
a2790058034-cmd commentedon Oct 6, 2026
Update: I was able to recover the Windows desktop app by fully isolating the user-level
.codexdirectory and then signing in again.Successful recovery sequence:
%USERPROFILE%\.codex.C:\Users\<user>\.codexto a backup directory (for example
.codex.backup-<timestamp>).This is notably different from my earlier tests, where I had already isolated:
%LOCALAPPDATA%\Codex%APPDATA%\Codex%LOCALAPPDATA%\OpenAI\CodexThose directories did not fix the crash. The missing state was the separate user-home directory:
%USERPROFILE%\.codexThe failure originally started after the desktop app became extremely unresponsive while handling a large uploaded file. I still cannot prove which file/database inside the old
.codexis responsible, but the result now strongly suggests that some persisted state in that directory was involved.One extra detail: the first rename attempt failed because
codex-windows-sandbox-service.exewas still using a file in.codex. After stopping the Codex service/process, the rename succeeded.So, for this reproduction at least, a full
.codexreset plus re-login is an effective workaround. The old directory has been preserved for further isolation if maintainers want specific files or databases tested.