Skip to content

Codex crash on Windows10 Home 22H2 #30906

Open

Description

@woshixiaohuya

What version of the Codex App are you using (From “About Codex” dialog)?

版本 26.623.81905 • 发布于 2026年7月1日

What subscription do you have?

login by api-key mode

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

CPU :AMD R7-5800H

  1. Problem Symptom
    After double-clicking Codex.exe to launch, the program pops up briefly and crashes within ~2.3 seconds without any error prompt. I captured the full process trace via Microsoft Process Monitor for troubleshooting.
  2. Initial Process Monitor Log Analysis
    Captured complete event logs of PID 17088 (main Codex process) starting at 12:48:00.
    Observed multiple third-party DLL injections: Sangfor VPN network hook modules (SangforTcpX64.dll, SangforNspX64.dll) and several Sogou Input bundles.
    Found the main process exited with NTSTATUS code -1073741819 (translates to 0xC0000005 Access Violation), while all Chromium child processes exited normally with code 0.
    The log recorded Codex automatically generating crash dumps under path:
    C:\Users\User\AppData\Roaming\Codex\web\Codex\Crashpad\reports
  3. Crash Dump Analysis with WinDbg
    Downloaded official WinDbg from Microsoft Store and configured public Microsoft symbol server.
    Loaded the generated .dmp crash dump file and ran the core diagnostic command !analyze -v.
    Key crash analysis results:
    Exception Code: 0xc0000005 Access Violation
    Violation Type: INVALID_POINTER_READ — the program attempted to read memory from NULL address 0x0000000000000000
    Faulting binary module: windows-updater.node (offset 0x16dd3)
    Fault assembly instruction: mov rax,qword ptr [rcx], where register rcx = NULL
    Crash bucket tag: INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown
    Critical conclusion from dump: The crash is NOT caused by Sangfor VPN or Sogou Input DLL injection. The access violation occurs inside Codex’s built-in Windows Update detection native Node module, with no third-party libraries present in the crash stack trace. Warnings about DLL checksums in WinDbg are irrelevant and do not affect root cause identification.
  4. Root Cause
    Codex’s embedded windows-updater.node native module lacks null pointer validation logic when querying Windows Update service/system update metadata. When the module retrieves an empty system structure pointer and tries to dereference it, a null pointer read exception is thrown, terminating the entire application.
    Possible triggers for the null pointer:
    Corrupted Windows Update system components/services
    Damaged Codex local module files (windows-updater.node)
    Insufficient permissions to access Windows Update registry entries
    Permanent Fix Options
    Repair Windows system files & Windows Update service via CMD (admin):

sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
Then I can Open it

What steps can reproduce the bug?

I have reinstalled it several times before, but the same crash issue would occur after a few days of use. Changing the version in the meantime didn't solve the problem either
I restart computer, and I see it again.

What is the expected behavior?

No response

Additional information

Attachment 1 is the exported log from the Windows Process Monitor, recording the process of Codex opening and crashing

Logfile.CSV

Below are the results of the dump analysis conducted through Windbg:

************* Preparing the environment for Debugger Extensions Gallery repositories **************
ExtensionRepository : Implicit
UseExperimentalFeatureForNugetShare : true
AllowNugetExeUpdate : true
NonInteractiveNuget : true
AllowNugetMSCredentialProviderInstall : true
AllowParallelInitializationOfLocalRepositories : true
EnableRedirectToChakraJsProvider : false

-- Configuring repositories
----> Repository : LocalInstalled, Enabled: true
----> Repository : UserExtensions, Enabled: true

Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.047 seconds

************* Waiting for Debugger Extensions Gallery to Initialize **************

Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.234 seconds
----> Repository : UserExtensions, Enabled: true, Packages count: 0
----> Repository : LocalInstalled, Enabled: true, Packages count: 29

Microsoft (R) Windows Debugger Version 10.0.28000.2270 X86
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\Users\XiaoHuYa\Desktop\0f205885-c438-4a00-9821-d3606a7c72a5.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

************* Path validation summary **************
Response Time (ms) Location
Deferred srvC:\symbolshttps://msdl.microsoft.com/download/symbols
Symbol search path is: srvC:\symbolshttps://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 10 Version 19045 (6466) MP (16 procs) Free x64
Product: WinNt
Edition build lab: Windows NT 10.0.19045.6466
Debug session time: Thu Jul 2 12:48:02.000 2026 (UTC + 8:00)
System Uptime: 0 days 3:19:34.854
Process Uptime: 0 days 0:00:02.000
................................................................
................................................................
.....
Loading unloaded module list
.........
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr
(42c0.5e5c): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
*** WARNING: Unable to verify checksum for ntdll.dll
*** WARNING: Unable to verify checksum for KERNELBASE.dll
ntdll!NtDelayExecution+0x14:
00007ff8`7aa4dc24 c3 ret
0:014> !analyze -v
..*** WARNING: Unable to verify checksum for ntdll.dll
..............................................................
................................................................
.....
Loading unloaded module list
.........
*** WARNING: Unable to verify checksum for KERNELBASE.dll


  •                                                                         *
    
  •                    Exception Analysis                                   *
    
  •                                                                         *
    

*** WARNING: Unable to verify checksum for ole32.dll
*** WARNING: Unable to verify checksum for twinapi.appcore.dll

KEY_VALUES_STRING: 1

Key  : AV.Dereference
Value: NullPtr

Key  : AV.Type
Value: Read

Key  : Analysis.CPU.mSec
Value: 500

Key  : Analysis.Elapsed.mSec
Value: 16530

Key  : Analysis.IO.Other.Mb
Value: 13

Key  : Analysis.IO.Read.Mb
Value: 27

Key  : Analysis.IO.Write.Mb
Value: 45

Key  : Analysis.Init.CPU.mSec
Value: 4828

Key  : Analysis.Init.Elapsed.mSec
Value: 130827

Key  : Analysis.Memory.CommitPeak.Mb
Value: 123

Key  : Analysis.Version.DbgEng
Value: 10.0.28000.2270

Key  : Analysis.Version.Description
Value: 10.2506.23.01 x86fre

Key  : Analysis.Version.Ext
Value: 1.2506.23.1

Key  : Failure.Bucket
Value: INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown

Key  : Failure.Exception.Code
Value: 0xc0000005

Key  : Failure.Exception.IP.Address
Value: 0x7ff818316dd3

Key  : Failure.Exception.IP.Module
Value: windows_updater

Key  : Failure.Exception.IP.Offset
Value: 0x16dd3

Key  : Failure.Hash
Value: {7b9794d0-f3f3-7479-ed02-c55445dc3401}

Key  : Failure.ProblemClass.Primary
Value: INVALID_POINTER_READ

Key  : Timeline.OS.Boot.DeltaSec
Value: 11974

Key  : Timeline.Process.Start.DeltaSec
Value: 2

Key  : WER.Process.Version
Value: 149.0.7827.115

FILE_IN_CAB: 0f205885-c438-4a00-9821-d3606a7c72a5.dmp

NTGLOBALFLAG: 0

CONTEXT: (.ecxr)
rax=00007ff8183f6920 rbx=0000019d6e7cf940 rcx=0000000000000000
rdx=0000000000000004 rsi=0000001f8a9ffc08 rdi=0000001f8a9ffc20
rip=00007ff818316dd3 rsp=0000001f8a9ffb60 rbp=0000001f8a9ffba8
r8=0000001f8a9ffa40 r9=0000019d6e7cf940 r10=000000007fffffff
r11=0080000000000000 r12=00007ff87a9dfaa0 r13=00000000000000d0
r14=0000000000000000 r15=00007ff8183f6c90
iopl=0 nv up ei pl zr na po nc
cs=0033 ss=0000 ds=0000 es=0000 fs=0053 gs=002b efl=00010246
windows_updater+0x16dd3:
00007ff818316dd3 488b01 mov rax,qword ptr [rcx] ds:0000000000000000=????????????????
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff818316dd3 (windows_updater+0x0000000000016dd3)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000000
Attempt to read from address 0000000000000000

PROCESS_NAME: Codex.exe

READ_ADDRESS: 0000000000000000

ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%p 0x%p %s

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 0000000000000000

IP_ON_STACK:
+0
0000001f`8a9ffbf0 0000 add byte ptr [rax],al

FRAME_ONE_INVALID: 1

STACK_TEXT:
0000001f8a9ffb60 0000001f8a9ffbf0 : 0000019d7244e760 0000000000000000 0000019d6e7cf940 0000125c00a6c460 : windows_updater+0x16dd3
0000001f8a9ffb68 0000019d7244e760 : 0000000000000000 0000019d6e7cf940 0000125c00a6c460 00007ff800000203 : 0x0000001f8a9ffbf0 0000001f8a9ffb70 0000000000000000 : 0000019d6e7cf940 0000125c00a6c460 00007ff800000203 00007ff8183f6920 : 0x0000019d7244e760

SYMBOL_NAME: windows_updater+16dd3

MODULE_NAME: windows_updater

IMAGE_NAME: windows-updater.node

STACK_COMMAND: ~14s; .ecxr ; kb

FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

FAILURE_ID_HASH: {7b9794d0-f3f3-7479-ed02-c55445dc3401}

Followup: MachineOwner

Activity

  1. added
    app
    on Jul 2, 2026
  2. added
    bug
    windows-os
    on Jul 2, 2026
  3. github-actions commented on Jul 2, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. song910394 commented on Aug 11, 2026

    @song910394

    I captured another occurrence of what appears to be the same native crash on a newer Codex desktop build.

    Environment

    • Codex Windows package version: 26.727.6591.0
    • Logged application release: [email protected]
    • Windows 10 x64, build 10.0.19045.6456
    • Faulting module: resources/native/windows-updater.node
    • Module SHA-256: 858983F2525D635B8AA67311C06C9D0C51E9FEB18DE84B09664A9AE982283F91

    WinDbg result

    ExceptionCode: c0000005 (Access violation)
    Attempt to read from address 0000000000000000
    ExceptionAddress: windows_updater+0x22173
    windows_updater+0x22173: mov rax,qword ptr [rcx]
    rcx = 0000000000000000
    

    The offset differs from the original report (+0x16dd3), presumably because this is a newer native binary, but the failure mode is the same null-pointer read in windows-updater.node.

    Additional observations

    • The app had been running normally for several minutes rather than crashing immediately at startup.
    • The root process remained responsive immediately before the exit.
    • Final monitored values were approximately 376 MB working set, 365 MB private memory, 68 threads, and 1,883 handles.
    • The application text log ended after routine activity and contained no fatal error, panic, out-of-memory event, GPU-process failure, or unhandled JavaScript exception near the crash.
    • Crashpad generated a 45,109,264-byte dump.
    • Dump SHA-256: 91E46014E2AAC86B03F405F75F822D6A281D1C5E08E82FBA2FB5136B23AB50E1

    Private symbols for the updater module were unavailable, so I cannot identify the higher-level caller or updater state. Could the maintainers symbolicate the dump/code path around windows_updater+0x22173 and add a null guard for the affected updater object?

    The dump and full logs are available for private upload through a secure support channel if requested; I have not attached them publicly because they may contain local diagnostic data.

  5. letter0909-crypto commented on Aug 14, 2026

    @letter0909-crypto

    I can reproduce the same native crash on newer August 2026 Codex Windows builds.

    Environment

    • Windows 11 x64, build 22621.4317
    • Codex Windows package versions affected:
      • 26.803.5235.0
      • 26.803.10989.0
    • Codex CLI works normally on the same machine.

    Behavior

    The desktop app opens, may reach the login/welcome screen, then shows a personalization/profile preferences error and exits. A new Crashpad dump is created on each reproduction.

    WinDbg result

    ExceptionCode: c0000005 (Access violation)
    Failure bucket: INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown
    Faulting module: windows-updater.node
    Faulting offset: windows_updater+0x22173
    Instruction: mov rax,qword ptr [rcx]
    rcx = 0000000000000000
    FAILURE_ID_HASH: {7b9794d0-f3f3-7479-ed02-c55445dc3401}
    

    This is the same failure hash and null-pointer read reported here. The issue persists across the two newer package versions above.

    Troubleshooting already completed

    • Repair and Reset from Windows app settings
    • Uninstall and reinstall from the Microsoft Store installer
    • Cleared/renamed Codex app profile and web data
    • DISM /Online /Cleanup-Image /RestoreHealth
    • sfc /scannow (Windows reported and repaired corrupted files)
    • Rebooted Windows and tested again

    The crash still reproduces after all of the above. The same account and Codex workflow work on another computer, and Codex CLI remains usable on this affected machine.

    Could the maintainers confirm whether a fix or a safe way to disable/bypass Windows updater initialization is planned? Full minidumps are available for private upload through a secure support channel if needed; I am not attaching them publicly because they may contain local diagnostic data.

  6. Mrcat12138 commented on Oct 8, 2026

    @Mrcat12138

    Codex_Windows_Crash_Report_2026-10-08.md

    [Windows][Codex Desktop 26.1002.7124.0] Silent crash in windows-updater.node (0xC0000005 NULL-pointer read)

    Related issue: #30906

    Summary

    Codex Desktop on Windows 11 starts and runs briefly, then the entire window disappears without an error dialog. Process Monitor confirmed that the application's associated ChatGPT.exe processes exit. A Crashpad minidump analyzed with WinDbg confirms a native access violation in windows-updater.node: a null-pointer read at offset 0x1a789. The same failure hash has been reported in issue #30906. This report adds evidence from a later Codex package version and a correlated app-server reconnection-failure timeline.

    Important product distinction: The executable is named ChatGPT.exe but belongs to the OpenAI.Codex Windows app package, not the separate OpenAI.ChatGPT-Desktop package.

    Environment

    • OS: Windows 11 x64, build 22631.5768 (23H2)
    • Application package: OpenAI.Codex
    • Package version: 26.1002.7124.0
    • Package status: Ok as returned by Get-AppxPackage
    • Application executable: ...\\OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0\\app\\ChatGPT.exe
    • Executable version reported in WinDbg: 155.0.8059.27
    • WinDbg debugger engine: 10.0.29661.1004 AMD64
    • Incident date: 2026-10-08, UTC+08:00

    Steps to reproduce (observed on affected Windows PC)

    1. Open Codex Desktop and allow it to initialize.
    2. Use the app normally or leave it running for roughly 1–2 minutes.
    3. On the affected PC, the entire window may disappear suddenly without an error dialog.
    4. To capture evidence, monitor ChatGPT.exe using Microsoft Process Monitor (make sure the executable path belongs to OpenAI.Codex).
    5. Open the app-generated Crashpad minidump with WinDbg; run .symfix, .reload, !analyze -v, .ecxr, and kv.

    The issue has recurred on this PC, but the exact action that triggers it and the reproduction frequency have not been established. The log timeline below documents one crash session.

    Expected behavior

    The Codex app should remain open and responsive. If background updater initialization/checking or app-server connectivity fails, the app should handle errors without terminating the main process.

    Actual behavior

    The window disappears without an error prompt. Process Monitor captured ChatGPT.exe process exits. In an earlier capture at ~10:12:04, the presumed main Codex process (PID 19856) exited with status 0xC0000005; several associated processes exited with code 0. That event is separate from the 10:25:54 minidump and should not be treated as the identical crash instance without further correlation.

    The later Crashpad minidump timestamped 10:25:54 captured a confirmed native exception.

    WinDbg minidump findings (10:25:54, UTC+08:00)

    Debug session time: Thu Oct 8 10:25:54.000 2026 (UTC + 8:00)
    Process Uptime: 0 days 0:01:50.000
    PROCESS_NAME: ChatGPT.exe
    EXCEPTION_CODE: 0xc0000005
    AV.Dereference: NullPtr
    AV.Type: Read
    EXCEPTION_ADDRESS: windows_updater+0x1a789
    MODULE_NAME: windows_updater
    IMAGE_NAME: windows-updater.node
    READ_ADDRESS: 0000000000000000
    FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_windows-updater.node!Unknown
    FAILURE_ID_HASH: {7b9794d0-f3f3-7479-ed02-c55445dc3401}
    
    .ecxr:
    rcx=0000000000000000
    rip=0000028bfd01a789
    windows_updater+0x1a789:
    mov rax,qword ptr [rcx]
    

    The instruction dereferences a null RCX pointer. The captured stack is limited to windows_updater+0x1a789, so the upstream code path and precise triggering operation cannot be recovered from this minidump alone. The module name points to the updater component, but does not by itself establish which update operation or external event triggered the crash.

    Correlated application-log timeline

    All times below are converted from the application log's UTC timestamps to UTC+08:00:

    Local time Evidence
    10:24:06 Codex launched; startup log included enableUpdater=true.
    10:24:59 AppServerConnection reconnection attempt 2 failed: WebSocket was closed before the connection was established.
    10:25:18 Reconnection attempt 3 failed with code=1006 and failureReason=open_timeout.
    10:25:41 Reconnection attempt 4 failed with code=1006 and failureReason=open_timeout.
    10:25:52 Renderer logged ResizeObserver loop completed with undelivered notifications.
    10:25:54 Crashpad minidump recorded the windows-updater.node access violation.

    The logs also report isAppQuitting=false at a connection closure event. These reconnection failures occurred before the native exception, but a causal relationship has not been established. The AppServerConnection WebSocket may be an application-internal connection; it should not be assumed to be a public OpenAI service endpoint. The keyword-filtered logs did not explicitly show a Microsoft Store update-check error; that absence is not proof none occurred in unfiltered logs.

    Other diagnostics and controls

    • The Windows app package returned Status: Ok.
    • The queried registry path HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsStore returned no matching values for RemoveWindowsStore, RequirePrivateStoreOnly, or AutoDownload. This does not rule out all Store restrictions.
    • Standard Windows Application event-log queries did not yield a matching ChatGPT.exe fault-module event during the selected time range.
    • A local proxy was configured and accepted connections; whether it contributed to any app-server connectivity failures is unknown.
    • Neither the updater module nor the application's protected files were manually modified or deleted as part of debugging.

    Questions for maintainers

    1. Can you symbolicate windows_updater+0x1a789 for Codex package 26.1002.7124.0 and identify the native function receiving the null pointer?
    2. Is the failure hash {7b9794d0-f3f3-7479-ed02-c55445dc3401} tracked across Codex builds, and is a fix available or planned?
    3. Does updater initialization gracefully handle an unavailable Store/update interface or invalid updater state?
    4. Could any supported updater failure path cause an uncaught access violation in the Electron main process?
    5. Is there a supported mitigation that preserves app integrity while a fix is pending?

    Privacy: The original .dmp and Process Monitor .PML can contain sensitive process memory and local paths. They are available for a secure private diagnostic handoff on request, but are intentionally not attached to this public report. The pasted application log is a filtered extract rather than the original complete log.

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