Skip to content

Linux engine: Chrome's context menus on a window can stop opening after a Copy times out under load #376

Open

Description

@SSFSKIM

Stated limit, M4 (ruling 684). Related: ticket A (Copy timeout at load 2), candidate 3's menu confirmation.

After one context-menu Copy timed out (clipboard update timed out, COPY_WAIT 2 s), every later Copy on that Chrome window refused with context menu did not open; no clipboard action was sent. It happened in both cases where the timeout came:

  • L3a on candidate 2 at twice the load: 27 reads plus the write cell's 31;
  • reproduction r2 (--trials 60): trial 60 and all 5 audit runs.

Every answer was honest: nothing was sent and the clipboard was unchanged. Every other Chrome cell kept working on that window.

  • What the probes saw in the stuck state: no menu node anywhere in Chrome's application subtree, none showing, and no leftover child. The DOM contextmenu event's counts are known only for the forced run.
  • What isn't known: the mechanism. A forced stall (SIGSTOP of the run's own Chrome browser process right after the Copy item's DoAction returned, for 2.6 s) gives the timeout. But Chrome then serves the Copy late (the clipboard changed about 0.3 s after resume) and recovers: the next reads were ok, with no menu, popup or grab left. So a plain browser stall is not the cause. The real state comes only from load, and rarely: 1 in 4, 1 in 60, 0 in 35 and 0 in 150 reads.
  • A blind Escape is unsafe. With no menu up, an Escape sent to the window reaches the page (the page's listener counted esc 0 → 1).
  • Stated limit: "after Chrome fails one Copy under load, later context-menu copies on that window may refuse honestly; Chrome's menus on that window may stay unresponsive".
  • Candidate 3 ships, whatever happens to this ticket:
    • the showContextMenu callers confirm that a menu appeared, using copy.rs's detection, or answer menuUnconfirmed (ruling 687; task 78);
    • the timed-out refusal says plainly that Chrome's menus on the window may stay unresponsive, and that the Copy may still complete later.
  • Evidence: m4/gate/c2-f9692898/out/L3a.release-gate/; …/c2-f9692898/l3a-repro/ (r1, r2, esc1, frz1, the scripts).
  • Next step to close it: reproduce the real state deterministically (L3a's own cell order on one Chrome, or a renderer-side stall instead of the browser's), then probe Chrome's MenuController state, then design a recovery that is proven safe for the page.

Activity

  1. added
    status:ready-for-implementer
    priority:P2
    spike
    on Nov 14, 2026
  2. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    Landed with #171 M4, PR #380 (78b4959, linux-engine-v0.4.0).

    Candidate 3 (c55c8e0), L3a at twice the load: every Chrome cell 30 consecutive with 0 misses, clipboard_read and clipboard_write 30/30, audits clean. No Copy timed out, so neither the stuck state nor the new timed-out sentence came up in the gate. Task 78's live GTK 3 forced-stall test and its Chrome freeze proof cover those (c3-menu-proof/). Both ship as stated limits.

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

    priority:P2spikestatus:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions