Skip to content

Application failed to start correctly (Windows) #14153

Open

Description

@XiaodengziBoy

What version of the IDE extension are you using?

openai.chatgpt

What subscription do you have?

null

Which IDE are you using?

vscode

What platform is your computer?

No response

What issue are you seeing?

Image

What steps can reproduce the bug?

Error will be reported when operating the command.
Anti-virus software has no interception, and it is executed with the permission of super administrator.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    extension
    on Mar 10, 2026
  2. added
    bug
    on Mar 10, 2026
  3. github-actions commented on Mar 10, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. etraut-openai commented on Mar 10, 2026

    @etraut-openai
    Contributor

    English translation of dialog: "The application failed to start correctly (0xc0000022). Click OK to close the application."

  5. etraut-openai commented on Mar 10, 2026

    @etraut-openai
    Contributor

    I presume you're using the Codex IDE Extension? Which version? I presume you're running on Windows based on the screen shot and error code. Are you using WSL?

    Can you provide more specific repro steps?

  6. XiaodengziBoy commented on Mar 10, 2026

    @XiaodengziBoy
    Author

    我猜你用的是Codex IDE扩展?哪个版本?根据截图和错误代码,我猜你是在Windows上运行的。你用的是WSL吗?

    你能提供更具体的复刻步骤吗?

    Both the extension codex and codex applications of vscode have this problem.

  7. changed the title [-]vscode codex bug[/-] [+]Application failed to start correctly (Windows)[/+] on Mar 10, 2026
  8. added
    windows-os
    on Mar 10, 2026
  9. aptx4869zoe commented on Mar 11, 2026

    @aptx4869zoe

    I have the same problem when it use some commad like this: $ Get-ChildItem -Force

  10. magic-249 commented on Mar 12, 2026

    @magic-249

    是否开启了这个,为代理模式启用沙盒

    Image
  11. magic-249 commented on Mar 12, 2026

    @magic-249

    windows11,vscode1.111.0 (system setup),codex 26.304.20706同样的问题

  12. magic-249 commented on Mar 13, 2026

    @magic-249

    @XiaodengziBoy 你是否升级了powershell7

  13. XiaodengziBoy commented on Mar 17, 2026

    @XiaodengziBoy
    Author

    你是否升级了PowerShell7

    Image

    我发现就是开了沙盒模式或者默认权限会报错,操作不了命令。但是完全访问权限可以正常试用

  14. magic-249 commented on Mar 17, 2026

    @magic-249

    你是否升级了PowerShell7

    Image 我发现就是开了沙盒模式或者默认权限会报错,操作不了命令。但是完全访问权限可以正常试用

    我以为是我升级ps7导致的;
    我删除codex相关文件重新下载后可以运行,但是开沙盒就会重现问题

  15. meideng-liukaining commented on Mar 26, 2026

    @meideng-liukaining

    有解决吗?

  16. boooooommmmmm commented on Mar 27, 2026

    @boooooommmmmm

    尝试关闭沙盒模式? Try to turn off sandbox mode?
    codex --sandbox danger-full-access
    (也可以在 config.toml中永远关闭 sandbox_mode = "danger-full-access")

  17. nzwl2020 commented on Apr 18, 2026

    @nzwl2020

    有解决吗?

    You can give this solution a try.
    #14729 (comment)

  18. youxin666 commented on May 15, 2026

    @youxin666

    解决了!把这个问题贴过去给codex成功解决了!
    问题根因就是那两个 VC++ 运行库 DLL 缺少 Users:(RX) 权限。
    这是codex的回答

  19. FHF404 commented on May 19, 2026

    @FHF404

    【已解决】我这边遇到同样的 codex-command-runner.exe 报 0xc0000022 问题,确认不是杀毒软件、管理员权限或 PowerShell 本身的问题,runner 直接运行是正常的,但 Codex 在 Windows 的 elevated 沙箱模式下会用 CodexSandboxOffline 这个本地沙箱用户去启动 runner,这条路径在我机器上会失败,表现为 Windows 弹窗 codex-command-runner.exe Application Error 0xc0000022,Codex 里则是 windows sandbox: timed out after 15000ms connecting runner pipe-in;解决方法是编辑 %USERPROFILE%.codex\config.toml,把 [windows] 下面的 sandbox = "elevated" 改成 sandbox = "unelevated",然后完全重启 Codex / VS Code / Codex App,重启后普通命令就能正常执行了。这个方法不是关闭沙箱,而是把 Windows 沙箱后端从 elevated 换成 unelevated,避开会崩的 elevated command runner 路径。

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

    bugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions