Update: the noble upload is now 46.2-1ubuntu0.24.04.21 (it supersedes the
.20 described above) and carries three fixes:

- LP: #2089709 - stage: clear update_scheduled when a frame is discarded
  (the black screen at login).
- LP: #2013042 - clutter/paint-context: ignore the redraw clip when
  painting offscreen (lock-screen wallpaper turning black with a second
  monitor).
- LP: #2175469 - kms/cursor-manager: preserve sprite state when updating
  CRTC layouts (rotated pointer after displays wake on portrait monitors).

Why .21: .20 is already published in ppa:chris-bainbridge/sru, so
re-uploading different content under the same version would be rejected.

Contents: changelog + three series lines + the three DEP-3 patches; no
other changes. The debdiff is attached (46.2-1ubuntu0.24.04.19 -> .21).

Build: sbuild noble amd64, successful (6m44s). Lintian reports only the
pre-existing symbols-file and multi-arch warnings. The two added patches
apply to 46.2 with line offsets and compile; they touch paint-context and
the KMS cursor manager, not the stage/login path.

Verification:

- Login reproducer on .21: 3 of 3 first logins painted with the pointer storm 
running (the .20 run was 6/6 painted with
  the pointer storm; .18 was 4/6 black).
- LP: #2013042 and LP: #2175469 were verified on 50.1 and 51.0 in the same
  batch (see those bugs). The 46.2 code paths are identical and the same
  patches apply, but there is no noble hardware run for these two yet; a
  noble multi-head lock-screen check is the remaining leg.
- Regression sweep: the .21 package is installed in the noble VM; desktop,
  lock/unlock and multi-monitor behaviour are being exercised with the
  login runs above.

Component/rights: mutter's source is in main on noble (libmutter-*,
mutter-common and gir1.2-mutter are main binaries; the standalone mutter,
tests and dev binaries override to universe), so this needs a sponsor with
main/desktop upload rights.

The .21 source package is ready; the .20 PPA build remains for reporters who
want to test the login fix, but .21 supersedes it.


** Description changed:

  [ 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).
+ - mutter 46.2-1ubuntu0.24.04.21 (final upload, three patches): 3 of 3 first 
logins painted with the pointer storm running. The two added wallpaper/cursor 
patches do not touch the stage/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).
  
+ The .21 upload also carries two other fixes, each with its own SRU
+ template: LP: #2013042 (lock-screen wallpaper turning black when a
+ second monitor is plugged/unplugged) and LP: #2175469 (pointer movement
+ rotated after displays wake on portrait monitors). Both are small
+ independent DEP-3 patches; the login path is unchanged.
+ 
  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.
+ bainbridge/sru for early verification by reporters; the .21 source is
+ attached to the sponsor note below. Sponsor requested for noble.

** Patch added: "Debdiff mutter 46.2-1ubuntu0.24.04.19 -> 
46.2-1ubuntu0.24.04.21 (noble, three fixes)"
   
https://bugs.launchpad.net/bugs/2089709/+attachment/6022782/+files/mutter-noble-46.2-1ubuntu0.24.04.21.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

Reply via email to