Skip to content

macOS: repeated CrBrowserMain SIGTRAP crashes with ~7,800 inactive-window resume messages/sec #52091

Open

Description

@stern017465-spec

What version of the Codex App are you using?

26.1002.52244 (build 13536). Bundle identifier: com.openai.codex.
The built-in update check returned up_to_date when checked.

What subscription do you have?

Not disclosed; account information is intentionally omitted from this public report.

What platform is your computer?

macOS 26.6.2 (25G83), Apple Silicon / arm64.
Codex Framework / Chromium: 155.0.8059.27.

What issue are you seeing?

Three unexpected desktop-app exits were observed in one day, each after approximately 3 hours 51–54 minutes of process uptime.

All three native crash reports show:

  • EXC_BREAKPOINT / SIGTRAP, termination signal code 5.
  • Faulting thread: CrBrowserMain / com.apple.main-thread.
  • First frame at Codex Framework image offset 6130508.
  • The second and third reports have identical image/offset sequences across all 43 frames of the faulting thread.

Immediately before the latest crash, retained main-process logs contained 130,055 occurrences over 16.651 seconds (approximately 7,811 per second) of this single event:

[electron-message-handler] maybe_resume_skipped_inactive_hotkey_window

The repeated entries reported this generic window state:

documentVisibilityState=visible
rendererWindowAppearance=primary
rendererWindowFocused=false
rendererWindowVisible=false

After relaunch, the same event was observed again at approximately 7,772 occurrences per second. Relaunch alone did not stop the repeated processing.

What steps can reproduce the bug?

This was observed repeatedly during extended desktop coding sessions, but a minimal deterministic reproduction and the initial action that triggers the loop have not been isolated.

The hidden/unfocused window state above is taken from the logs; it is not a claim that a particular window action is the trigger. The crash signatures and log rates come from local read-only diagnostics, not from a synthetic test.

What is the expected behavior?

An inactive-window resume check should not generate thousands of identical events per second, and the app should remain stable during extended coding sessions.

Please investigate repeated resume scheduling/state notifications and the matching native crash signature.

Additional information

Related: #51888 reports the same event and window-state pattern on Linux in the same desktop version. This report adds a macOS native-crash signature and substantially higher measured repetition rate. The relationship between the two reports is not yet established.

Important uncertainty: the log storm and repeated native crashes are directly observed, but causation between them is not established. The reports do not explicitly identify OOM, heap exhaustion, XML parsing failure, or user project code as the cause. Large offsets from nearby exported symbols should not be treated as precise symbolication.

Privacy: this issue body contains only sanitized technical observations. No account/email information, conversation content or identifiers, local usernames or file paths, credentials, crash-report UUIDs, raw diagnostic attachments, or user project information are included. If more evidence is needed, please specify the minimum redacted fields required.

Activity

  1. added
    bug
    app
    on Oct 8, 2026
  2. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. Suiwan commented on Oct 8, 2026

    @Suiwan

    Could maintainers check the template serial-number rollover boundary in the V8 version bundled with this build?

    The public V8 source provides a concrete boundary to inspect:

    A 29-bit field cannot represent 2^29. If the bundled version uses a larger Smi maximum for rollover, repeated template creation could reach the field's encoding limit before the counter rolls over. Please verify the bundled implementation and whether this boundary corresponds to the native trap reported here.

    The repeated resume processing in this issue, #51888, and #52093 may make such a boundary reachable. Those reports also suggest checking the mismatch between the resume-needed predicate and window stream-ownership guards, and handling not-ready / inactive-window without an immediate retry loop.

    This is a hypothesis based on public source and the existing public reports. It does not establish the crash's cause, the rate of template creation, or the initial trigger.

  4. jcastro commented on Oct 8, 2026

    @jcastro

    Additional macOS evidence: sustained outbound traffic accompanying the inactive-window resume log storm

    This adds a network-impact observation to the issue, not a confirmed diagnosis of the crash or of the encrypted request payload.

    Environment

    • ChatGPT desktop / Codex app: 26.1002.52244, build 13536, bundle com.openai.codex.
    • Codex Framework / Chromium: 155.0.8059.27.
    • Mac Studio, Apple Silicon (arm64).
    • macOS 27.0.1, build 26A434.
    • Investigation: 2026-10-08, read-only local process, network and log inspection.

    Direct observations

    1. A hidden/unfocused renderer repeatedly emits:
    [electron-message-handler] maybe_resume_skipped_inactive_hotkey_window
    conversationId=<REDACTED>
    documentVisibilityState=visible
    rendererWebContentsId=2
    rendererWindowAppearance=primary
    rendererWindowFocused=false
    rendererWindowVisible=false
    
    1. A sample of 10,000 retained log lines, from 2026-10-08T18:12:30.625Z to 2026-10-08T18:12:34.115Z, contained 9,882 occurrences of this event: approximately 2,831 events/second. Logs were rotating through 10 MB files. The log sample is not a measurement of total incident duration.

    2. At approximately 12 minutes of process uptime, the affected renderer used 132.1% CPU and the main app used 35.2% CPU. This is a point-in-time sample, not a benchmark or causal proof.

    3. macOS nettop attributed sustained outbound traffic to the app's Chromium network-service utility (network.mojom.NetworkService). Almost all observed outbound growth came from one TCP/TLS connection to 104.18.37.228:443.

    4. Consecutive five-second samples for that connection:

    Sample Cumulative bytes received Cumulative bytes sent
    1 4,092,765 214,901,250
    2 4,124,204 216,575,881

    This is 1,674,631 bytes sent in five seconds, approximately 335 kB/s or 2.68 Mbps. Earlier samples showed a similar sustained rate. If sustained for an hour this would be approximately 1.2 GB/hour; that is an extrapolation, not an observed hourly total.

    Why telemetry is suspected, but not proven

    • At inspection time, chat.openai.com resolved to 104.18.37.228 and 172.64.150.28.
    • The installed app bundle contains the telemetry-intake URL https://chat.openai.com/ces/v1/telemetry/intake, including a logging transport which forwards /api/v2/logs requests.
    • The combination of the log storm and sustained outbound traffic suggests excessive diagnostic-log/telemetry submission. However, TLS was not decrypted, the request path was not captured, and Cloudflare IPs may be shared. The exact transmitted payload and causality are therefore NOT established.
    • No conclusion is made that project files or private conversation contents were being uploaded.

    Router cross-check and its limitations

    A UniFi read-only client-counter inspection showed approximately 360.0 GB received by the network from the Mac, with a current rate near 309 kB/s. The corresponding opposite-direction counter was approximately 292.6 GB. These are whole-client cumulative counters, not per-process or per-domain statistics; they can include LAN traffic and traffic from other apps. They must NOT be attributed wholesale to ChatGPT. The controller's legacy client DPI endpoint returned an empty result, so no reliable router-side historical per-application GB total was available.

    Reproduction and expected behavior

    Observed in an existing installation during ordinary app use. A clean-install reproduction and initial trigger have not been isolated. No app restart, heartbeat pause, process termination or settings change was performed during this investigation.

    Expected: an inactive renderer should not generate thousands of identical resume messages per second, and diagnostic transport should have effective sampling/rate limits so a UI loop cannot create sustained bandwidth consumption.

    Please investigate the resume scheduling loop and whether its events are forwarded without adequate sampling, throttling or deduplication. Related reports: #51888, #52093 and #52185. No SIGTRAP crash was verified in this particular observation.

    Privacy: this report is intentionally sanitized. It contains no credentials, account identifiers, conversation IDs, local usernames, private paths, MAC addresses, private LAN addresses, raw session transcripts or project content. Investigation was AI-assisted.

    Follow-up: pausing the matching heartbeat quiesced the loop without restarting

    The conversation identifier in the repeated event matched an old heartbeat still marked ACTIVE, configured to run every two minutes. It was paused through the supported app automation tool; the app and network-service PIDs remained unchanged. The task was preserved, not deleted, and no unrelated automation was changed.

    • Affected renderer CPU fell from 138.2% immediately before the intervention to 0.0% in two follow-up snapshots.
    • Main app CPU fell from 34.2% to 6.8%, then 0.1%.
    • Newly observed log entries no longer showed the repeated resume event. The final rotated main log stopped rapidly growing.
    • Outbound traffic initially continued, then subsided. A later 15-second sample of the same connection increased from 336,190,754 to 336,195,817 bytes sent: only 5,063 bytes in 15 seconds (approximately 338 bytes/s), versus approximately 335,000 bytes/s before the pause. This is a reduction of about 99.9% for the measured connection. The full network service increased by 10,802 bytes in those 15 seconds.

    This is a short before/after observation, not a long-term guarantee. The heartbeat was not re-enabled for an on/off/on test, to avoid recreating the problem. The initial residual upload could be queued logs draining, but its exact payload remains unverified. A downgrade or restart was not needed to stop the observed storm.

  5. wangyieleven commented on Oct 8, 2026

    @wangyieleven

    Independent macOS crash report — identical native crash signature

    I am reporting an additional independent occurrence matching this issue. The observations below are transcribed from a macOS native crash report; no preceding application debug logs were collected.

    Environment

    • Desktop app: ChatGPT / Codex, 26.1002.52244 (build 13536), bundle ID com.openai.codex
    • Bundled Codex Framework / Chromium: 155.0.8059.27
    • macOS: 27.0.1 (build 26A434)
    • Hardware: Apple Silicon MacBook Pro (M5 Pro), ARM64/native, 48 GB memory

    Crash

    • Occurred: 2026-10-09 01:26 (+08:00)
    • Process launched: 2026-10-08 21:52 (+08:00), approximately 3 hours 33 minutes before the crash
    • Thread: Thread 0 / CrBrowserMain, com.apple.main-thread
    • Exception: EXC_BREAKPOINT (SIGTRAP)
    • Termination: SIGNAL, code 5 (Trace/BPT trap: 5)
    • Faulting binary: Codex Framework
    • Top image offsets on the crashed thread:
      frame 0  Codex Framework + 6130508
      frame 1  Codex Framework + 6124120
      frame 2  Codex Framework + 2700644
      

    Match with #52091

    The app build, framework build, CrBrowserMain thread, SIGTRAP exception, and first-frame image offset 6130508 all match the original issue exactly. This supports the same fatal code path being reached on a second macOS 27 device (the original report was on macOS 26.6.2).

    What is / is not established

    • The desktop app has exited unexpectedly on multiple occasions; this is one captured native crash report.
    • This report alone does not demonstrate the maybe_resume_skipped_inactive_hotkey_window log storm, an OOM, an XML parse failure, a memory leak, or a precise triggering UI action.
    • Please check whether the matching code location is shared by the app's window/task-resume path, and whether a fixed build is available.

    Privacy: Report is intentionally redacted/abridged. No local username, account details, conversation/project content, crash reporter keys, incident UUIDs, or raw crash-report attachments have been included.

  6. samhf22 commented on Oct 9, 2026

    @samhf22

    Additional local evidence: five matching crashes and an unavailable heartbeat target

    This is an independent occurrence matching #52091, with a local heartbeat association matching reports in #51888. I am adding evidence here rather than opening another duplicate.

    Environment

    • Desktop version 26.1002.52244, build 13536, bundle com.openai.codex.
    • macOS 26.6.2 (25G83), Apple Silicon / ARM64.
    • Codex Framework 155.0.8059.27; binary UUID 4c4c4407-5555-3144-a13b-42e4f5644f06.
    • The configured updater returned up_to_date during this investigation.

    Five native crashes on October 8, 2026

    All five reports show EXC_BREAKPOINT / SIGTRAP, signal code 5, on CrBrowserMain / com.apple.main-thread, with first frame Codex Framework + 6130508.

    Four reports have identical complete faulting-thread image/offset sequences. The fourth reaches the same first-frame offset through a slightly different sequence (6130508, 2699048, 19208040 instead of 6130508, 6124120, 2700644, 19208040). This is not a claim that the partially symbolicated names identify the exact failing function.

    Immediately preceding each crash, the retained main logs are dominated by maybe_resume_skipped_inactive_hotkey_window for the same conversation and hidden renderer:

    Crash Local time (UTC−06:00) Process uptime Repeated events Retained span (s) Events/s
    1 00:11:57 4h 10m 125,541 16.771 7,485.6
    2 05:06:26 3h 55m 119,592 15.673 7,630.4
    3 11:50:55 4h 9m 135,418 18.051 7,502.0
    4 15:51:08 4h 0m 148,391 19.885 7,462.5
    5 20:18:28 4h 1m 140,707 19.014 7,400.2

    These are final retained log segments, not whole process lifetimes. Files rotate around 10 MiB. Earlier context is overwritten by the flood. The same event flood was observed again after relaunch.

    Sanitized window state:

    conversationId=<THREAD>
    documentVisibilityState=visible
    hostId=local
    rendererWebContentsId=2
    rendererWindowAppearance=primary
    rendererWindowFocused=false
    rendererWindowId=2
    rendererWindowVisible=false
    routePath=/index.html
    

    Matching heartbeat evidence

    • Both the automation TOML and the app's automation database mark a heartbeat ACTIVE, scheduled every five minutes.
    • Its target_thread_id exactly matches the conversation in the repeated resume events.
    • Read-only lookup finds no matching row in the local state_5.sqlite threads table. This does not prove the thread was deleted or is absent on other hosts.
    • Retained application logs explicitly report:
    [automations] Heartbeat automation skipped: thread missing
    automationId=<AUTOMATION> blockReason=thread_missing
    intervalMs=300000 scheduleKind=interval targetThreadId=<THREAD>
    

    There were 1,335 matching warnings in the retained October 7 UTC log directory and 117 in October 8 UTC logs. These are warning counts, not scheduled-run counts. A current-session warning was also observed, but was rotated out before the later aggregate scan.

    Integration cross-check and limits

    A separately running local messaging integration was investigated. Its persisted linked-task, background-session, and setup-task IDs do not match the affected thread. Four crashes had no recorded integration events within ±60 seconds; the fifth had only four low-level receive-frame diagnostics. Its desktop connection refresh timer runs every five seconds. No integration-off comparison was performed, so indirect involvement is not conclusively excluded.

    No heartbeat pause, process suspension, app patch, cache reset, or settings change was performed. The association between the heartbeat, resume flood, and crashes is strong but a causal intervention has not been tested on this installation. No OOM or V8 counter-overflow diagnosis is asserted.

    I saw the contributor update in #51888 that a fix has merged and will be released soon. Please confirm whether that fix also covers this macOS crash signature and identify the first desktop build containing it. The current installation is not yet offered an update.

    Only sanitized technical evidence is included; private conversation/automation identifiers, project details, account information, local paths, and raw crash reports are omitted. Investigation was AI-assisted.

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

    appbugperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions