Skip to content

[macOS][Codex Desktop] Large multi-frame HEIC preview and oversized task output crash CrBrowserMain #42975

Open

Description

@Michael-IT001

Codex Desktop repeatedly crashes on large task content and multi-frame HEIC preview

Summary

Codex Desktop for macOS repeatedly terminates with EXC_BREAKPOINT / SIGTRAP on the Chromium main thread (CrBrowserMain, com.apple.main-thread) in two content-loading scenarios:

  1. Opening a 5120×2880, 96-frame HEIC file (about 205 MiB) in the built-in Codex file preview. Reopening the same task can restore the preview and enter a crash loop.
  2. Loading a very large historical tool result (approximately 144,000 tokens before truncation) into the task UI. This caused four additional crashes without opening the HEIC preview.

The issue reproduced across an automatic app update and generated 14 Apple crash reports between 2026-09-05 16:07 and 17:19 (UTC+08:00).

Environment

  • Product: Codex Desktop for macOS (com.openai.codex)
  • Affected app versions: 26.901.22334 (build 7746) and 26.901.41600 (build 7982)
  • Subscription: Not disclosed (not relevant to this local renderer crash)
  • Operating system: macOS 13.7.8 (build 22H730)
  • Platform string: Darwin 22.6.0 x86_64 i386
  • Architecture: Intel x86_64
  • Hardware model: iMac18,3
  • Processor: 3.5 GHz quad-core Intel Core i5
  • Memory: 16 GB

Reproduction path A: large multi-frame image preview

  1. Open a Codex task.
  2. Open a local 5120×2880, 96-frame HEIC file of about 205 MiB in the built-in Codex preview panel.
  3. The app terminates within seconds.
  4. Reopen the same task. If the preview state is restored, the app can terminate again before the task becomes usable.

Reproduction path B: very large task/tool output

  1. Open a normal Codex task.
  2. Retrieve an older task whose returned history/tool output is extremely large (approximately 144,000 tokens before client-side truncation).
  3. The desktop UI terminates while rendering or ingesting the result.

Expected behavior

  • Reject or safely downsample unsupported large/multi-frame previews without terminating the app.
  • Do not persist and automatically restore a preview state that previously terminated the app.
  • Truncate, paginate, or virtualize oversized task/tool output before sending it to the renderer.
  • Allow the affected task to reopen in a safe mode that skips the problematic preview/output item.

Actual behavior

  • The entire Codex process terminates.
  • Apple diagnostics consistently report EXC_BREAKPOINT, signal SIGTRAP, faulting thread 0, thread name CrBrowserMain, queue com.apple.main-thread.
  • The same crash class reproduced before and after the app updated from build 7746 to build 7982.

Frequency and impact

  • 14 crashes were recorded during the reported period.
  • The crash loop can make the original task inaccessible even though the underlying task work is simple.
  • Work can be continued only by avoiding the affected task, avoiding built-in preview for the HEIC, and preventing oversized historical output from entering the UI.

Privacy note

This report intentionally excludes account details, email addresses, usernames, local user paths, file contents, task/conversation text, serial numbers, hardware UUIDs, vendor device identifiers, crash incident IDs, credentials, tokens, cookies, network configuration, and raw .ips files. No sensitive attachment is included.

Activity

  1. added
    bug
    app
    on Sep 5, 2026
  2. Michael-IT001 commented on Sep 5, 2026

    @Michael-IT001
    Author

    While this shares the preview-restore crash loop symptom with #42730, this report provides distinct evidence and reproduction paths:

    1. HEIC Decoding Failure: Specifically documents crashes triggered by large multi-frame HEIC files (205MB, 5K 96-frame macOS dynamic wallpaper) in the built-in preview panel.
    2. Oversized Tool Output: Documents a secondary crash trigger when retrieving historical tool results with very large payloads (~144k tokens).
    3. Diagnostics: Includes specific macOS crash reports and reproduction data across builds 7746 and 7982.

    Keeping this open to provide the team with additional reproduction context and test cases.

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

    appbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions