SRU template for the noble task (mutter 46.2-1ubuntu0.24.04.20). This
follows the fix identified in comment 136 (upstream commit 24083e1e,
GNOME #3804) - see also comment 143 for why this and not the EACCES/MR
!5497 work.
[ Impact ]
On Ubuntu 24.04, logging in intermittently shows a black screen (or a
frozen last GDM frame) with only the mouse cursor; restarting gdm3
recovers. Moving the mouse during login makes the failure much more
likely. It affects X11 and Wayland sessions, local and remote (xrdp/RDP)
logins, and is independent of GPU driver; it cannot be worked around by
configuration. 30 direct subscribers, 1 duplicate. Affected users lose
their login session (the session never paints) and must restart gdm3,
which looks like a broken installation.
[ Test Plan ]
Reproducer (per comment 136): 24.04 KVM guest, X11 GNOME session under
xrdp (0.9.24 from the noble archive; comment 136 used 0.10); for each
trial boot the VM fresh, connect an RDP client (auto-login with
credentials), and generate continuous pointer motion (xdotool
mousemove_relative every 30 ms) from the moment the session's X server
appears until well after the desktop would be up. After ~45 s capture
the session's root window and classify painted/black by pixel variance
(black = uniform frame, stddev 0).
Results with this reproducer:
- mutter 46.2-1ubuntu0.24.04.18 (current noble-updates, unpatched): black
screen in 4 of 6 first logins after boot; 2 of 6 painted. This matches the 4/6
black rate reported in comment 136 exactly.
- mutter 46.2-1ubuntu0.24.04.20 (this SRU, otherwise identical setup): 6 of 6
first logins painted, all with the pointer storm running; additionally 2 of 2
logins with no pointer input at all painted normally (no regression in the
normal login path).
Independent confirmations of the same backported patch: comment 136
(author: 4/6 black before the fix, 6/6 painted after, 4 of them with
continuous mouse movement), comments 138 and 140 (independent rebuilds +
verification).
The screen remaining black is the exact reported symptom; the X cursor
keeps updating because it is drawn on a separate cursor plane.
[ Where problems could occur ]
The patch only changes handle_frame_clock_frame()'s early-discard path:
when a scheduled frame is discarded because the stage is not realized or
not mapped, clutter_stage_frame_discarded() now clears
ClutterStagePrivate.update_scheduled, which was previously left stuck
TRUE and made every later clutter_stage_schedule_update() a no-op while
input events were queued. The flag is cleared on exactly the path that
leaked it; no other behaviour changes. Worst case is one extra frame
being scheduled. There is no ABI or API change: the new function is
declared in a private header (clutter-stage-private.h) and is not an
exported symbol (in the shipped binary it is inlined by LTO; no new
dynamic symbol). If it regressed, the symptom would be a
missed/incorrect repaint around stage (re)mapping, which the test plan
above exercises (stage maps during every login).
[ Other Info ]
Upstream fix: commit 24083e1e5851a13b9d307d538d84f42091a7b220 ("stage:
Clear update_scheduled field when update discarded", MR !4152),
backported upstream to the 47 branch in MR !4153 and shipped in mutter
47.3 and 48.0+. The noble backport is byte-identical to the upstream
source hunks; upstream's new test case is omitted because the 46.2 test
harness differs (noted in the DEP-3 header). Noble is the only supported
series that needs this: the update_scheduled optimisation was introduced
by 261f516af in mutter 45, so jammy (42) and focal (3.36) predate it;
24.10 and 25.04 are EOL; 25.04 and newer already ship the fix.
Note this SRU does not include the EACCES/DRM-mastership work discussed
in comments 142-143 and MR !5497 - that is a separate robustness
improvement and not the cause of the symptoms described here (see
comment 143).
A test build of 46.2-1ubuntu0.24.04.20 is available in ppa:chris-
bainbridge/sru for early verification by reporters. Sponsor requested
for noble.
** Attachment added: "mutter-noble-sru-2089709.debdiff"
https://bugs.launchpad.net/bugs/2089709/+attachment/6020699/+files/mutter-noble-sru-2089709.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089709
Title:
Ubuntu 24.04 sometimes logs in to a black screen if the mouse is moved
during login
To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/2089709/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs