Skip to content

Codex Desktop (Windows): browser process aborts with V8 heap OOM; crash rate scales with connector catalog size #44394

Open

Description

@ShareSmile-MIS

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         : 44820

The 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 memory

CALL_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):

Date | Crashes | codex_apps tools | Catalog size -- | -- | -- | -- 09-07 | 9 | 398 (473 total) | 2042 KB 09-08 | 5 | 398 | 2042 KB 09-09 | 4 | 284 (332 total) | 1310 KB

"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:

  1. The Apps catalog should not accumulate in the JS heap across repeated app/list calls.
  2. app/list should not fire ~130 times per re-initialisation, and MCP child restarts should not trigger a full catalog re-broadcast storm.
  3. 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

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

  1. added
    app
    on Sep 10, 2026
  2. added
    bug
    windows-os
    mcp
    on Sep 10, 2026
  3. a2790058034-cmd commented on Oct 3, 2026

    @a2790058034-cmd

    Additional Windows reproduction:

    • OpenAI.Codex MSIX 26.930.3930.0 x64
    • ChatGPT.exe / Chromium 154.0.8037.98
    • Windows 11 x64, OS build 10.0.26200

    The desktop app launches and reaches ready-to-show, but the MAIN/browser process continuously grows in memory until it exits.

    Observed before crash:

    • MAIN working set ~1108 MB
    • MAIN private memory ~1074 MB
    • renderer ~155 MB private
    • GPU process ~272 MB private

    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:

    • WebContents.addListener
    • WebContents.once
    • app.asar/.vite/build/main-*.js:1277:143611
    • app.asar/.vite/build/main-*.js:1303:18320

    Troubleshooting attempted without resolving:

    • Repair / Reset
    • uninstall / reinstall
    • Stable and Beta builds
    • fresh local Codex state
    • isolated local Codex/OpenAI state directories
    • different account
    • VPN disabled
    • GPU-disabled launch
    • WebView / Store / AppX troubleshooting
    • DISM RestoreHealth + clean SFC afterward
    • remote-debugging workaround found app://-/index.html and successfully sent Page.reload(ignoreCache=true), but memory growth resumed and the app still crashed

    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.

  4. a2790058034-cmd commented on Oct 3, 2026

    @a2790058034-cmd

    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:

    • OpenAI.Codex MSIX: 26.930.3930.0 x64
    • ChatGPT.exe / Chromium: 154.0.8037.98
    • Windows 11 x64, OS build 10.0.26200

    The 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:

    • MAIN process working set: ~1108 MB
    • MAIN process private memory: ~1074 MB
    • renderer: ~155 MB private
    • GPU process: ~272 MB private

    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 memory

    Immediately 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:

    at WebContents.addListener (node:events:608:10)
    at WebContents.once (node:events:652:8)
    at Hqe.createAppHost (...app.asar\.vite\build\main-*.js:1277:143611)
    at IpcMainImpl.<anonymous> (...app.asar\.vite\build\main-*.js:1303:18320)
    

    Troubleshooting already completed without resolving the issue:

    • Windows app Repair / Reset
    • uninstall / reinstall
    • Stable and Beta desktop builds
    • fresh local Codex state
    • isolated/renamed %LOCALAPPDATA%\Codex
    • isolated/renamed %APPDATA%\Codex
    • isolated/renamed %LOCALAPPDATA%\OpenAI\Codex
    • VPN disabled
    • GPU-disabled launch
    • WebView / Store / AppX troubleshooting
    • DISM detected repairable component-store corruption; RestoreHealth completed successfully
    • subsequent sfc /scannow reports no integrity violations
    • remote-debugging workaround successfully found app://-/index.html and sent Page.reload(ignoreCache=true), but the app still resumed memory growth and crashed

    An “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.

  5. a2790058034-cmd commented on Oct 6, 2026

    @a2790058034-cmd

    Update: I was able to recover the Windows desktop app by fully isolating the user-level .codex directory and then signing in again.

    Successful recovery sequence:

    1. Closed ChatGPT/Codex processes.
    2. Stopped the Codex sandbox/background service because it was still holding files under %USERPROFILE%\.codex.
    3. Renamed:
      C:\Users\<user>\.codex
      to a backup directory (for example .codex.backup-<timestamp>).
    4. Launched the desktop app normally.
    5. The previous runaway MAIN/browser memory growth no longer occurred.
    6. The app initially showed “Unable to load organization settings”.
    7. Chose “Sign out”, signed in again, and the app then opened successfully and remained usable.

    This is notably different from my earlier tests, where I had already isolated:

    • %LOCALAPPDATA%\Codex
    • %APPDATA%\Codex
    • %LOCALAPPDATA%\OpenAI\Codex

    Those directories did not fix the crash. The missing state was the separate user-home directory:

    %USERPROFILE%\.codex

    The 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 .codex is 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.exe was still using a file in .codex. After stopping the Codex service/process, the rename succeeded.

    So, for this reproduction at least, a full .codex reset plus re-login is an effective workaround. The old directory has been preserved for further isolation if maintainers want specific files or databases tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugmcpperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions