When this issue happens, you won't be able to unlock your desktop session (VT works fine).
This happened twice today for me, one is after a suspend, one is just a screen lock. Not sure what is the trigger yet.
Syndrome:
On the login screen after typing the correct password, you will see a small circle keep spinning and that's it. I need to restart my computer to get it back to normal.
In the syslog this error message looks fishy:
Aug 8 10:44:57 Leggiero gnome-shell[2118]: g_array_unref: assertion 'array' failed
This is part of the syslog fetching from a VT after a GUI unlock attempt (session 24 is the desktop login attempt):
Aug 8 10:44:42 Leggiero systemd[1]: Started Session 24 of user sam.
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 226:0
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) AIGLX: Resuming AIGLX clients after VT switch
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) modeset(0): EDID vendor "AUO", prod id 4204
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) modeset(0): Printing DDC gathered Modelines:
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) modeset(0): Modeline "1366x768"x0.0 76.20 1366 1404 1426 1590 768 771 777 798 +hsync -vsync (47.9 kHz eP)
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) modeset(0): Modeline "1366x768"x0.0 76.20 1366 1404 1426 1988 768 771 777 798 +hsync -vsync (38.3 kHz e)
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:78
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event14 - Dell WMI hotkeys: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event14 - Dell WMI hotkeys: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:66
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event2 - Sleep Button: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event2 - Sleep Button: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:79
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event15 - Integrated_Webcam_HD: Integrate: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event15 - Integrated_Webcam_HD: Integrate: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:68
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event4 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event4 - AT Translated Set 2 keyboard: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:67
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event3 - Power Button: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event3 - Power Button: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:71
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event7 - AlpsPS/2 ALPS GlidePoint: is tagged by udev as: Touchpad
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event7 - AlpsPS/2 ALPS GlidePoint: device is a touchpad
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:72
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event8 - DELL Wireless hotkeys: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event8 - DELL Wireless hotkeys: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) libinput: PixArt Microsoft USB Optical Mouse: SetProperty on 286 called but device is disabled.
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: This driver cannot change properties on a disabled device
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:65
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event1 - Power Button: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event1 - Power Button: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) libinput: PixArt Microsoft USB Optical Mouse: SetProperty on 277 called but device is disabled.
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: This driver cannot change properties on a disabled device
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) libinput: PixArt Microsoft USB Optical Mouse: SetProperty on 291 called but device is disabled.
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: This driver cannot change properties on a disabled device
Aug 8 10:44:55 Leggiero gnome-shell[2118]: g_array_unref: assertion 'array' failed
Aug 8 10:44:55 Leggiero gnome-shell[2118]: g_array_unref: assertion 'array' failed
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) libinput: PixArt Microsoft USB Optical Mouse: SetProperty on 289 called but device is disabled.
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: This driver cannot change properties on a disabled device
Aug 8 10:44:55 Leggiero kernel: [62483.492900] rfkill: input handler disabled
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:70
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event6 - Video Bus: is tagged by udev as: Keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event6 - Video Bus: device is a keyboard
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got resume for 13:69
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event5 - PixArt Microsoft USB Optical Mouse: is tagged by udev as: Mouse
Aug 8 10:44:55 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event5 - PixArt Microsoft USB Optical Mouse: device is a pointer
Aug 8 10:44:57 Leggiero gnome-shell[2118]: g_array_unref: assertion 'array' failed
Aug 8 10:44:57 Leggiero gnome-shell[2118]: g_array_unref: assertion 'array' failed
Aug 8 10:44:58 Leggiero gdm-password]: pam_ecryptfs: pam_sm_authenticate: /home/sam is already mounted
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "32"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event3 - Power Button: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "67"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event6 - Video Bus: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "64"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event1 - Power Button: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "21"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event2 - Sleep Button: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "30"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event15 - Integrated_Webcam_HD: Integrate: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "56"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event14 - Dell WMI hotkeys: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "31"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event4 - AT Translated Set 2 keyboard: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "59"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event7 - AlpsPS/2 ALPS GlidePoint: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "62"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event8 - DELL Wireless hotkeys: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (**) Option "fd" "54"
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) event5 - PixArt Microsoft USB Optical Mouse: device removed
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) AIGLX: Suspending AIGLX clients for VT switch
Aug 8 10:45:02 Leggiero kernel: [62490.783696] rfkill: input handler enabled
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 226:0
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:78
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:66
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:79
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:68
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:67
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:71
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:72
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:65
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:70
Aug 8 10:45:02 Leggiero /usr/lib/gdm3/gdm-x-session[1977]: (II) systemd-logind: got pause for 13:69
The systemd-logind service seems ok (22 is the login attempt for desktop):
● systemd-logind.service - Login Service
Loaded: loaded (/lib/systemd/system/systemd-logind.service; static; vendor preset: enabled)
Active: active (running) since Mon 2018-08-06 10:49:11 CST; 1 day 23h ago
Docs: man:systemd-logind.service(8)
man:logind.conf(5)
https://www.freedesktop.org/wiki/Software/systemd/logind
https://www.freedesktop.org/wiki/Software/systemd/multiseat
Main PID: 918 (systemd-logind)
Status: "Processing requests..."
Tasks: 1 (limit: 4915)
CGroup: /system.slice/systemd-logind.service
└─918 /lib/systemd/systemd-logind
8月 06 10:49:10 Leggiero systemd-logind[918]: Watching system buttons on /dev/input/event0 (Lid Switch)
8月 06 10:49:10 Leggiero systemd-logind[918]: Watching system buttons on /dev/input/event2 (Sleep Button)
8月 06 10:49:11 Leggiero systemd-logind[918]: Watching system buttons on /dev/input/event4 (AT Translated Set 2 keyboard)
8月 06 10:49:11 Leggiero systemd[1]: Started Login Service.
8月 06 10:49:11 Leggiero systemd-logind[918]: New session c1 of user gdm.
8月 06 10:49:29 Leggiero systemd-logind[918]: New session 2 of user sam.
8月 06 19:39:04 Leggiero systemd-logind[918]: Delay lock is active (UID 1000/sam, PID 2118/gnome-shell) but inhibitor timeout is reached.
8月 07 10:55:49 Leggiero systemd-logind[918]: Operation 'sleep' finished.
8月 08 10:37:52 Leggiero systemd-logind[918]: Operation 'sleep' finished.
8月 08 10:39:22 Leggiero systemd-logind[918]: New session 22 of user sam.
In some attempts, there will be some Permission denied error message for gsd-color:
gsd-color[1384]: failed to set screen _ICC_PROFILE: Failed to open file “/home/sam/.local/share/icc/edid-9eb5c4e022e314fd8b3c62e228523bd6.icc”: Permission denied
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gdm3 3.28.2-0ubuntu1.3
ProcVersionSignature: Ubuntu 4.15.0-30.32-generic 4.15.18
Uname: Linux 4.15.0-30-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 8 14:05:28 2018
EcryptfsInUse: Yes
InstallationDate: Installed on 2017-07-12 (391 days ago)
InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: gdm3
UpgradeStatus: Upgraded to bionic on 2018-07-23 (15 days ago)
I think 13:69 is /dev/input/event5, which is your:
Aug 8 10:45:02 Leggiero /usr/lib/ gdm3/gdm- x-session[ 1977]: (II) event5 - PixArt Microsoft USB Optical Mouse: device removed
However I wouldn't think it's a problem with the mouse. More likely the kernel has detected a USB hub disconnect, which seemingly includes the keyboard:
Aug 8 10:45:02 Leggiero /usr/lib/ gdm3/gdm- x-session[ 1977]: (II) event4 - AT Translated Set 2 keyboard: device removed
Please try removing any external USB hubs/docks you are using and see if the problem persists. If it does persist then please include a full kernel log from running 'dmesg'.