Locking and unlocking the screen is slow and stuttery

Bug #1832812 reported by Artyom Pozharov
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Fix Released
Medium
Daniel van Vugt
gnome-shell-extension-desktop-icons (Ubuntu)
Confirmed
Medium
Daniel van Vugt
gnome-shell-extension-ubuntu-dock (Ubuntu)
Confirmed
Medium
Daniel van Vugt

Bug Description

Details in my video: https://photos.app.goo.gl/x45Razdc2d3TPqCF8

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: gdm3 3.32.0-1ubuntu1
ProcVersionSignature: Ubuntu 5.0.0-16.17-generic 5.0.8
Uname: Linux 5.0.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Jun 14 10:10:38 2019
InstallationDate: Installed on 2019-06-13 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190606)
SourcePackage: gdm3
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.gdm3.custom.conf: 2019-06-13T15:35:30.513049

Revision history for this message
Artyom Pozharov (artyom-pozharov) wrote :
Revision history for this message
Artyom Pozharov (artyom-pozharov) wrote :

Device: HP 250 G6 Notebook, Intel Celeron N3350, integrated video card, 4 GB RAM DDR3, 128 GB SSD Samsung.

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

Can you confirm you are not using any gnome-shell extensions?

Changed in gdm3 (Ubuntu):
status: New → Incomplete
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, does the bug still occur if you disable this?

AutomaticLoginEnable=true

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

Also, does the bug still occur if you close Firefox before locking the screen?

If not then this may be related to bug 1832816.

summary: - Ubuntu 19.10 (alpha) lockscreen freezes
+ Locking and unlocking the screen is slow and stuttery
tags: added: performance
Revision history for this message
Artyom Pozharov (artyom-pozharov) wrote : Re: [Bug 1832812] Re: Ubuntu 19.10 (alpha) lockscreen freezes

I don't use any Gnome Extensions. It's clear system after installation.
If I switch button "Auto login" I don't see any changes with bug.

пт, 14 июн. 2019 г., 11:20 Daniel van Vugt <email address hidden>:

> Also, does the bug still occur if you disable this?
>
> AutomaticLoginEnable=true
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1832812
>
> Title:
> Ubuntu 19.10 (alpha) lockscreen freezes
>
> Status in gdm3 package in Ubuntu:
> Incomplete
> Status in gnome-shell package in Ubuntu:
> Incomplete
>
> Bug description:
> Details in my video: https://photos.app.goo.gl/x45Razdc2d3TPqCF8
>
> ProblemType: Bug
> DistroRelease: Ubuntu 19.10
> Package: gdm3 3.32.0-1ubuntu1
> ProcVersionSignature: Ubuntu 5.0.0-16.17-generic 5.0.8
> Uname: Linux 5.0.0-16-generic x86_64
> ApportVersion: 2.20.11-0ubuntu3
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> Date: Fri Jun 14 10:10:38 2019
> InstallationDate: Installed on 2019-06-13 (0 days ago)
> InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190606)
> SourcePackage: gdm3
> UpgradeStatus: No upgrade log present (probably fresh install)
> mtime.conffile..etc.gdm3.custom.conf: 2019-06-13T15:35:30.513049
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1832812/+subscriptions
>

Revision history for this message
Artyom Pozharov (artyom-pozharov) wrote : Re: [Bug 1832812] Re: Locking and unlocking the screen is slow and stuttery

It's not depend by Firefox

пт, 14 июн. 2019 г., 11:40 Daniel van Vugt <email address hidden>:

> Also, does the bug still occur if you close Firefox before locking the
> screen?
>
> If not then this may be related to bug 1832816.
>
> ** Summary changed:
>
> - Ubuntu 19.10 (alpha) lockscreen freezes
> + Locking and unlocking the screen is slow and stuttery
>
> ** Tags added: performance
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1832812
>
> Title:
> Locking and unlocking the screen is slow and stuttery
>
> Status in gdm3 package in Ubuntu:
> Incomplete
> Status in gnome-shell package in Ubuntu:
> Incomplete
>
> Bug description:
> Details in my video: https://photos.app.goo.gl/x45Razdc2d3TPqCF8
>
> ProblemType: Bug
> DistroRelease: Ubuntu 19.10
> Package: gdm3 3.32.0-1ubuntu1
> ProcVersionSignature: Ubuntu 5.0.0-16.17-generic 5.0.8
> Uname: Linux 5.0.0-16-generic x86_64
> ApportVersion: 2.20.11-0ubuntu3
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> Date: Fri Jun 14 10:10:38 2019
> InstallationDate: Installed on 2019-06-13 (0 days ago)
> InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190606)
> SourcePackage: gdm3
> UpgradeStatus: No upgrade log present (probably fresh install)
> mtime.conffile..etc.gdm3.custom.conf: 2019-06-13T15:35:30.513049
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1832812/+subscriptions
>

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

Are you able to make another video without Firefox running?

Changed in gdm3 (Ubuntu):
status: Incomplete → New
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also, before locking the screen please open a Terminal window and run 'top' then take a screenshot of the window and attach it to this bug.

Changed in gdm3 (Ubuntu):
status: New → Incomplete
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Artyom Pozharov (artyom-pozharov) wrote :

Please, I shot this: https://photos.app.goo.gl/DHtcN9ZrHLVR8Ne98

пт, 14 июн. 2019 г. в 12:05, Daniel van Vugt <<email address hidden>
>:

> Also, before locking the screen please open a Terminal window and run
> 'top' then take a screenshot of the window and attach it to this bug.
>
> ** Changed in: gdm3 (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: gnome-shell (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1832812
>
> Title:
> Locking and unlocking the screen is slow and stuttery
>
> Status in gdm3 package in Ubuntu:
> Incomplete
> Status in gnome-shell package in Ubuntu:
> Incomplete
>
> Bug description:
> Details in my video: https://photos.app.goo.gl/x45Razdc2d3TPqCF8
>
> ProblemType: Bug
> DistroRelease: Ubuntu 19.10
> Package: gdm3 3.32.0-1ubuntu1
> ProcVersionSignature: Ubuntu 5.0.0-16.17-generic 5.0.8
> Uname: Linux 5.0.0-16-generic x86_64
> ApportVersion: 2.20.11-0ubuntu3
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> Date: Fri Jun 14 10:10:38 2019
> InstallationDate: Installed on 2019-06-13 (0 days ago)
> InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190606)
> SourcePackage: gdm3
> UpgradeStatus: No upgrade log present (probably fresh install)
> mtime.conffile..etc.gdm3.custom.conf: 2019-06-13T15:35:30.513049
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1832812/+subscriptions
>

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

Thanks. Since gnome-shell provides all the graphics (even the lock screen), this bug is now assigned to gnome-shell only.

Changed in gdm3 (Ubuntu):
status: Incomplete → New
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
no longer affects: gdm3 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Blacklaser (blacklaser) wrote :

This also affects me since at least 18.04, and it feels like it's gotten worse with 19.10. I'm not super proficient with linux, but happy to provide any information if it can help.

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

I suspect this might be the fix we need (coming in gnome-shell 3.36):
https://gitlab.gnome.org/GNOME/gnome-shell/commit/24e631ff

tags: added: fixed-in-3.35.4 fixed-upstream
Revision history for this message
Lonnie Lee Best (launchpad-startport) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

No, that is bug 1851067.

Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in gnome-shell (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Triaged → In Progress
tags: added: focal
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.8 KiB)

This bug was fixed in the package gnome-shell - 3.35.91-1ubuntu2

---------------
gnome-shell (3.35.91-1ubuntu2) focal; urgency=medium

  * control: Fix package for Yaru Breaks. It's called `yaru-theme-gnome-shell`
    and not `yaru-theme`
  * control: Bump Breaks on appindicator and desktop-icons.
    These have been updated for GNOME 3.36

gnome-shell (3.35.91-1ubuntu1) focal; urgency=medium

  * Merge with Debian. Remaining changes:
    + Replace gnome-backgrounds dep with ubuntu-wallpapers and Suggests
      gnome-themes-standard-data, gnome-backgrounds
    + Add some Recommends:
      - ubuntu-session (| gnome-session) to have the ubuntu session available
      - xserver-xorg-legacy
      - yaru-theme-gnome-shell for the default ubuntu theming
    + Update debian/gbp.conf with Ubuntu settings
    + gnome-shell-common.install: Install Ubuntu mode
    + gnome-shell-common.prerm: Remove deprecated ubuntu theme alternative
    + ubuntu/desktop_detect.patch:
      - add caching for desktop detection to avoid querying the current
        desktop env variable as iterate through the list each time. For the
        time of the Shell process, we can expect this env variable to stay
        stable.
    + ubuntu/smarter_alt_tab.patch:
      - quick alt-tab (without showing up the switcher) switch only between
        the last window of the last 2 applications to be focused instead of
        raising all windows of those apps.
    + ubuntu/lightdm-user-switching.patch:
      - Allow user switching when using LightDM.
    + ubuntu/lock_on_suspend.patch
      - Respect Ubuntu's lock-on-suspend setting.
    + ubuntu/background_login.patch
      - Change default background color as we modified the default GDM color
        for our ubuntu session.
    + ubuntu/gdm_alternatives.patch
      - Add support for GDM3 theme alternatives
    + optional-hot-corner.patch
      - enable patch proposed by upstream developer already in package (but
        not in series) to add a settings for optional hot corner activation.
    + main-show-an-error-message-on-gnome-shell-crash.patch,
      global-make-possible-to-set-debug-flags-dynamically.patch,
      main-increase-the-granularity-of-backtraces-in-SHELL_DEBU.patch,
      main-add-backtrace-crashes-all-and-backtrace-all.patch,
      sessionMode-add-support-for-debugFlags-parameter.patch:
      - Improve debug JS tracing for crash reports
    + st-scroll-view-Handle-the-case-where-scrollbars-are-NULL.patch:
      - Fix crash on theme changes
    + ubuntu/search-call-XUbuntuCancel-method-on-providers-when-no-dat.patch:
      - stop searches when requested from UI
    + magnifier-Show-cursor-when-magnifier-is-enabled-and-scale.patch:
      - Show monitor scaled cursor when magnifier is enabled
    + Break gnome-shell-extension-appindicator (<< 30)
    + Break gnome-shell-extension-desktop-icons (<< 19.01.3+git20190814)
    + Break gnome-shell-extension-ubuntu-dock (<< 67ubuntu20.04.1)
    + Break yaru-theme (<< 20.04.2)
  * debian/control:
    - Bump breaks on gnome-shell-extension-ubuntu-dock (<< 67ubuntu20.04.1)
    - Bump breaks on gnome-shell-extension-dashtodock (<< 67+git20200225-1)
    - Bump breaks on yaru-theme...

Read more...

Changed in gnome-shell (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I was wrong. gnome-shell 3.35 does not yet have sufficient fixes for this. If anything the performance is now worse with 3.35.

Changed in gnome-shell (Ubuntu):
status: Fix Released → Triaged
assignee: Marco Trevisan (Treviño) (3v1n0) → nobody
tags: removed: fixed-in-3.35.4 fixed-upstream
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears this problem is unique to Ubuntu. It doesn't happen in vanilla GNOME without extensions.

no longer affects: gnome-shell
Changed in gnome-shell (Ubuntu):
status: Triaged → Invalid
status: Invalid → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
status: New → Confirmed
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears in 20.04, both desktop-icons and ubuntu-dock are to blame. You can only solve the problem by removing both simultaneously. I guess they're both trying to redraw during the new unlock animation?

Changed in gnome-shell-extension-desktop-icons (Ubuntu):
importance: Undecided → Medium
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Probably related to bug 1872796.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in gnome-shell-extension-desktop-icons (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in gnome-shell (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Roger James (rogerjames99) wrote :

If you are experiencing this bug. Try the following.

if the directory "/usr/share/gnome-shell/extensions/desktop-icons@csoriano" rename it to something else. Then restart the desktop (logout then login).

Please report the results of this test back here.

I am trying to correlate information on the part this extension is playing in various desktop rendering glitches.

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

Instead of the above, try just running the 'Extensions' app and disabling 'Desktop Icons'.

Revision history for this message
dan the person (dantheperson) wrote :

A thousand thank yous.

Disabling 'desktop icons' from the extensions app fixes this for me.

Once disabled, even just the action of clicking on the toggle in the extensions app has the same effect, the desktop becomes unresponsive (though the mouse moves) for about 30 seconds, then finally the toggle redraws to show the extension is enabled.

Totally repeatable, with them enabled, unlock takes forever, with them disabled, unlock is instant.

This is 20.04
The 'Ubuntu Dock' extension is still enabled.

Revision history for this message
Hauke Wintjen (hwintjen) wrote :

Disabling 'desktop icons' from the extensions app did not work for me, but renaming the
folder /usr/share/gnome-shell/extensions/desktop-icons@csoriano did the trick.

The extension was already disabled. After folder renamed, login works quick again. Thanks

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.