No login prompt or user list on login screen [JS ERROR: TypeError: this._button is undefined]

Bug #2061153 reported by Jennifer Wilcox
44
This bug affects 10 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Fix Released
Critical
Marco Trevisan (Treviño)

Bug Description

I installed the 24.04 beta ISO (the version from 2024-04-12) on a HyperV VM. Running through the installer itself seemed fine, but after rebooting GDM seemed to start but doesn't offer any users to login with. Not even an "Other" button. GDM itself has definitely started, as the current time is visible at the top of the screen, and the network and accessibility icons are visible at the top right of the screen. But the center of the screen is blank.

If I manually mount the drive and examine the journal logs, I see a "JS Error" from gnome-shell that seems likely to be related:

Apr 12 14:47:29 jwilcox-u24b gnome-shell[1735]: Starting Authd!!!
Apr 12 14:47:29 jwilcox-u24b gnome-shell[1735]: JS ERROR: TypeError: this._button is undefined
                                                _createSessionMenuButton@resource:///org/gnome/shell/gdm/loginDialog.js:663:13
                                                _init@resource:///org/gnome/shell/gdm/loginDialog.js:589:14
                                                LoginDialog@resource:///org/gnome/shell/gdm/loginDialog.js:487:4
                                                _ensureUnlockDialog@resource:///org/gnome/shell/ui/screenShield.js:472:28
                                                showDialog@resource:///org/gnome/shell/ui/screenShield.js:404:14
                                                _initializeUI/<@resource:///org/gnome/shell/ui/main.js:317:26
                                                _prepareStartupAnimation@resource:///org/gnome/shell/ui/layout.js:764:18
                                                _loadBackground/signalId</id<@resource:///org/gnome/shell/ui/layout.js:693:26
                                                @resource:///org/gnome/shell/ui/init.js:21:20
Apr 12 14:47:29 jwilcox-u24b gnome-shell[1735]: Registering session with GDM

Revision history for this message
Jennifer Wilcox (nat1192) wrote :

I found another way to reproduce this same issue. I setup a second system on a QEMU/KVM/libvirt hypervisor, and it worked fine on the built-in libvirt spice client. But if I try and enable Remote Login via GNOME (not Desktop Sharing, but full Remote Login), I get the same GDM behavior and the same stacktrace in the journal.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. It seems an issue in the desktop components rather than due to the installer, reassigning

affects: ubuntu-desktop-provision → gnome-shell (Ubuntu)
Changed in gnome-shell (Ubuntu):
importance: Undecided → High
tags: added: noble rls-nn-incoming
Changed in gnome-shell (Ubuntu):
status: New → In Progress
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Marco probably knows this but the bug comes from loginDialog-Port-sessions-menu-over-to-AuthMenuButton.patch

originating from: https://salsa.debian.org/gnome-team/gnome-shell/-/commit/9c69176ab6e60c92173039d8c7e9054bbeab93c6

originating from: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3212

See also bug 2060893.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's not just Hyper-V. For some reason I get the same bug whenever I install the Nvidia 470 driver. And there's also bug 2061364.

summary: - No login prompt after installing in HyperV
+ No login prompt or user list on login screen [JS ERROR: TypeError:
+ this._button is undefined]
Changed in gnome-shell (Ubuntu):
importance: High → Critical
milestone: none → ubuntu-24.04
Changed in gnome-shell (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell - 46.0-0ubuntu5

---------------
gnome-shell (46.0-0ubuntu5) noble; urgency=medium

  [ Daniel van Vugt ]
  * Drop loginDialog-Create-footer-container.patch - it's buggy and still
    under active development (LP: #2060893)

  [ Marco Trevisan (Treviño) ]
  * debian/patches/ubuntu-authd: Hide the right button if there are no
    sessions to choose (LP: #2061153)
  * debian/patches/ubuntu-authd: Do not start an unavailable authentication
    service (LP: #2060575)
  * d/p/ubuntu-authd: Fix selection of multi-factor auth modes (related to
    lp:2060546)

 -- Marco Trevisan (Treviño) <email address hidden> Wed, 17 Apr 2024 07:45:42 +0200

Changed in gnome-shell (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Jennifer Wilcox (nat1192) wrote :

I'm not sure if there's any bug retest workflows to follow, but I can confirm this fixed the issue when using Gnome's remote connection. I will test HyperV later today.

Thanks Marco and Daniel!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.