** Description changed: - I recently upgraded from Ubuntu 22.04 to Ubuntu 24.04. Now whenever I - log in, sometimes I'll get a blank screen. It will only show the mouse - cursor as an X. + [ Impact ] - The problem seems to be intermittent. So far it's only happened to me - using X11. + 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. - My current workaround: + [ Test Plan ] - 1. Open another terminal (e.g. Ctrl+Alt+F6) - 2. Restart gdm3 (sudo systemctl restart gdm3) + 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). - This seems to be affecting many people, although I couldn't find an - existing bug: https://askubuntu.com/questions/1514757/issue-with- - ubuntu-24-04-black-screen-with-cursor-on-login + Results with this reproducer: - $ lsb_release -rd - No LSB modules are available. - Description: Ubuntu 24.04.1 LTS - Release: 24.04 + - 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). - $ apt-cache policy gdm3 - gdm3: - Installed: 46.0-2ubuntu1 - Candidate: 46.0-2ubuntu1 - Version table: - *** 46.0-2ubuntu1 500 - 500 http://ca.archive.ubuntu.com/ubuntu noble/main amd64 Packages - 100 /var/lib/dpkg/status + 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). - ProblemType: Bug - DistroRelease: Ubuntu 24.04 - Package: gdm3 46.0-2ubuntu1 - ProcVersionSignature: Ubuntu 6.8.0-48.48-generic 6.8.12 - Uname: Linux 6.8.0-48-generic x86_64 - NonfreeKernelModules: wl - ApportVersion: 2.28.1-0ubuntu3.1 - Architecture: amd64 - CasperMD5CheckResult: unknown - CurrentDesktop: ubuntu:GNOME - Date: Tue Nov 26 14:54:33 2024 - InstallationDate: Installed on 2020-04-24 (1677 days ago) - InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) - SourcePackage: gdm3 - UpgradeStatus: Upgraded to noble on 2024-11-15 (11 days ago) - modified.conffile..etc.default.apport: [modified] - modified.conffile..etc.init.d.apport: [modified] - mtime.conffile..etc.default.apport: 2020-05-04T10:55:44.853443 - mtime.conffile..etc.gdm3.custom.conf: 2022-09-08T08:54:17.642371 - mtime.conffile..etc.init.d.apport: 2024-07-22T10:59:07 + 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.
-- 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
