Skip to content

[Windows] Codex desktop crashes in windows-updater.node with 0xC0000005; persists after reinstall, repair, and fresh sign-in #51340

Open

Description

@JIKANGZHONG

What happened?

The Codex desktop app repeatedly crashes shortly after startup on my Windows machine.

Multiple locally inspected Crashpad dumps point to the same module and offset:

  • Module: windows-updater.node
  • Module-relative offset: 0x1A779
  • Exception code: 0xC0000005
  • Exception parameters: (0, 0), indicating a read from address 0x0

This is a reproducible issue on my machine. I have not confirmed whether it is a known issue.

Environment

  • Codex desktop package: OpenAI.Codex
  • Version: 26.930.7945.0
  • Microsoft Store reports no newer update available
  • OS: Windows 11, build 22631
  • Architecture: x64
  • Active CODEX_HOME: D:\Codex
  • App installation: C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0
  • Package status reported by Windows: Ok

Steps to reproduce

  1. Launch the Codex desktop app.
  2. Wait approximately one minute.
  3. The app exits unexpectedly and generates a Crashpad dump.

Expected behavior

The app should remain running. A runtime installation or update failure should produce a recoverable error instead of terminating the app.

Troubleshooting attempted

  1. Uninstalled and reinstalled the app.
  2. Used Windows Settings → Apps → Advanced options → Repair.
  3. Restarted Windows.
  4. Set CODEX_SPARKLE_ENABLED=false.
    • Startup logs confirmed enableUpdater=false.
    • The app still crashed in the same native module at the same offset.
  5. Backed up the global state file and set
    electron-windows-primary-runtime-frameworks-enabled=false.
    • Startup logs initially showed frameworkEnabled=false.
    • Approximately six seconds later, logs showed frameworkEnabled=true.
    • The setting was subsequently found set to true again.
    • A scheduled primary runtime installation started.
    • The app crashed again in windows-updater.node + 0x1A779.
  6. Following support guidance, temporarily renamed auth.json in the active
    CODEX_HOME, then restarted the app and signed in again.
    • Result: the app still crashed.
    • A fresh dump from this final sign-in test has not yet been analyzed.

Relevant log sequence

From the inspected launch on 2026-10-06 (timestamps below are UTC):

10:44:55.043 — Launching app: enableUpdater=false
10:44:56.906 — primary_runtime_selection:
frameworkEnabled=false
reason=gate-disabled
runtimeSource=archive
10:45:01.558 — primary_runtime_selection:
frameworkEnabled=true
reason=awaiting-framework
runtimeSource=archive
10:45:01.561 — primary_runtime_bundle_install_started:
trigger=scheduled_update

A Crashpad dump was generated at approximately 10:45:46 UTC
(18:45:46 in Asia/Shanghai).

The runtime installation precedes the crash, but the underlying cause has
not been established.

Diagnostic artifacts

Inspected dump:
0bfcc1c9-3fa7-4be6-8251-ca9f84799103.dmp

Crashpad directory:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Roaming\Codex\web\Codex\Crashpad\reports\

Associated desktop log:
codex-desktop-814ab257-23b7-40a2-a65f-6c830441fd83-33416-t0-i1-104454-0.log

CLI troubleshooting session ID:
01a110b3-7c0e-7402-8b85-f801470ce26b

The dump is available, but it has not been publicly attached because it may
contain sensitive memory data. Please provide a private, secure upload
channel if it is needed for investigation.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 6, 2026
  2. jackfeicoder commented on Oct 6, 2026

    @jackfeicoder

    I use gemini fix it.

    Title:

    [Bug]: Windows Desktop client crashes (~40s after launch) with 0xC0000005 Null-Pointer Dereference in windows-updater.node during scheduled runtime update

    1. System Environment

    • Operating System: Windows 11 x64 (Build 10.0.22631 / 23H2)
    • Architecture: x86_64 (AMD64)
    • Client Application: OpenAI Codex / ChatGPT Desktop for Windows (Packaged MSIX / Store app)
    • Installed Package Full Name: OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0
    • Installed App Version: 26.930.7945.0
    • Application Install Path: C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0
    • Local Cache Path: %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache
    • Target Runtime Version Attempted: 26.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 addon windows-updater.node when executing scheduled updates for the Primary Runtime framework.

    3. Detailed Crash Analysis & Root Cause

    A. Minidump Details (Crashpad\reports\*.dmp)

    • Process Type: Electron Browser Process ("ptype": "browser")
    • Exception Code: 0xC0000005 (STATUS_ACCESS_VIOLATION)
    • Exception Details: Attempted to read from memory address 0x0000000000000000 (Null-pointer dereference).
    • Faulting Instruction Address: 0x7fff490da779
    • Faulting Module: windows-updater.node
    • Module Base Address: 0x7fff490c0000
    • Module Image Size: 0x1d2000 (~1.82 MB)
    • Faulting Relative Virtual Address (RVA): windows-updater.node + 0x1a779
    • Module Path: C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0\app\resources\native\windows-updater.node

    B. Source Code & Function Identification

    Strings and symbols extracted from the faulting binary link back to the native updater implementation:

    • Source Paths:
      • D:\codex-apps-workspace\codex\codex-apps\electron\native\windows-updater-addon\windows-updater.cc
      • D:\codex-apps-workspace\codex\codex-apps\electron\native\windows-updater-addon\primary-runtime-lifetime.cc
    • Crashing Call / Symbol Context:
      • SendStoreInstallProgress / StoreInstallProgressPayload
      • Napi::ThreadSafeFunction::NonBlockingCall
      • Invoked during stagePackage / installPrimaryRuntimePackage

    C. Root Cause Mechanism

    1. Roughly 40 seconds after launch, the client's internal background updater kicks off: trigger=scheduled_update.
    2. It detects a new runtime version and downloads the ~528MB package OpenAI.CodexPrimaryRuntime.v26-1005-1301-0_x64.msix from https://persistent.oaistatic.com/ into a temporary directory under LocalCache.
    3. Once the download finishes, the Electron main process invokes windows-updater.node to stage and install the MSIX framework into Windows.
    4. While dispatching progress callbacks back to JavaScript via 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:

    • In testing across 17 consecutive launches, 17 orphaned directories were created, consuming 8.36 GB of disk space on the system drive without any self-cleaning mechanism.

    5. Steps to Reproduce

    1. Clean install the desktop app version 26.930.7945.0 on Windows 11.
    2. Launch the application.
    3. Observe the client logs at %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\.
    4. Around ~40s, notice the background download trigger:
      info [install-primary-runtime] primary_runtime_install_started ... release=latest target=win32-x64 trigger=scheduled_update
      info [primary-runtime-installer] Primary runtime download source ... bundleVersion=26.1005.12141
      
      
      
      
      

    As soon as the download finishes (~48s), the process crashes silently with code 0xC0000005.

    1. Workaround (Verified Working)

    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.

    1. Suggested Developer Fix

    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.

  3. ccndb1 commented on Oct 6, 2026

    @ccndb1

    I can independently reproduce exactly the same crash on another machine after updating to 26.930.7945.0.

    My crash signature is identical:

    • Exception: 0xC0000005 (EXCEPTION_ACCESS_VIOLATION)
    • Module: windows-updater.node
    • Module-relative offset: +0x1A779
    • Process type: browser
    • Reproduction: 11/11 launches
    • Previous version 26.930.4958.0 worked normally on the same machine.

    I investigated the Primary Runtime path further and found an additional detail that may help narrow down the failure point.

    On every launch:

    1. Codex downloads the complete 528,081,485-byte
      OpenAI.CodexPrimaryRuntime.v26-1005-1301-0_x64.msix.

    2. Microsoft-Windows-AppxPackaging/Operational logs Event ID 170:
      "The streaming reader was created successfully for app package ..."

    3. This event occurs in the same second as the native crash.

    4. However, searching the relevant Windows deployment logs for the Primary Runtime package returns zero events:

      • AppXDeploymentServer/Operational
      • AppXDeployment/Operational
      • AppXDeployment-Server/Operational
      • AppXDeploymentServer/Restricted
    5. primary_runtime_bundle_install_outcome is never logged.

    This suggests the process crashes after the MSIX is opened/read, but before an AppX deployment request is actually submitted.

    The downloaded MSIX itself appears complete and correctly signed.

    I also independently tested CODEX_SPARKLE_ENABLED=false. The app correctly logged enableUpdater=false, but it still downloaded the Primary Runtime and crashed at the exact same windows-updater.node +0x1A779 offset.

    Repairing and completely reinstalling 26.930.7945.0 did not resolve the issue.

    I have a sanitized diagnostic report with the full timeline and investigation, as well as a 40 MB Crashpad minidump. I am not attaching the dump publicly because it may contain process memory, but I can provide it privately if an OpenAI maintainer requests it.

  4. ccndb1 commented on Oct 6, 2026

    @ccndb1

    I use gemini fix it.

    Title:

    [Bug]: Windows Desktop client crashes (~40s after launch) with 0xC0000005 Null-Pointer Dereference in windows-updater.node during scheduled runtime update

    1. System Environment

    • Operating System: Windows 11 x64 (Build 10.0.22631 / 23H2)
    • Architecture: x86_64 (AMD64)
    • Client Application: OpenAI Codex / ChatGPT Desktop for Windows (Packaged MSIX / Store app)
    • Installed Package Full Name: OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0
    • Installed App Version: 26.930.7945.0
    • Application Install Path: C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0
    • Local Cache Path: %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache
    • Target Runtime Version Attempted: 26.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 addon windows-updater.node when executing scheduled updates for the Primary Runtime framework.

    3. Detailed Crash Analysis & Root Cause

    A. Minidump Details (Crashpad\reports\*.dmp)

    • Process Type: Electron Browser Process ("ptype": "browser")
    • Exception Code: 0xC0000005 (STATUS_ACCESS_VIOLATION)
    • Exception Details: Attempted to read from memory address 0x0000000000000000 (Null-pointer dereference).
    • Faulting Instruction Address: 0x7fff490da779
    • Faulting Module: windows-updater.node
    • Module Base Address: 0x7fff490c0000
    • Module Image Size: 0x1d2000 (~1.82 MB)
    • Faulting Relative Virtual Address (RVA): windows-updater.node + 0x1a779
    • Module Path: C:\Program Files\WindowsApps\OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0\app\resources\native\windows-updater.node

    B. Source Code & Function Identification

    Strings and symbols extracted from the faulting binary link back to the native updater implementation:

    • Source Paths:

      • D:\codex-apps-workspace\codex\codex-apps\electron\native\windows-updater-addon\windows-updater.cc
      • D:\codex-apps-workspace\codex\codex-apps\electron\native\windows-updater-addon\primary-runtime-lifetime.cc
    • Crashing Call / Symbol Context:

      • SendStoreInstallProgress / StoreInstallProgressPayload
      • Napi::ThreadSafeFunction::NonBlockingCall
      • Invoked during stagePackage / installPrimaryRuntimePackage

    C. Root Cause Mechanism

    1. Roughly 40 seconds after launch, the client's internal background updater kicks off: trigger=scheduled_update.
    2. It detects a new runtime version and downloads the ~528MB package OpenAI.CodexPrimaryRuntime.v26-1005-1301-0_x64.msix from https://persistent.oaistatic.com/ into a temporary directory under LocalCache.
    3. Once the download finishes, the Electron main process invokes windows-updater.node to stage and install the MSIX framework into Windows.
    4. While dispatching progress callbacks back to JavaScript via 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:

    • In testing across 17 consecutive launches, 17 orphaned directories were created, consuming 8.36 GB of disk space on the system drive without any self-cleaning mechanism.

    5. Steps to Reproduce

    1. Clean install the desktop app version 26.930.7945.0 on Windows 11.
    2. Launch the application.
    3. Observe the client logs at %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\.
    4. Around ~40s, notice the background download trigger:
      info [install-primary-runtime] primary_runtime_install_started ... release=latest target=win32-x64 trigger=scheduled_update
      info [primary-runtime-installer] Primary runtime download source ... bundleVersion=26.1005.12141
      

    As soon as the download finishes (~48s), the process crashes silently with code 0xC0000005.

    1. Workaround (Verified Working)

    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\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.

    1. Suggested Developer Fix

    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.

    Confirmed — this workaround also fixes the issue on my machine.
    I manually installed the already-downloaded OpenAI.CodexPrimaryRuntime.v26-1005-1301-0.msix using Add-AppxPackage. Installation completed successfully and Get-AppxPackage reports version 26.1005.1301.0, IsFramework=True, Status=Ok.
    After that, Codex 26.930.7945.0 remained running for 171+ seconds, well beyond the previous consistent 41–46 second crash point. No new Crashpad dump was generated and no additional 528 MB runtime download occurred.
    The logs now report:
    windows_primary_runtime_framework_ready
    primary_runtime_bundle_install_outcome outcome=installed
    primary_runtime_selection reason=framework-active runtimeSource=framework

    Previously, every launch remained at reason=awaiting-framework / runtimeSource=archive and then crashed in windows-updater.node +0x1A779.
    windows-updater.node is still loaded in the Electron main process after the workaround, but the application no longer crashes. This further suggests that the failure is specifically in the Primary Runtime installation path rather than simply loading the native module.
    Thanks — your workaround got my Codex installation working again.

  5. Faiz-V commented on Oct 6, 2026

    @Faiz-V

    Independent reproduction on another machine

    Environment

    • Windows 11 23H2, OS build 22631.4890, x64.
    • App package: OpenAI.Codex_26.930.7945.0_x64__2p2nqsd0c76g0.
    • Internal app version: 26.930.61225.

    Exact signature: three dumps from separate application runs matched

    Exception:              0xC0000005
    Access type:            read
    Read address:           0x0
    Faulting module:        windows-updater.node
    Module-relative offset: +0x1A779
    

    Local checks

    • Temporarily setting in_app_updates=false was confirmed effective, but the same windows-updater.node +0x1A779 crash still occurred. Disabling ordinary in-app updates did not resolve it; the trial policy was subsequently removed.
    • Directly launching the currently installed ChatGPT.exe, outside normal packaged/AppX activation, produced a process with no Windows package identity. The in-app updater was unavailable in that mode. After a user-initiated restart, the update policy was back to its default allowed state, but the process still had no package identity and the updater remained unavailable. That same process was observed for 16 minutes 15 seconds: it remained responsive and no new Crashpad dump appeared. This is a temporary workaround and a bounded observation, not evidence that the native module is fixed or that long-term stability is established.
    • No reinstall or Reset was performed; .codex, projects, chats, and application data were not deleted.

    Multiple dumps consistently identify windows-updater.node +0x1A779 as the faulting location. The native module participates in Windows update/runtime-package management. My local evidence alone does not symbolicate the exact internal function. The Primary Runtime installation-path investigation elsewhere in this thread is useful context, but I have not independently proven that exact internal path.

    Faulting module identity

    • SHA256: 021B21A29A404302A6229D66C1EED67A3DB14C99FC4178E34B4E54A3EFD718EE
    • PDB identifier: 58653eac-9179-446c-927c-791d24801e3b, age 1.

    Privacy: A representative dump is retained locally and can be provided through a private, maintainer-approved channel if requested. No dumps, raw logs, credentials, chat/project content, usernames, machine names, or private paths are attached or included in this comment.

  6. frankleiovo commented on Oct 6, 2026

    @frankleiovo

    Independent reproduction and successful workaround on another Windows machine.

    Environment

    • Windows x64
    • OpenAI.Codex package: 26.930.7945.0
    • Crashpad sidecar on the failing launch:
      {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}

    Behavior

    • Codex launched normally, but exited within roughly one minute.
    • Windows Application Event Log did not show a corresponding ordinary Application Error.
    • Crashpad generated a fresh ~45 MB dump at the time of the exit.
    • The problem reproduced repeatedly.

    Additional evidence

    Before the workaround:

    • Get-AppxPackage *OpenAI.CodexPrimaryRuntime* returned no installed Primary Runtime.
    • The Codex LocalCache contained 9 separate codex-windows-runtime-framework-* temporary directories.
    • A downloaded runtime package was present:
      • OpenAI.CodexPrimaryRuntime.v26-1005-1301-0.msix
      • size: 528,081,485 bytes
    • Get-AuthenticodeSignature returned:
      • Status: Valid
      • signer: OpenAI OpCo, LLC

    Workaround

    I manually registered the already-downloaded runtime with Windows:

    Add-AppxPackage -Path <path-to-OpenAI.CodexPrimaryRuntime.v26-1005-1301-0.msix>

    Afterward:

    Name        : OpenAI.CodexPrimaryRuntime.v26-1005-1301-0
    Version     : 26.1005.1301.0
    Status      : Ok
    IsFramework : True
    

    Result

    After the manual runtime registration:

    • Codex remained open beyond the previous crash window.
    • Browser-based ChatGPT sign-in completed successfully.
    • The original .codex directory was restored.
    • Existing project/session state loaded normally.
    • Codex completed a real local task involving PowerShell commands, file reads, image handling, and web search.
    • No further crash occurred during this validation period.

    This independently matches the workaround reported above and strongly suggests the failing path is the automatic Primary Runtime installation/update flow rather than user .codex data itself.

    I am not attaching the raw Crashpad dump because it may contain process memory, but I can provide additional sanitized diagnostics if useful.

  7. awua0511 commented on Oct 8, 2026

    @awua0511

    I am experiencing what appears to be the same issue on Codex Stable 26.1002.52244.

    I reproduced the crash multiple times and analyzed a Crashpad dump using WinDbg. The exception signature closely matches this report, with a module offset differing by only 0x10.

    Crashpad analysis

    • Application: ChatGPT.exe
    • Stable version: 26.1002.52244
    • Exception: 0xC0000005 (Access Violation)
    • Faulting module: windows-updater.node
    • Module offset: 0x1A789
    • Failure bucket: INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown
    • Failure hash: {7b9794d0-f3f3-7479-ed02-c55445dc3401}

    Relevant WinDbg output:

    EXCEPTION_RECORD:
    ExceptionAddress: windows_updater+0x1a789
    ExceptionCode: c0000005
    Parameter[0]: 0000000000000000
    Parameter[1]: 0000000000000000
    Attempt to read from address 0000000000000000
    
    PROCESS_NAME: ChatGPT.exe
    MODULE_NAME: windows_updater
    IMAGE_NAME: windows-updater.node
    
    rcx=0000000000000000
    rip=00007ffea0b9a789
    
    windows_updater+0x1a789:
    mov rax,qword ptr [rcx]
    
    FAILURE_BUCKET_ID:
    INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown
    

    This confirms a null-pointer read inside the native Windows updater module.

    Additional finding: Network-dependent startup crash

    I discovered a reproducible network-related workaround:

    1. Launch while connected to the internet: The UI loads successfully, but the application silently closes after approximately 50 seconds.
    2. Launch while connected, then immediately disconnect: The application remains stable.
    3. Reconnect after the initial startup period: The application continues running normally without crashing.
    4. Close the application and launch again while online: The crash occurs again.
    5. Launch the Beta version (26.727.40816) while online: No crash occurs.

    Reinstalling the Stable version did not resolve the issue.

    These results suggest that a network-dependent operation during startup may be triggering the native updater crash. However, the exact operation responsible has not been established.

    Diagnostic artifact

    • Dump: c3314e97-1b61-4aca-934a-bbdfb1691351.dmp
    • Timestamp: October 7, 2026, 19:02:59 (local time)
    • Size: 40,884,784 bytes

    Interestingly, the failure hash is identical to that reported in #30906, despite the different application version and module offset.

    The Crashpad dump is available for private analysis upon request. I have not attached it publicly because it may contain sensitive process memory.

    Could the maintainers investigate whether this is the same underlying updater defect and whether a fix or safe workaround is available for the Stable channel?

    The Beta channel avoids the crash, but I currently cannot access certain advanced models there, so it is not a complete replacement for Stable.

  8. hongxzz commented on Oct 8, 2026

    @hongxzz

    Additional reproduction: Stable 26.1002.52244 / Primary Runtime 26.1007.11041

    Reporting another affected Windows machine on 2026-10-08. This appears related to the Primary Runtime update/install behavior described in this issue, but we have not confirmed the native exception code or faulting module on this machine: only Crashpad sidecars and queued native-event metadata were available, not a usable minidump.

    Environment

    • Desktop internal version: 26.1002.52244, build 13536, prod channel.
    • Windows app package: OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0.
    • Windows 11 Education, 10.0.22621, x64.
    • Target runtime bundle: 26.1007.11041.
    • Target framework package: OpenAI.CodexPrimaryRuntime.v26-1007-641-0, version 26.1007.641.0.
    • The app's configured update checker reported up_to_date; that result concerns the desktop app channel, not successful installation of this runtime.

    Observed behavior and reproduction

    1. Launch the desktop app while online.
    2. Startup triggers a scheduled Primary Runtime framework update and a large download.
    3. The app exits shortly after the downloaded package reaches its expected size.
    4. Reopening the app repeats the download/crash cycle.

    The user throttled download speed to keep the app running long enough for diagnosis. We must not attribute the resulting temporary stability solely to a workaround or feature-gate change.

    There were 27 Crashpad crash sidecars dated 2026-10-08 at the time of inspection. Representative metadata:

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

    A queued native event was marked level=fatal, platform=native, event.origin=electron, event.process=browser, release [email protected]. No matching ordinary Application Error was found in the Windows Application log during the inspected period.

    Download-to-crash timing

    Six retained MSIX files were each 528,530,808 bytes, the expected complete size. Their last-write times closely precede Crashpad sidecar creation. All times below are on 2026-10-08, UTC+08:00. These are filesystem timestamps, not a symbolicated execution trace.

    Complete-size MSIX last write Crash sidecar last write Interval
    09:36:58.153 09:37:00.918 2.764 s
    09:37:56.201 09:37:59.317 3.116 s
    09:40:35.874 09:40:38.612 2.738 s
    09:44:58.985 09:45:02.003 3.018 s
    09:46:55.219 09:46:57.713 2.494 s
    09:48:02.729 09:48:05.337 2.609 s

    At a later inspection, eight framework staging directories/files remained.

    Representative log fields from affected launches:

    primary_runtime_selection:
      frameworkEligible=true frameworkEnabled=true
      reason=awaiting-framework runtimeSource=archive
    
    primary_runtime_install_started:
      release=latest target=win32-x64
      trigger=scheduled_update forceReinstall=false hasConfiguredRuntime=true
    
    Windows runtime framework download failed:
      errorName=AbortError errorCode=20
      failureReason=cancelled httpStatus=200
      expectedBytes=528530808
    

    Some initial downloads were aborted and another install attempt began; later attempts left complete-size files followed by the native crash. Cancellation alone is not asserted to be the cause.

    Package validation and workaround applied

    Before the workaround, Windows did not report an installed OpenAI.CodexPrimaryRuntime* framework. An existing archive-format runtime already reported bundle 26.1007.11041.

    The latest downloaded MSIX was checked before use:

    • Filename: OpenAI.CodexPrimaryRuntime.v26-1007-641-0.msix.
    • Size: 528530808 bytes.
    • SHA-256 matched the digest in the app's runtime download configuration:
      a2a820d1825a7e4de86749e72d9c53f6450ac7a9fdff13101be488cee24bdc62.
    • Authenticode signature verified, signer OpenAI OpCo, LLC.
    • Manifest minimum Windows version: 10.0.19041.0, satisfied on this machine.

    We then used Windows PowerShell to install that already-downloaded, verified package outside the app's native installation entry point:

    Add-AppxPackage -Path <verified-local-runtime-msix>

    Windows AppXDeploymentServer event 400 at 10:00:32 UTC+08:00 confirmed successful installation. The resulting package was:

    OpenAI.CodexPrimaryRuntime.v26-1007-641-0_26.1007.641.0_x64__3k8sg7r9htsxt
    Status: Ok
    

    The installed runtime.json reported bundle 26.1007.11041; the runtime dependencies and plugins were present. App binaries, account data, chat history, and security settings were not modified as part of this workaround.

    Validation and important limits

    The user removed download throttling. Five samples between 10:02:58 and 10:04:59 UTC+08:00 showed:

    • The same main process remained running.
    • No new crash sidecars.
    • No new framework downloads or installation attempts.
    • The last observed crash remained at 09:48:05.

    However, the app had also logged frameworkEnabled=false / reason=gate-disabled at 09:50:12 UTC+08:00, before the manual install. Therefore, this is not a controlled demonstration that installing the package alone fixed the crash. A complete quit/relaunch test was deferred because the user could not restart at that time. The native defect and future framework-update behavior remain unverified.

    Other errors observed, not established as causes of this crash

    • The command sandbox repeatedly failed setup with helper_unknown_error: setup refresh had errors. The setup log reported a sharing violation (os error 32) while validating read/execute ACL access to the bundled node_repl.exe.
    • Startup also produced remote WebSocket connection failures, App server request queue is full, and failed to list apps: Failed to parse JSON response.

    Please investigate whether the automatic Primary Runtime framework installation path on Stable 26.1002.52244 is affected by the native updater issue reported here, and whether a supported mitigation/fix can prevent the repeated download-and-crash cycle. The ancillary errors above may be separate issues.

    This comment contains sanitized diagnostic details only. No raw memory dumps, account identifiers, credentials, chat/project content, private hostnames, or user-specific filesystem paths are included.

  9. jackfeicoder commented on Oct 8, 2026

    @jackfeicoder

    📢 Update (Oct 8): Bug Still Persists in 26.1002.6548.0 with newly pushed Runtime v26-1007-641-0

    The issue has resurfaced today after the Microsoft Store updated the host app to 26.1002.6548.0, confirming that the underlying Null-Pointer Dereference in windows-updater.node remains unpatched in the latest client build.

    Here is the updated investigation from the latest crash incident:


    1. Updated Environment & Versions

    • Host App Version: 26.1002.6548.0 (OpenAI.Codex_26.1002.6548.0_x64__2p2nqsd0c76g0)
    • Newly Pushed Runtime: 26.1007.641.0 (OpenAI.CodexPrimaryRuntime.v26-1007-641-0_x64.msix, 528,530,808 bytes)
    • Previous Staged Runtime: 26.1005.1301.0

    2. Latest Minidump Analysis (de684b22-a24f-4d3d-acb4-99cec2d505bd.dmp)

    • Exception: 0xC0000005 (STATUS_ACCESS_VIOLATION, Null-pointer read: target address 0x0000000000000000)
    • Faulting Module: windows-updater.node
    • Faulting Instruction Address: 0x7ffd2d3aa789
    • Faulting Relative Virtual Address (RVA): +0x1A789 (offset shifted slightly from +0x1A779 due to recompilation in 26.1002.6548.0)
    • Module Path: C:\Program Files\WindowsApps\OpenAI.Codex_26.1002.6548.0_x64__2p2nqsd0c76g0\app\resources\native\windows-updater.node

    3. Log Sequence

    info [restricted-codex-windows-runtime-framework] windows_primary_runtime_framework_activated ... packageIdentity=OpenAI.CodexPrimaryRuntime.v26-1005-1301-0 packageVersion=26.1005.1301.0
    ...
    info [primary-runtime-installer] primary_runtime_bundle_install_started ... release=latest target=win32-x64 trigger=startup_missing
    info [primary-runtime-installer] Primary runtime download source bundleVersion=26.1007.11041 latestManifestUrl=https://persistent.oaistatic.com/codex-primary-runtime/latest/win32-x64/LATEST.json runtimeArchiveUrl=https://persistent.oaistatic.com/codex-primary-runtime/26.1007.11041/OpenAI.CodexPrimaryRuntime.v26-1007-641-0_x64.msix target=win32-x64
    ...
    [Download completes at ~48s -> windows-updater.node is invoked -> Immediate 0xC0000005 crash]
    
    1. Takeaway for Maintainers
      The app was previously running fine with manually staged v26-1005-1301-0.
      As soon as upstream rolls out a newer Primary Runtime (v26-1007-641-0), the client enters the automatic staging pipeline and crashes again.
      This will repeatedly hit all Windows users every few days as long as new runtimes are released and windows-updater-addon lacks proper null checks on progress callbacks.
    2. Updated Workaround (Verified Working)

    Manually deploying the latest downloaded framework resolves the crash once again:

    powershell

    1. Manually install the new v26-1007 runtime

    Add-AppxPackage -Path "$env:LOCALAPPDATA\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache<framework-temp-dir>\OpenAI.CodexPrimaryRuntime.v26-1007-641-0.msix"

    2. Clean up orphaned cache directories

    Get-ChildItem -Path "$env:LOCALAPPDATA\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache" -Filter "codex-windows-runtime-framework*" | Remove-Item -Recurse -Force

    After registering OpenAI.CodexPrimaryRuntime.v26-1007-641-0_26.1007.641.0_x64__3k8sg7r9htsxt, the client launches successfully without crashing.

  10. Cale146 commented on Oct 8, 2026

    @Cale146

    Codex 26.1002.7124.0 was crashing after ~20–30 seconds with 0xC0000005 in windows-updater.node at offset 0x1A789.

    Confirmed this workaround fixed the issue for me as well. Manually installing OpenAI.CodexPrimaryRuntime.v26-1007-641-0.msix using Add-AppxPackage resolved the crash.

    No cache cleanup was necessary on my machine.

  11. frankleiovo commented on Oct 9, 2026

    @frankleiovo

    Follow-up from the same Windows machine: the issue reproduced again after the next Primary Runtime rollout, and the same manual-install workaround fixed it again.

    Second recurrence

    Host app

    • OpenAI.Codex: 26.1002.6548.0

    Previously installed framework

    • OpenAI.CodexPrimaryRuntime.v26-1005-1301-0
    • Version: 26.1005.1301.0
    • Status: Ok
    • IsFramework: True

    New runtime downloaded by Codex

    • OpenAI.CodexPrimaryRuntime.v26-1007-641-0.msix
    • Size: 528,530,808 bytes
    • Two complete copies were downloaded during repeated crashes within about one minute of each other.

    Before the workaround, Get-AppxPackage *OpenAI.CodexPrimaryRuntime* showed only the older 26.1005.1301.0 framework installed.

    Workaround repeated successfully

    The newest downloaded MSIX was verified before installation:

    Authenticode Status: Valid
    Signer: OpenAI OpCo, LLC
    

    Then it was installed manually:

    Add-AppxPackage -Path <verified-local-OpenAI.CodexPrimaryRuntime.v26-1007-641-0.msix>

    After installation:

    Name        : OpenAI.CodexPrimaryRuntime.v26-1007-641-0
    Version     : 26.1007.641.0
    Status      : Ok
    IsFramework : True
    

    Result

    After registering the new runtime manually:

    • Codex launched normally.
    • It remained stable beyond the previous crash window.
    • A real Codex task completed successfully without another crash.

    This is now a second occurrence on the same machine:

    1. Runtime 26.1005.1301.0 rollout -> automatic install path crashed -> manual Add-AppxPackage restored stability.
    2. Runtime 26.1007.641.0 rollout -> automatic install path crashed again -> manual Add-AppxPackage restored stability again.

    This strongly suggests the issue is not a one-time corrupted install; it can recur whenever a new Primary Runtime is pushed while the automatic Windows framework installation path remains affected.

    Disk leak observed

    After the two incidents, the Codex LocalCache contained 11 orphaned directories matching:

    codex-windows-runtime-framework-*
    

    Each was about 0.49 GiB, for roughly 5.4 GiB total leaked disk space.

    After confirming both registered Primary Runtime frameworks remained Status: Ok, the orphaned temporary directories were removed. The installed frameworks were unaffected.

    This repeated failure + repeated disk leakage may be worth treating as a separate severity concern in addition to the crash itself.

  12. EdhuMS commented on Oct 9, 2026

    @EdhuMS

    Possible workaround for the windows-updater.node crash — manual primary runtime installation

    Hi! I read through your detailed investigation, especially the primary_runtime_bundle_install_started event that occurred shortly before your crash.

    I experienced a very similar issue on Windows 11 and found a workaround that may be relevant to your findings.

    My environment:

    • ChatGPT/Codex Desktop: 26.1002.7124.0
    • Crash module: windows-updater.node
    • Exception: 0xC0000005
    • Module offset: 0x1A789

    I noticed that the application repeatedly downloaded a primary runtime MSIX package but never successfully registered it in Windows.

    After verifying that the package was signed by OpenAI OpCo, LLC, I manually installed the runtime. The application subsequently stopped crashing during my testing.

    Here's what I did:

    1. Check whether a primary runtime is registered:
    Get-AppxPackage -Name '*CodexPrimaryRuntime*'
    1. Locate any runtime packages downloaded by Codex:
    $base = Join-Path $env:LOCALAPPDATA 'Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache'
    
    Get-ChildItem -Path $base -Recurse -Filter 'OpenAI.CodexPrimaryRuntime*.msix' -File
    1. Verify the signature of the appropriate package:
    Get-AuthenticodeSignature -LiteralPath 'FULL_PATH_TO_MSIX'
    1. After closing Codex, install the verified package:
    Add-AppxPackage -Path 'FULL_PATH_TO_MSIX'
    1. Verify the installed runtime:
    Get-AppxPackage -Name '*CodexPrimaryRuntime*' |
        Select-Object Name, Version, Status

    In my case, the installed runtime was 26.1007.641.0, and Windows reported Status: Ok.

    Important differences: Your application version (26.930.7945.0) and crash offset (0x1A779) differ from mine. Therefore, I cannot confirm that we have exactly the same underlying issue.

    I recommend checking which runtime version your own installation downloaded rather than using my specific runtime version.

    Also, please back up your local Codex projects and verify package signatures before attempting installation. This is an unofficial workaround, not a guaranteed fix.

    Your findings about the scheduled primary runtime installation are particularly interesting because they align with the behavior I observed.

    I hope this helps! If you try it, please share whether the primary runtime was missing and whether installing it resolves the crash. It would be valuable evidence for the OpenAI engineering team.

  13. SamLawX commented on Oct 9, 2026

    @SamLawX

    I can confirm that manually installing the downloaded Primary Runtime MSIX resolved a similar startup crash on my machine.

    With Windows Codex package version 26.1002.7124.0, the app silently exited about 50–60 seconds after launch. Repeated launches left 16 copies of the runtime installer in codex-windows-runtime-framework-* folders under:

    %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\
    

    Each copy was about 504 MiB, totaling roughly 7.87 GiB. Eventually, a manual installation attempt failed with 0x80073CF4 / 0x80070070 because the system drive had run out of space.

    What worked for me:

    1. Close Codex completely.
    2. Free enough space on the system drive. I removed redundant downloaded runtime copies while keeping one complete MSIX.
    3. Verify that the retained package has a valid OpenAI digital signature.
    4. Double-click the downloaded OpenAI.CodexPrimaryRuntime.v26-1007-641-0.msix and install it through Windows App Installer.
    5. Relaunch Codex. It then worked normally again.

    For other versions, use the appropriate runtime package already downloaded by your own Codex installation; the filename above is specific to my case. If cleaning up duplicate downloads, limit cleanup to those runtime staging folders rather than deleting the whole LocalCache directory.

    This adds another successful result for the manual-install workaround already discussed here, including installation through the graphical App Installer. It also shows how repeated downloads can eventually prevent installation by exhausting disk space.

    I have not established why automatic installation failed initially, or whether the crash occurred before or during deployment. The disk-full errors were observed after the duplicate packages had accumulated. It would be helpful for the automatic installer to reuse existing downloads, clean up failed attempts, and report deployment failures without closing the app.

  14. sajeewa-Intrinsic commented on Oct 9, 2026

    @sajeewa-Intrinsic

    Reproduced again on the 26.1007.11041 runtime rollout, on the same machine where 26.1005.12141 caused it before. I also found a config setting in the app bundle that may stop the loop permanently; it's described below but not yet verified.

    Environment

    • OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0 (Microsoft Store), Windows 11 Pro 23H2 10.0.22631, x64
    • Dump from the earlier occurrence on 26.930.7945.0 (2026-10-06): 0xC0000005, read of 0x0 at windows-updater.node+0x1A779 in the browser process. The crashing thread was libuv-worker, and a heuristic stack scan passes through AppXDeploymentClient.dll+0x347A0 and +0x34030.

    Timeline

    • 2026-10-06: The v26-1005-1301-0 MSIX download completed and the app crashed 2 s later. Fixed by running Add-AppxPackage on the downloaded MSIX, after checking that its SHA-256 matched the app's runtime config and its Authenticode signature (OpenAI OpCo, LLC) was valid.
    • 2026-10-09: After 26.1007.11041 (v26-1007-641-0) shipped, the app crashed 3 to 3.5 minutes into each of two consecutive launches, leaving two complete 528,530,808-byte MSIX copies in LocalCache\codex-windows-runtime-framework-*. No dump was retained this time, but each session's log stops right after the download, the same as before. The same workaround fixed it again: the digest a2a820d1825a7e4de86749e72d9c53f6450ac7a9fdff13101be488cee24bdc62 matched, and after installing it the app stayed up for more than 8 minutes. The log then showed windows_primary_runtime_framework_ready, then reason=framework-active, then primary_runtime_install_finished status=installed, with no new download.

    Possible durable mitigation (from reading the 26.1002.7124.0 bundle, not yet verified end-to-end)

    The primary-runtime update poller only runs while the app-server feature workspace_dependencies is enabled; otherwise getDisabledReason() returns feature-gate-disabled. With the feature off, the manual install path also refuses to run, failing with "Codex dependencies are disabled in settings." The startup restore path only activates a framework that is already registered; it doesn't download or stage anything. So this should break the download, installPrimaryRuntimePackage, crash loop:

    # $CODEX_HOME/config.toml (default ~/.codex/config.toml)
    [features]
    workspace_dependencies = false

    The cost is losing the bundled runtime and its plugins (documents, pdf, spreadsheets, presentations). codex features list reports this feature as stable and true by default. Unlike CODEX_SPARKLE_ENABLED=false or the global-state framework toggle tried above, the app reads this flag from config.toml through the app-server.

    Request for maintainers: please catch failures in installPrimaryRuntimePackage/stagePackage and fall back to the archive runtime instead of terminating the browser process. Until then, every runtime rollout breaks affected machines again.

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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions