Ubuntu (gnome) freezes temporarily upon login

Bug #1730458 reported by Luis Alberto Pabón
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

I have noticed that gnome-shell CPU usage shoots up to over 100% for a few seconds shortly after logging in, completely freezing the shell for a good 10-20s.

This happens on a migrated Unity 7 > Ubuntu session as well as on a completely new Ubuntu session (eg a user just created to test this).

Ubuntu 17.10 (upgraded from 17.04), Ubuntu session (Wayland).

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-shell 3.26.1-0ubuntu5
ProcVersionSignature: Ubuntu 4.13.0-16.19-lowlatency 4.13.4
Uname: Linux 4.13.0-16-lowlatency x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
Date: Mon Nov 6 17:05:45 2017
DisplayManager: lightdm
GsettingsChanges:
 b'org.gnome.shell' b'favorite-apps' b"['/home/development/bin/firefox.desktop', 'org.gnome.Nautilus.desktop', 'jetbrains-phpstorm.desktop', 'code.desktop', 'postman.desktop', 'standard_notes.desktop']"
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
 b'org.gnome.desktop.interface' b'icon-theme' b"'ePapirus'"
 b'org.gnome.desktop.interface' b'gtk-theme' b"'DarkNumix'"
InstallationDate: Installed on 2016-03-13 (603 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160307)
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to artful on 2017-10-19 (17 days ago)

Revision history for this message
Luis Alberto Pabón (copong) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Changed in gnome-shell (Ubuntu):
importance: Low → Medium
Revision history for this message
RégisC (regis-caspar) wrote :

Hi Sebastien,

I think https://bugzilla.gnome.org/show_bug.cgi?id=706688 could be used as the upstream bug.

Regards

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

Your log shows an 11 second delay each time this happens:

Nov 06 13:57:46 hostname gnome-session-binary[3428]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login.
Nov 06 13:57:57 hostname unity-settings-[3399]: failed to turn the kbd backlight off: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.UPower.KbdBacklight' on object at path /org/freedesktop/UPower/KbdBacklight

and

Nov 06 15:38:07 hostname gnome-session-binary[3428]: WARNING: Could not get session path for session. Check that logind is properly installed and pam_systemd is getting used at login.
Nov 06 15:38:18 hostname unity-settings-[3399]: failed to turn the kbd backlight off: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.UPower.KbdBacklight' on object at path /org/freedesktop/UPower/KbdBacklight

Revision history for this message
RégisC (regis-caspar) wrote :

HI Da

Revision history for this message
RégisC (regis-caspar) wrote :

Hi Daniel,

Thanks for the analysis, can I do something by myself to prevent that delay?

Regards

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

I don't know how the KbdBackLight interface is meant to work. It seems to be defined in package 'upower'. And that error seems to be from code in unity-settings-daemon where it fails to change the keyboard backlight brightness, because something isn't implementing "SetBrightness". And even then, the error only seems to occur when unity-settings-daemon changes to GSD_POWER_IDLE_MODE_BLANK. So I wouldn't expect that to be related to logging in, probably.

Do you have a keyboard backlight at all? Or an external keyboard plugged in?

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

Actually, no it's not related. You say your problem is with gnome-shell logins and the above is about Unity7 only...

Please try:
 1. sudo apt install openssh-server
 2. Log in from a second machine via ssh, and run: journalctl -f
 3. On the original machine log in locally and reproduce the freeze.
 4. What does your journalctl output say after that? Can you paste it here?

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
RégisC (regis-caspar) wrote :

> Do you have a keyboard backlight at all? Or an external keyboard plugged in?

Yes my keyboard has some automatic backlight

> What does your journalctl output say after that? Can you paste it here?

Will attach the full output, I think the culprit is:

janv. 10 07:54:48 hephaistos gnome-session[2639]: gnome-session-binary[2639]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Erreur lors de l’appel de StartServiceByName pour org.gnome.ScreenSaver : Le délai d’attente est dépassé
janv. 10 07:54:48 hephaistos gnome-session-binary[2639]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Erreur lors de l’appel de StartServiceByName pour org.gnome.ScreenSaver : Le délai d’attente est dépassé
janv. 10 07:54:48 hephaistos gnome-screensav[2776]: Couldn't get presence status: The name org.gnome.SessionManager was not provided by any .service files
janv. 10 07:54:48 hephaistos dbus-daemon[2632]: Successfully activated service 'org.gnome.ScreenSaver'

Thanks for your help :)

Revision history for this message
RégisC (regis-caspar) wrote :

Full output of journactl, the freeze is between janv. 10 07:54:23 and janv. 10 07:54:48

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

OK, thanks. This looks like it:

janv. 10 07:54:48 hephaistos gnome-session[2639]: gnome-session-binary[2639]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Erreur lors de l’appel de StartServiceByName pour org.gnome.ScreenSaver : Le délai d’attente est dépassé
janv. 10 07:54:48 hephaistos gnome-session-binary[2639]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Erreur lors de l’appel de StartServiceByName pour org.gnome.ScreenSaver : Le délai d’attente est dépassé
janv. 10 07:54:48 hephaistos gnome-screensav[2776]: Couldn't get presence status: The name org.gnome.SessionManager was not provided by any .service files
janv. 10 07:54:48 hephaistos dbus-daemon[2632]: Successfully activated service 'org.gnome.ScreenSaver'

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

We can probably merge this with bug 1736011. Just wait and see what the reporter of that one says.

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

Alternatively, such freezes are often due to something crashing and the delay is your system writing a dump/crash file. Do you see any files in /var/crash ?

Revision history for this message
RégisC (regis-caspar) wrote :

No, there's nothing in /var/crash

I also found the bug you are talking about when searching for the error message. I added myself to the bug mail for 1736011. Thanks for your help Daniel :)

Revision history for this message
Rolf Leggewie (r0lf) wrote :

What are the other errors from #4 about if I may ask? I experience the exact same errors. Fortunately, I don't suffer from delays in login. FWIW, I also use unity7, on bionic.

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

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in gnome-shell (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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