** Summary changed:

- Windows are slow to open shortly after login under X11 session
+ Apps fail to connect to the portal shortly after login under X11 session 
(slow to open)

** Description changed:

  [SRU] 2.74: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2138629
  
  [ Impact ]
  
- Graphical Applications Nautilus, Firefox and Terminal experience startup
- delays.
+ Graphical Applications Nautilus, Firefox and Terminal experience startup 
delays.
+ When they finally start, they're not connected to the XDG Desktop Portal 
causing a variety of issues.
  
  [ Test Plan ]
  
  1. Reproduce with snapd deb < 2.74
  
-  - Install snapd 2.73 deb
+  - Install snapd 2.73 deb
  
-  - confirm /etc/systemd/user/snap.snapd-desktop-integration.snapd-
+  - confirm /etc/systemd/user/snap.snapd-desktop-integration.snapd-
  desktop-integration.service [Unit] does not contain graphical-
  session.target
  
-  - starting graphical applications Nautilus, Firefox etc directly after
+  - starting graphical applications Nautilus, Firefox etc directly after
  reboot results in noticable delay before window appears.
  
  2. Prove fixed with snapd deb 2.74
  
-  - confirm /etc/systemd/user/snap.snapd-desktop-integration.snapd-
+  - confirm /etc/systemd/user/snap.snapd-desktop-integration.snapd-
  desktop-integration.service [Unit] now contains graphical-session.target
  
-  - starting graphical applications Nautilus, Firefox etc directly after
+  - starting graphical applications Nautilus, Firefox etc directly after
  reboot shows window without delay as expected.
  
  This is also sufficiently covered by automated spread testing:
  
https://github.com/canonical/snapd/commit/db2dc0186710e02e882b74ac01b439682368f442#diff-22e07c9f7dbd7c18db35abfcf9f4ecb11fb2abd93b98e41c0d1e940349d5019e
  
  This test run against all targeted Ubuntu releases. Not required to
  manually verify for all releases.
  
  ---original---
  
  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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2042301

Title:
  Apps fail to connect to the portal shortly after login under X11
  session (slow to open)

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2042301/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to