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

Bug #2061153 reported by Jennifer Wilcox
56
This bug affects 15 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!!

Revision history for this message
Elad Shoham (xlads) wrote :

bug still consists.
bare metal win 11 to bare metal ubuntu 24.04 with 46.0-0ubuntu5.1 and nvidia 550.67.

Connect from win to ubuntu via RDP. initially lets you choose the user and enter a password. right after that, there is a grey screen, the mouse is in the "loading" icon, and then it is fine. if you hover over the accessibility or calendar, you see something, but the main body of the share is grey and unusable.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Elad, can you provide the log of

 journalctl -b0 /usr/bin/gnome-shell

?

Revision history for this message
bublyapplejuice2 (bublyapplejuice2) wrote :
Download full text (4.1 KiB)

Jun 29 19:39:07 ubuntu-KVM gnome-shell[3554]: Running GNOME Shell (using mutter 46.0) as a Wayland display server
Jun 29 19:39:07 ubuntu-KVM gnome-shell[3554]: No seat assigned, running headlessly
Jun 29 19:39:07 ubuntu-KVM gnome-shell[3554]: Failed to open gpu '/dev/dri/card1': Couldn't find render node device for '/dev/dri/card1'
Jun 29 19:39:07 ubuntu-KVM gnome-shell[3554]: Failed to make thread 'KMS thread' realtime scheduled: Operation not permitted
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Added device '/dev/dri/card0' (nvidia-drm) using no mode setting.
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Created gbm renderer for '/dev/dri/card0'
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: GPU /dev/dri/card0 selected as primary
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Obtained a high priority EGL context
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Obtained a high priority EGL context
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Using public X11 display :1024, (using :1025 for managed services)
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Using Wayland display name 'wayland-0'
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Will monitor session c1
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Extension <email address hidden> already installed in /<email address hidden>. /usr/share/gnome-shell/extensions/ding@rastersoft>
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Extension <email address hidden> already installed in /<email address hidden>. /usr/share/gnome-shell/extensions>
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Extension <email address hidden> already installed in /<email address hidden>. /usr/share/gnome-shell/ex>
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Extension <email address hidden> already installed in /<email address hidden>. /usr/share/gnome-shell/extensions/ubuntu-do>
Jun 29 19:39:08 ubuntu-KVM org.gnome.Shell.desktop[3554]: Window manager warning: Failed to parse saved session file: Failed to open file “/var/lib/gdm3/.config/mutter/sessions/1044f635a610a3b44d171970>
Jun 29 19:39:08 ubuntu-KVM gnome-shell[3554]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Jun 29 19:39:09 ubuntu-KVM gnome-shell[3554]: Added virtual monitor Meta-0
Jun 29 19:39:10 ubuntu-KVM gnome-shell[3554]: no authentication service is enabled, using password authentication
Jun 29 19:39:10 ubuntu-KVM gnome-shell[3554]: Registering session with GDM
Jun 29 19:39:35 ubuntu-KVM gnome-shell[3554]: no authentication service is enabled, using password authentication
Jun 29 19:39:35 ubuntu-KVM gnome-shell[3554]: JS ERROR: Error: Unknown item {"id":"ubuntu-wayland"}
                                              _resolveItem@resource:///org/gnome/shell/gdm/authMenuButton.js:183:19
                                              setActiveItem@resource:///org/gnome/shell/gdm/authMenuButton.js:194:...

Read more...

Revision history for this message
bublyapplejuice2 (bublyapplejuice2) wrote :

Hi Marco, this is the log for journalctl -b0 /usr/bin/gnome-shell. I am getting the same bug as Elan, bare metal win 11 to bare metal ubuntu 24.04 with 46.0-0ubuntu5.1, but updated to nvidia 550.90. Thanks.

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.