Windows are slow to open shortly after login under X11 session

Bug #2042301 reported by Dimitrij Mijoski
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-535 (Ubuntu)
Confirmed
Undecided
Unassigned
xdg-desktop-portal (Ubuntu)
Confirmed
Undecided
Unassigned
xdg-desktop-portal-gnome (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Ubuntu 23.10 after I install the Nvidia driver v535 I get noticeable latency of about 10-15 seconds after I click on any application, be it Nautilus, Terminal, Firefox. The problem lasts for about one minute. More precise steps:

1. Install Nvidia drivers (using sudo ubuntu-drivers install)
2. Reboot
3. Login to X11 session (which becomes the default when Nvidia drivers are installed)
4. Quickly open Nautilus, Firefox and Terminal by clicking on their icons
5. The mouse cursor turns to circle. After 10-15 seconds, some window will appear

After about one minute opening any of these apps will open immediately, as expected. If I logout and login to Wayland the issue is not present. If I logout and login into X11 the issue can be reproduced, so it is not related to boot but to login. If I uninstall nvidia drivers the issue is gone.

It might be an issue with mutter or gnome-shell.

$ apt list nvidia-driver-535 mutter gnome-shell
Listing... Done
gnome-shell/mantic,now 45.0-1ubuntu2 amd64 [installed,automatic]
mutter/mantic,now 45.0-3ubuntu3 amd64 [installed,automatic]
nvidia-driver-535/mantic,now 535.113.01-0ubuntu3 amd64 [installed]

The following might be related. If I open the GUI app Logs I see the following error:
Failed to start xdg-desktop-portal.service - Portal service.

If I write the following command:

$ journalctl --user --unit=xdg-desktop-portal

I get:

Oct 31 18:19:20 my-pc-hostname systemd[39536]: Starting xdg-desktop-portal.service - Portal service...
Oct 31 18:20:10 my-pc-hostname xdg-desktop-por[44027]: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached
Oct 31 18:20:35 my-pc-hostname xdg-desktop-por[44027]: Failed to create file chooser proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.gnome: Timeout was reached
Oct 31 18:20:35 my-pc-hostname xdg-desktop-por[44027]: No skeleton to export
Oct 31 18:20:50 my-pc-hostname systemd[39536]: xdg-desktop-portal.service: start operation timed out. Terminating.
Oct 31 18:20:50 my-pc-hostname systemd[39536]: xdg-desktop-portal.service: Failed with result 'timeout'.
Oct 31 18:20:50 my-pc-hostname systemd[39536]: Failed to start xdg-desktop-portal.service - Portal service.
Oct 31 18:21:21 my-pc-hostname systemd[39536]: Starting xdg-desktop-portal.service - Portal service...
Oct 31 18:21:21 my-pc-hostname systemd[39536]: Started xdg-desktop-portal.service - Portal service.
Oct 31 18:23:46 my-pc-hostname systemd[39536]: Stopping xdg-desktop-portal.service - Portal service...
Oct 31 18:23:46 my-pc-hostname systemd[39536]: Stopped xdg-desktop-portal.service - Portal service.

So during one login and logout the service fails to start at first, but succeeds to start later.

description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: New → Confirmed
Changed in xdg-desktop-portal (Ubuntu):
status: New → Confirmed
Changed in xdg-desktop-portal-gnome (Ubuntu):
status: New → Confirmed
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.