Skip to content

Linux engine: drag-and-drop confirmation races left as stated limits (person motion at release, stalled drop target) #365

Open

Description

@SSFSKIM

M4's T17 confirms an Electron drop by the drag cursor at the release. The accept must be identified by its own Xcursor image, shown over an XdndAware top-level under the real pointer, and put up after the drag entered that window, with the server ordering the entry and the cursor change. A Chrome drop is confirmed by Chrome's _NET_ACTIVE_WINDOW request. On the final engine (83dd7e5), 0 of 1,619 counted Electron drags answered ok without a drop, at three loads. The design session's convergence line (2026-11-12) leaves the races below as stated limits of the M4 PR, collected here.

  1. A person's pointer motion during the release.
  2. A drop target that stalls before its first XdndStatus.
    • Chromium ends such a drag with no drop and leaves its cursor unchanged.
    • The rule covers the plain case: an accept put up before the entry does not confirm. The hung-target cell answered unconfirmed 180/180.
    • The open path is Chromium lagging its own events. An accepting status from the window being left can reach Chromium just before it handles the motion out of that window. The cursor change then lands after the server's entry motion into the next window, and reads as put up after the entry. It passes only if that next window sends no status of its own by the release.
    • It was not seen in 180 hung-target drags. The exact signal is the target's XdndStatus, which another process cannot read (only RECORD can).
  3. Restacks during a drag.
    • The window a motion was in is read from one stacking snapshot after the release, so a restack during the drag is judged against the final stacking.
    • Seen in none of the counted sittings.

Leads:

Evidence: docs/evidence/2026-10-28-own-linux-engine/m4/drag-handle/fix3/README.md. The spec's Decision Log entry "T17 (#250): drag_handle as built, and Electron's drop confirmation" (2026-11-12) has the details.

Related: #250, #364.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 12, 2026
  2. added a commit that references this issue on Nov 12, 2026
  3. SSFSKIM commented on Nov 12, 2026

    @SSFSKIM
    OwnerAuthor

    A fourth race of the same class, from M4's whole-branch review (2026-11-12): the desktop route's Chrome confirmation looks up the window under the path's end before the drag, not at the release. It is wrong only if a person moves the pointer off the end point before the release, so it joins race 1 (a person's motion during the release) as a stated limit.

  4. added a commit that references this issue on Nov 12, 2026
  5. SSFSKIM commented on Nov 12, 2026

    @SSFSKIM
    OwnerAuthor

    Measured rate for race 2 (a drop target that stalls after an accept elsewhere), from M4's T18 gate work (2026-11-12): 1 false ok in 173 cold handle drags at the gate's window load, about 0.6% (T17 wave 3: 0/60; a dedicated count on a release-built 0.4.0 engine, ddb6202: 0 of 111 counted, 9 more excluded as unverifiable because they ended over an Electron child window; the gate pilot on cc18a6f: 1 of 2). Across three loads in T17's wave 3: 0 in 180. Caveat: review fixes between the pilot's engine and the dedicated count touched handle.rs and pointer.rs (the expired-handle record, the live root size and the foreground route), not the cursor rule; the counts cannot prove the pilot's hit was this race rather than something those fixes changed. In the gate, the hung-sink 'slow' cell is judged as this declared race (a finding with counts per load); a false ok in any ordinary cell stays a hard failure.

  6. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

    Update from M4's release gate (2026-11-13/14): V5 on :0 found Chrome drag false successes at the gate's window load. Cause: Chromium's X11 CoalescePendingMotionEvents (ui/base/x/x11_util.cc) moves queued core MotionNotify into last_event without counting them, so when the browser thread is busy the first queued motion is dispatched and the rest of a SendEvent path is discarded (real XI2 input is unaffected). Held route fixed in M4 (0f18528): with no take by the path's end, the engine re-sends the final point every <=12 ms until the take or the hold's end; prefreeze-150 went 0/30 -> 30/30 landed. Residuals added to this ticket (stalled-app class): (a) held route: a browser that reads again later than about 220 ms after the press still loses the path and answers ok (sweep: 150/200/215 ms stalls land; 230/260/300 lose). (b) guarded route (Chrome raised, not activated; no hold): a lost path answers ok, 20/20 at prefreeze-150; a renderer-late dragstart after button-up, refused by Chrome, answers ok, 20/20 at prefreeze-30 and -40. A _NET_WM_PING catch-up check was measured and rejected: it reads the browser's X loop, not the renderer, so it can't make (b) honest. An upstream Chromium report is drafted, pending the owner's OK.

  7. SSFSKIM commented on Nov 14, 2026

    @SSFSKIM
    OwnerAuthor

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

    M4's release gate (candidate 2's records, standing for candidate 3): the hung sink answered ok with no drop and nothing pending on 0 of 60 drags at idle (H1), 0 of 60 at the gate's window load (H2) and 0 of 60 at twice the load (L4a). It is judged as this ticket's declared race. Candidate 1's V5 false successes are fixed in candidate 2 (the hold's refresh), with 0 false ok in 63 drop samples on :0. The residuals in the comment above 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

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions