Skip to content

Windows desktop app crashes with access violation in chrome.dll during embedded browser cleanup #50799

Open

Description

@radialmonster

What version of the Codex App are you using?

Microsoft Store package: OpenAI.Codex 26.930.2377.0.
Bundled chrome.dll: 154.0.8037.93.

What subscription do you have?

Not specified in this report.

What platform is your computer?

Windows 11 Pro, x64, build 26300.

What issue are you seeing?

The Windows desktop app has closed unexpectedly several times. ProcDump captured one native crash on October 4, 2026, at 01:16:44 EDT / 05:16:44 UTC.

  • Exception: 0xC0000005 — invalid pointer read
  • Fault location: chrome.dll+0x507dec8
  • Fault instruction: cmp qword ptr [rax+20h],rdx
  • RAX: 0xEFEFEFEFEFEFEFEF
  • Process exited at 05:16:49 UTC with exit code 0xC0000005
  • Native stack includes win32u!NtUserDestroyWindow and user32!_fnNCDESTROY

Immediately before the fault, app logs recorded embedded browser sidebar webview disposal, guest teardown, and closure of the final embedded browser tab. This is a suspected correlation, not a confirmed root cause.

What steps can reproduce the bug?

The closures are intermittent; reliable reproduction steps are not yet established. In the captured occurrence, the app had been running for approximately 80 minutes and embedded browser cleanup occurred immediately before the crash.

What is the expected behavior?

The app should remain running when an embedded browser tab or webview is closed.

Additional information

I retained a full first-chance dump, approximately 1.3 GB, plus a termination dump and app logs locally. Please provide a private upload method, since the dumps may contain sensitive process memory.

Matching symbols were unavailable from Microsoft, Electron, and Chromium symbol servers. Please symbolize the fault using:

  • PDB: chrome.dll.pdb
  • GUID: 58DBB2D9-C0BC-2E10-4C4C-44205044422E
  • Age: 1

Please investigate the browser/window cleanup path for this build.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 4, 2026
  2. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. radialmonster commented on Oct 4, 2026

    @radialmonster
    Author

    I reviewed #50519 and its comments. A shared root cause is possible, but the published evidence does not establish this issue as a duplicate, so I am keeping it open pending a matching crash signature or maintainer confirmation.

    Both reports include Windows x64 build 26300 and a main-process 0xC0000005 read access violation. That exception code alone is not enough to identify the same bug.

    Our captured crash has a specific signature:

    • MSIX 26.930.2377.0, chrome.dll version 154.0.8037.93
    • Fault at chrome.dll+0x507dec8
    • Instruction cmp qword ptr [rax+20h],rdx, with RAX=0xEFEFEFEFEFEFEFEF
    • Native stack includes NtUserDestroyWindow / _fnNCDESTROY
    • Embedded browser sidebar webview disposal and guest teardown immediately precede the fault
    • Main process terminates with exit code 0xC0000005

    #50519 does not publish the earlier main-process fault's module identity, offset, register values, or stack, so those cannot currently be compared. Its later update explicitly describes a separate renderer 0x80000003 / INT3 crash on MSIX 26.930.3930.0, while the main process remained alive. That later event differs from our captured main-process termination.

    The UI version reported in #50519 is also a different version field from our MSIX version, so I am not treating those numbers as proof of different builds.

    Could maintainers compare #50519's earlier main-process access-violation dump with this signature? We still have the first-chance full dump locally and can provide it through a private upload channel.

  4. JesstLe commented on Oct 4, 2026

    @JesstLe

    Additional diagnostic evidence from another Windows installation: repeated desktop exits with Crashpad ptype=browser metadata immediately after in-app Browser Use tab cleanup. This may be related, but the same native crash signature cannot be confirmed without a dump.

    Environment verified on 2026-10-04:

    • Installed Microsoft Store/MSIX package: OpenAI.Codex 26.930.3930.0, x64 (package version, not About-dialog version).
    • Bundled chrome.dll file/product version: 154.0.8037.98.
    • Windows 11 Pro for Workstations, 10.0.26200, x64.
    • Local app-server reports 0.160.0.

    Eight retained Crashpad sidecars contain:

    {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}

    Sidecar file modification timestamps (UTC):

    2026-10-02 12:13:12
    2026-10-03 06:15:14
    2026-10-03 06:55:05
    2026-10-03 07:46:41
    2026-10-03 08:38:15
    2026-10-03 19:17:40
    2026-10-03 20:25:42
    2026-10-04 06:34:12
    

    These are artifact timestamps, not precisely measured native exception times. The package version was verified at diagnosis time, not for every older occurrence.

    The latest three desktop logs end immediately after Browser Use tab closure and PiP metadata:

    Sidecar timestamp (UTC) Final log timestamp (UTC) Final activity
    Oct 3 19:17:40 19:17:39.997 Tab closed; PiP metadata backend=iab browserID=2 tabID=undefined
    Oct 3 20:25:42 20:25:42.007 Tab closed; same PiP fields
    Oct 4 06:34:12 06:34:11.869 Tab closed; same PiP fields

    Sanitized October 4 sequence:

    06:34:11.855Z renderer disposed browser sidebar webview
    06:34:11.860Z browser sidebar guest torn down
    06:34:11.863Z renderer removed browser sidebar webview; tabType=closed
    06:34:11.864Z closed browser sidebar page
    06:34:11.864Z tab lifecycle action=closed; appBrowserTabCount=2; appBrowserUseTabCount=0
    06:34:11.869Z Received Browser Use PiP metadata; backend=iab; browserID=2; tabID=undefined
    

    Earlier inspected logs ending at October 3 06:55:05.109, 07:46:40.693, and 08:38:15.125 UTC also end with Browser Use tab closure. A deterministic minimal reproduction has not been established.

    No native minidump remained in the inspected Crashpad reports directory, so no exception code, fault offset, or stack trace is available. A seven-day query of Windows Application events 1000/1001/1002 found no matching application crash event; it did find a separate Oct 2 RADAR_PRE_LEAK_64 warning for ChatGPT.exe, which does not establish memory exhaustion or causation. At diagnosis time approximately 16 GB of 32 GB RAM was free; this was not measured at crash time.

    Please investigate Browser Use webview/guest cleanup and PiP lifecycle handling, and advise how to capture or privately upload native diagnostics. Closing a browser tab should leave the desktop app and conversation running. No raw session logs, private identifiers, or memory dumps are attached.

  5. radialmonster commented on Oct 5, 2026

    @radialmonster
    Author

    Additional main-process crash captured on October 5, 2026. The desktop app closed again after being reopened.

    Capture timeline

    Times below are UTC (local timezone EDT, UTC-4):

    • 04:40:08 — first-chance C0000005.ACCESS_VIOLATION; full dump captured.
    • 04:40:19 — ProcDump reports an unhandled C0000005; second dump captured.
    • 04:40:24 — another unhandled access violation reported; third dump captured.
    • ProcDump detached after reaching its three-dump limit. The watcher reattached to the same main process.
    • 04:41:29 — main process exited with code 0xFFFF7001; a termination dump was captured.

    These records belong to the same main process and should not be counted as three independent app crashes.

    First-chance dump findings

    • Faulting module: bundled chrome.dll, version 154.0.8037.93, as in the original report.
    • Exception: 0xC0000005, write to address 0x0.
    • Fault location: chrome.dll+0x6608aa0.
    • Fault instruction: mov dword ptr [0],356h.
    • WinDbg bucket: INVALID_POINTER_WRITE_c0000005_chrome.dll!Unknown.
    • Matching symbols remain unavailable, so the exact source function/root cause is unknown.

    The original October 4 capture was an invalid pointer read at chrome.dll+0x507dec8. This new capture has a different access type and fault offset. A shared underlying cause remains possible, but this is not a confirmed repeat of the exact earlier crash signature. The earlier browser-cleanup correlation has not been verified for this new occurrence.

    Four new full dumps are retained locally, including the useful first-chance file ChatGPT.exe_261005_004008.dmp (approximately 1.1 GB). Please provide a private upload method if engineering needs these dumps to compare the two signatures.

  6. jono-cell commented on Oct 6, 2026

    @jono-cell

    Additional occurrence on October 6, 2026: the Windows desktop app exited immediately after in-app Browser Use tab/webview cleanup. Crashpad identifies a browser/main-process crash. This may be related to this issue, but there is no native dump to compare exception codes or fault offsets.

    Environment

    • Windows 11 Pro 25H2, x64, build 26200.9168.
    • Affected Microsoft Store/MSIX package: OpenAI.Codex 26.930.3930.0, verified from paths in the affected desktop log (package version, not About-dialog version).
    • The incident occurred at approximately 13:20:32 NZDT / 00:20:32 UTC.

    Evidence

    A retained Crashpad sidecar contains exactly:

    {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}

    Its last-write timestamp is 2026-10-06 00:20:32.984 UTC. This is an artifact timestamp, not a precisely measured exception time.

    Sanitized final desktop log sequence, all UTC:

    00:20:31.952  unregistered debugger listener; reason=target-close
    00:20:31.954  renderer synced browser use webview state; isBrowserUseActive=false
    00:20:31.955  renderer disposed browser sidebar webview
    00:20:31.960  browser sidebar guest torn down
    00:20:31.964  renderer removed browser sidebar webview; tabType=closed
    00:20:31.965  closed browser sidebar page
    00:20:31.965  browser tab lifecycle action=closed; appBrowserTabCount=13; appBrowserUseTabCount=1
    00:20:32.009  Received Browser Use PiP metadata; backend=iab; browserID=2; tabID=1
    

    The log ends at the final entry above. The next desktop launch is recorded at 00:20:41.315 UTC.

    Unlike some occurrences already described here, this was not the final in-app browser tab: 13 app browser tabs and one Browser Use tab were still reported after closure, and the final PiP metadata used tabID=1, not undefined.

    Earlier at 00:19:55.587 UTC, repeated Browser Use executeCdp:DOM.getFrameOwner requests failed with Frame with the given id was not found. This is preceding context; neither these errors nor the cleanup sequence establishes the root cause.

    No native minidump remains in the inspected Crashpad reports directory, and targeted Windows Application event queries found no matching recent app-crash record. The native exception code, faulting module/offset and stack are therefore unavailable.

    Separate update restart

    A later restart at approximately 00:26:56 UTC followed update_resume_state_saved threadCount=4 at 00:26:48.821 UTC, with the installed package subsequently verified as 26.930.4958.0. That later update restart is separate from the Crashpad-backed 00:20 incident.

    Please investigate Electron/Chromium browser guest teardown, debugger listener disposal and Browser Use PiP lifecycle handling. Closing an embedded browser tab should leave the desktop app and active conversations running. Please advise how to retain native crash diagnostics for a future occurrence.

    Only sanitized excerpts are included; no raw session logs, personal filesystem paths, conversation identifiers, credentials or memory dumps are attached.

  7. radialmonster commented on Oct 6, 2026

    @radialmonster
    Author

    Additional main-process crash captured October 6, 2026, again immediately following embedded Browser Use webview/guest cleanup.

    The app was left running unattended and was later found closed. ProcDump provides the crash time; the disappearance was not directly observed.

    Capture timeline

    Times are UTC (local EDT is UTC-4):

    • 18:27:20 / 14:27:20 EDT — first-chance C0000005.ACCESS_VIOLATION; full exception dump captured.
    • 18:27:24 — main process exited with code 0xC0000005; termination dump captured.
    • Both dumps completed. These are two captures of one process failure, not two separate crashes.

    First-chance dump findings

    • Microsoft Store/MSIX package: OpenAI.Codex_26.930.7945.0, x64.
    • Bundled chrome.dll file/product version: 154.0.8037.98.
    • Exception: 0xC0000005, read access violation.
    • Fault location: chrome.dll+0x51e53a8.
    • Instruction: cmp qword ptr [rax+20h],rdx.
    • RAX=0xEFEFEFEFEFEFEFEF.
    • The exception record reports attempted read address 0xFFFFFFFFFFFFFFFF.
    • Native stack again includes user32!_fnNCDESTROY and win32u!NtUserDestroyWindow.

    Only export symbols were available for chrome.dll; printed function names with large offsets do not identify the exact source function.

    This shares the October 4 capture's instruction, RAX pattern, and window-destruction stack context. The module version and fault offset differ, so it is not a confirmed identical crash signature. The October 5 write-access-violation capture remains a separate signature.

    Browser cleanup immediately preceding the fault

    Sanitized entries from the saved desktop log, all UTC:

    18:27:19.864  renderer synced browser use webview state; isBrowserUseActive=false
    18:27:19.864  renderer disposed browser sidebar webview
    18:27:19.871  browser sidebar guest torn down
    18:27:19.878  renderer removed browser sidebar webview; tabType=closed
    18:27:19.902  Received Browser Use PiP metadata; backend=iab; browserID=2; tabID=undefined
    

    The log ends at the final PiP entry, just before ProcDump's access-violation capture. This corroborates the browser-cleanup timing reported in this issue, but does not establish root cause. Windhawk is also loaded in the dump; its presence alone does not establish responsibility, and it has not been disabled.

    Troubleshooting change after the crash

    Later that evening, I configured the documented Windows system requirements.toml setting:

    [features]
    in_app_browser = false

    The bundled codex.exe features list reports in_app_browser as false. This disables the built-in browser pane; browser_use and external-browser features were not disabled. Desktop behavior after the next launch and any effect on recurrence are not yet verified. This is a troubleshooting experiment, not a confirmed fix.

    Two full dumps, each approximately 1 GB, remain local: ChatGPT.exe_261006_142720.dmp and ChatGPT.exe_261006_142724.dmp. The capture watcher remains running and will reattach when the app reopens. Please provide a private upload method if engineering needs the dumps to symbolize and compare the window/guest teardown path. No raw session logs or memory dumps are attached.

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

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions