Windows desktop application hangs within 5–7 seconds of launch — WinDbg thread stacks collected

Open
#64,225 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
36/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
electron, rust

Research direction

Start by reviewing the retained desktop application logs and WinDbg thread stacks described in the issue, focusing on the main Electron process and the Windows device notification thread. The wait chain points to a possible synchronization or event-loop problem, but the root cause is unconfirmed. Reproduce the startup hang and identify the blocking dependency; done means the app stays responsive after launch.

Written by the indexing model from the issue text.

Description

app bug performance windows-os

Environment

  • OS: Windows 11 26H2
  • Windows build: 26300.10075
  • Codex desktop application: 26.1120.6357.0
  • Active primary runtime: 26.1123.915.0
  • Older primary runtime: 26.1119.907.0 (NotAvailable)
  • Architecture: x64
  • Graphics: AMD Radeon
  • Subscription: ChatGPT Plus

Description

The Codex Windows desktop application consistently becomes unresponsive within approximately 5–7 seconds of launching.

The interface renders successfully and the text input caret continues blinking, but mouse and keyboard interaction becomes impossible. Attempting to type triggers the Windows application not responding dialogue.

The issue is consistently reproducible, including with a clean Codex home directory and clean Electron browser profile.

Reproduction steps

  1. Launch the Codex Windows desktop application.
  2. Allow the application to initialise.
  3. Attempt to interact with the interface.
  4. The application becomes unresponsive.

Expected behaviour

The application should remain responsive and allow access to projects and conversations.

Diagnostic timestamps

All times UTC, 26 November 2026.

  • 20:46:41 — Sandbox service running.
  • 20:46:51 — Sandbox provisioning completed successfully during a startup attempt that resulted in a hang.
  • Approximately 20:53–20:58 — Application hang reproduced and Windows wait chain inspected.
  • Approximately 21:12–21:20 — WinDbg attached and thread stacks collected.

Troubleshooting completed

  • Full Windows restart.
  • Global state file isolation.
  • Clean .codex home directory.
  • Clean Electron browser profile.
  • Runtime package investigation.
  • Sandbox service and provisioning verification.
  • GPU acceleration disabled using --disable-gpu.
  • YubiKey Nano physically disconnected.
  • USB headset disconnected.
  • Windows Resource Monitor wait-chain analysis.
  • WinDbg manual thread-stack analysis.

None of the above resolved the issue.

Technical findings

The main Electron process becomes unresponsive with negligible CPU usage. Child renderer, GPU and utility processes remain present.

Windows Wait Chain Traversal identified a dependency between two threads within ChatGPT.exe (PID 9828):

  • Waiting thread: 22376 (0x5768)
  • Thread being waited on: 13352 (0x3428)
Main thread stack
ntdll!NtRemoveIoCompletionEx
KERNELBASE!GetQueuedCompletionStatusEx
chrome!uv_run
...
chrome!uv_run
Waiting device notification thread stack
win32u!NtUserMessageCall
USER32!fnINDEVICECHANGE
USER32!DeviceNotificationCallback
sechost!HandleDeviceInterfaceEvents
sechost!DeviceNotifyEventCallback
cfgmgr32!ProcessDeviceInterfaceEvent
cfgmgr32!ProcessEventBlockList
cfgmgr32!ProcessPlugPlayEventCallback

This suggests a possible main-thread synchronisation or event-loop issue involving Windows device notifications. However, the precise root cause remains unconfirmed, and full Chromium debugging symbols were unavailable.

Sandbox provisioning

Windows Event ID 2000:

Codex sandbox provisioning completed successfully.

The sandbox registry references the current application package.

Runtime deployment errors

The older primary runtime package reports NotAvailable and has repeatedly failed removal with:

0x80073D02: The request cannot be processed because the package is in use.

Application logs indicate that the newer runtime is selected.

Additional information

OpenAI Support has confirmed that there is no known active outage matching this issue and directed me to submit a GitHub bug report.

In-app feedback cannot be submitted because the application becomes unresponsive before the composer can be used.

I have retained the desktop application logs, WinDbg thread stacks, Windows event logs, process handle exports and wait-chain screenshots. Sanitised diagnostic information can be provided as required.

Dominant language
Rust
Stars
136k
Forks
21.6k
Avg merge
1m
Merged PRs (30d)
997

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.