Skip to content

Subject: Windows Graphics Capture Fails in Codex, but Works Normally in OBS #57149

Open

Description

@BLISSMON

What issue are you seeing?

I'm experiencing a Windows Graphics Capture (WGC) issue in Codex.

On the same machine, Windows Graphics Capture works correctly in OBS, but fails consistently in Codex.

System Information:

OS: Windows 10 Pro 22H2

GPU: NVIDIA GeForce RTX 4060

Application: Powered by Codex & OWL

Version: 26.1021.31345

Error Messages:

FrameArrived timed out: timed out waiting on channel
window capture timed out: timed out waiting on channel
no screenshot targets found for process:C: \Windows\System32 \notepad.exe
Troubleshooting Already Performed:

Disabled the Sunlogin (向日葵) virtual display driver.

Checked the NVIDIA overlay as a possible cause.

Tested window capture in OBS, which works correctly.

Issue Summary:

Windows Graphics Capture is functioning properly in OBS on the same computer, suggesting that the Windows capture functionality and GPU are operational.

However, Codex consistently fails to capture application windows, including Notepad.

What steps can reproduce the bug?

Issue Summary:

Windows Graphics Capture is functioning properly in OBS on the same computer, suggesting that the Windows capture functionality and GPU are operational.

However, Codex consistently fails to capture application windows, including Notepad.

What is the expected behavior?

Request for Assistance:

Could you help investigate why Windows Graphics Capture works in OBS but times out in Codex?

Is this a known compatibility issue, a capture initialization problem, or a potential bug in the Codex/OWL window capture implementation?

Please provide possible solutions or additional diagnostic steps.

Additional information

No response

Activity

  1. added
    bug
    on Oct 26, 2026
  2. added
    app
    windows-os
    on Oct 26, 2026
  3. Sc10Wolf commented on Oct 27, 2026

    @Sc10Wolf

    I’m also experiencing this capture failure, and it persists after updating.

    Current versions:

    • Desktop app: 26.1023.50603, build 22391, production channel.
    • Computer Use plugin: 26.1023.50603.
    • App update checker reports up to date.

    Verified results:

    • Computer Use discovers Calculator and Notepad windows.
    • A text-only Notepad request (include_screenshot: false, include_text: true) succeeds and returns its editor, menus, status bar, and focused field.
    • A screenshot-only request against that same Notepad window times out.
    • Calculator capture also fails, including after refreshing discovery and reacquiring its window.
    • OBS successfully captures Notepad using the Windows Graphics Capture method on this PC.

    After the update, Calculator capture returned:

    FrameArrived timed out: timed out waiting on channel
    

    After refreshing the window selection and retrying:

    window capture timed out: timed out waiting on channel
    

    Could you provide a supported diagnostic to distinguish frame delivery, callback processing, and image conversion failures, or identify a release containing a fix?

  4. AAAX-WQ commented on Nov 2, 2026

    @AAAX-WQ

    Bug report (ready to post on github.com/openai/codex — comment on #57149 or #55077)

    Window capture deadlocks deterministically on Win10 19045 while standalone WGC works — full repro without the UI

    Environment

    • Windows 10 Pro 19045 (build 19045, all patches), RTX 5060, driver 32.0.16.1742, single 1920×1080@59Hz physical console session
    • Codex desktop MSIX OpenAI.Codex_26.1027.3384.0_x64__2p2nqsd0c76g0, app-server client version 26.1027.30824
    • CUA runtime bundle cua-node-0.0.35-20261022235854-0e24579b4572-windows-x64.zip, @oai/sky 0.7.13, node 24.22.1-cua.1

    Symptoms

    • Every window screenshot fails: FrameArrived timed out: timed out waiting on channel (targets: Minecraft, MC Studio, WorkBuddy, Codex's own window — 100% failure)
    • UI tree reading (list_windows, accessibility) and input work fine; only frame capture deadlocks
    • Failures reproduce identically over both transports (stdio-launched helper and the live named-pipe service)

    What we ruled out on the machine (all tested, not guessed)

    1. Standalone WGC works perfectly on the same machine, same session, same windows — windows-capture 1.5.0 (Rust/WGC): monitor capture first FrameArrived in 0.20 s; window capture of the exact windows Codex fails on (WorkBuddy, ZCode) first frame in 0.22–0.25 s. GDI, DXGI desktop duplication also fine. Event log clean.
    2. Not fast-startup/HAGS (real reboot with both toggled didn't change anything), not remote session (SESSIONNAME=Console), not MuMu virtual display leftovers (removed), not PixPin or antivirus (killed), not sandbox service (stopped).
    3. Fresh helper instance deadlocks identically — spawning codex-computer-use.exe --parent-pid <pid> (stdio NDJSON transport) and calling get_window_state with x-oai-cua-approved-app meta reproduces the exact same FrameArrived timed out in ~2 s, first try, every try. So this is not stale helper state; it's deterministic in sky 0.7.13's Swift WGC implementation on this OS build.
    4. get_screenshot (desktop-level) is "unsupported method" on the Windows helper — window capture is the only frame path, and it's the one that deadlocks.

    Suggested direction: the Swift helper's FrameArrived handler appears to synchronously wait on the SoftwareBitmap conversion inside the capture-callback context (reported deadlock stack: GraphicsCapture.dll → WaitForSingleObjectEx / RTMediaFrame.dll → d3d11.dll → RtlEnterCriticalSection). Standalone WGC clients that return from FrameArrived immediately and marshal the bitmap conversion elsewhere don't deadlock on the same machine.

    Repro: happy to provide the standalone client (node script speaking the helper's NDJSON protocol, ~80 lines) and the standalone WGC test (Python/windows-capture) if useful.


    Note: windows-capture 1.5.0 (not only 2.0) also calls IsBorderRequired when draw_border=False — if anyone tested WGC on Win10 19045 with that flag and concluded "WGC is broken system-wide", that was a false negative. Use draw_border=None.

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

    appbugcomputer-usewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions