Delay when presenting “EndSessionDialog” after pressing Logout

This issue started on my desktop a few months ago when i was using Silverblue 32. I think the issue started after i was messing with lots of extensions, but this assumption may be inaccurate. Issue is still occurring after rebasing to 33. It hasn’t bothered me too much since this PC is a desktop, but wanted to find the root of problem:

There is a 30 second delay between when I select “Logout” from the Gnome “Power off / Log out” menu, and when “EndSessionDialog” menu appears.

The same 30 second delay occurs with $ gnome-session-quit --logout.

Issue occurs on both users i have on system.

Steps to reproduce

  1. Use a "logout"method.
  2. Wait 30 seconds
  3. Done; the EndSessionDialog will appear now.

I see that the following record appears in journalctl when the endSessionDialog finally appears:

Oct 30 15:57:13 barnpc gnome-shell[258919]: Failed to get update info from PackageKit: Timeout was reached

The following is the “dbus-monitor” output. Line 1 is clicking Logout. Line 141 is when the EndSessionDialog pop-up appeared:

method call time=1604093029.953311 sender=:1.23 -> destination=:1.21 serial=1344 path=/org/gnome/SessionManager; interface=org.gnome.SessionManager; member=Logout
   uint32 0
signal time=1604093029.954399 sender=:1.21 -> destination=(null destination) serial=1032 path=/org/gnome/SessionManager/Client19; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.954551 sender=:1.21 -> destination=(null destination) serial=1033 path=/org/gnome/SessionManager/Client21; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.954658 sender=:1.21 -> destination=(null destination) serial=1034 path=/org/gnome/SessionManager/Client2; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.955271 sender=:1.21 -> destination=(null destination) serial=1035 path=/org/gnome/SessionManager/Client11; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.955341 sender=:1.21 -> destination=(null destination) serial=1036 path=/org/gnome/SessionManager/Client5; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.955470 sender=:1.21 -> destination=(null destination) serial=1037 path=/org/gnome/SessionManager/Client14; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
method call time=1604093029.955793 sender=:1.63 -> destination=:1.21 serial=100 path=/org/gnome/SessionManager/Client21; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.955905 sender=:1.61 -> destination=:1.21 serial=55 path=/org/gnome/SessionManager/Client19; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
signal time=1604093029.956066 sender=:1.21 -> destination=(null destination) serial=1038 path=/org/gnome/SessionManager/Client8; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.956110 sender=:1.21 -> destination=(null destination) serial=1039 path=/org/gnome/SessionManager/Client17; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
method call time=1604093029.956138 sender=:1.22 -> destination=org.gnome.SessionManager serial=27 path=/org/gnome/SessionManager/Client2; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
signal time=1604093029.956187 sender=:1.21 -> destination=(null destination) serial=1040 path=/org/gnome/SessionManager/Client22; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.957141 sender=:1.21 -> destination=(null destination) serial=1041 path=/org/gnome/SessionManager/Client12; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.957297 sender=:1.21 -> destination=(null destination) serial=1042 path=/org/gnome/SessionManager/Client6; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
method call time=1604093029.957390 sender=:1.50 -> destination=:1.21 serial=30 path=/org/gnome/SessionManager/Client11; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.957440 sender=:1.46 -> destination=:1.21 serial=31 path=/org/gnome/SessionManager/Client5; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.957549 sender=:1.55 -> destination=:1.21 serial=43 path=/org/gnome/SessionManager/Client14; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.957666 sender=:1.48 -> destination=:1.21 serial=35 path=/org/gnome/SessionManager/Client8; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
signal time=1604093029.957708 sender=:1.21 -> destination=(null destination) serial=1043 path=/org/gnome/SessionManager/Client15; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.957740 sender=:1.21 -> destination=(null destination) serial=1044 path=/org/gnome/SessionManager/Client9; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
method call time=1604093029.957937 sender=:1.58 -> destination=:1.21 serial=35 path=/org/gnome/SessionManager/Client17; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
signal time=1604093029.957953 sender=:1.21 -> destination=(null destination) serial=1045 path=/org/gnome/SessionManager/Client18; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.958214 sender=:1.21 -> destination=(null destination) serial=1046 path=/org/gnome/SessionManager/Client20; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.958226 sender=:1.21 -> destination=(null destination) serial=1047 path=/org/gnome/SessionManager/Client23; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.958234 sender=:1.21 -> destination=(null destination) serial=1048 path=/org/gnome/SessionManager/Client1; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.958241 sender=:1.21 -> destination=(null destination) serial=1049 path=/org/gnome/SessionManager/Client10; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
method call time=1604093029.958247 sender=:1.52 -> destination=:1.21 serial=30 path=/org/gnome/SessionManager/Client9; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958276 sender=:1.47 -> destination=:1.21 serial=38 path=/org/gnome/SessionManager/Client6; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958303 sender=:1.53 -> destination=:1.21 serial=37 path=/org/gnome/SessionManager/Client12; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
signal time=1604093029.958330 sender=:1.21 -> destination=(null destination) serial=1050 path=/org/gnome/SessionManager/Client13; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.958338 sender=:1.21 -> destination=(null destination) serial=1051 path=/org/gnome/SessionManager/Client7; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
signal time=1604093029.958351 sender=:1.21 -> destination=(null destination) serial=1052 path=/org/gnome/SessionManager/Client16; interface=org.gnome.SessionManager.ClientPrivate; member=QueryEndSession
   uint32 0
method return time=1604093029.958358 sender=:1.21 -> destination=:1.23 serial=1053 reply_serial=1344
method return time=1604093029.958364 sender=:1.21 -> destination=:1.22 serial=1054 reply_serial=27
method call time=1604093029.958428 sender=:1.51 -> destination=:1.21 serial=107 path=/org/gnome/SessionManager/Client15; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958480 sender=:1.72 -> destination=org.freedesktop.DBus serial=126 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender=':1.21',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',path='/org/gnome/SessionManager/Client22',arg0='org.gnome.SessionManager.ClientPrivate'"
method return time=1604093029.958551 sender=org.freedesktop.DBus -> destination=:1.72 serial=4294967295 reply_serial=126
method call time=1604093029.958563 sender=:1.72 -> destination=org.freedesktop.DBus serial=127 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender=':1.21',interface='org.gnome.SessionManager.ClientPrivate',path='/org/gnome/SessionManager/Client22'"
method return time=1604093029.958570 sender=org.freedesktop.DBus -> destination=:1.72 serial=4294967295 reply_serial=127
method call time=1604093029.958573 sender=:1.72 -> destination=org.freedesktop.DBus serial=128 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0=':1.21'"
method return time=1604093029.958579 sender=org.freedesktop.DBus -> destination=:1.72 serial=4294967295 reply_serial=128
method call time=1604093029.958583 sender=:1.72 -> destination=:1.21 serial=129 path=/org/gnome/SessionManager/Client22; interface=org.freedesktop.DBus.Properties; member=GetAll
   string "org.gnome.SessionManager.ClientPrivate"
method call time=1604093029.958646 sender=:1.54 -> destination=:1.21 serial=29 path=/org/gnome/SessionManager/Client10; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958678 sender=:1.8 -> destination=:1.21 serial=77 path=/org/gnome/SessionManager/Client1; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958689 sender=:1.76 -> destination=:1.21 serial=254 path=/org/gnome/SessionManager/Client23; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958698 sender=:1.62 -> destination=:1.21 serial=36 path=/org/gnome/SessionManager/Client20; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958707 sender=:1.60 -> destination=:1.21 serial=70 path=/org/gnome/SessionManager/Client18; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method return time=1604093029.958718 sender=:1.21 -> destination=:1.72 serial=1055 reply_serial=129
   array [
   ]
method call time=1604093029.958728 sender=:1.57 -> destination=:1.21 serial=34 path=/org/gnome/SessionManager/Client13; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958738 sender=:1.30 -> destination=:1.21 serial=29 path=/org/gnome/SessionManager/Client7; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958762 sender=:1.56 -> destination=:1.21 serial=35 path=/org/gnome/SessionManager/Client16; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method call time=1604093029.958792 sender=:1.72 -> destination=:1.21 serial=130 path=/org/gnome/SessionManager/Client22; interface=org.gnome.SessionManager.ClientPrivate; member=EndSessionResponse
   boolean true
   string ""
method return time=1604093029.958997 sender=:1.21 -> destination=:1.30 serial=1056 reply_serial=29
method return time=1604093029.959103 sender=:1.21 -> destination=:1.72 serial=1057 reply_serial=130
method call time=1604093029.959306 sender=:1.72 -> destination=org.freedesktop.DBus serial=131 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0=':1.21'"
method return time=1604093029.959316 sender=org.freedesktop.DBus -> destination=:1.72 serial=4294967295 reply_serial=131
method call time=1604093029.959320 sender=:1.72 -> destination=org.freedesktop.DBus serial=132 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender=':1.21',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',path='/org/gnome/SessionManager/Client22',arg0='org.gnome.SessionManager.ClientPrivate'"
method return time=1604093029.959324 sender=org.freedesktop.DBus -> destination=:1.72 serial=4294967295 reply_serial=132
method call time=1604093029.959327 sender=:1.72 -> destination=org.freedesktop.DBus serial=133 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender=':1.21',interface='org.gnome.SessionManager.ClientPrivate',path='/org/gnome/SessionManager/Client22'"
method return time=1604093029.959332 sender=org.freedesktop.DBus -> destination=:1.72 serial=4294967295 reply_serial=133
method call time=1604093029.961024 sender=:1.21 -> destination=:1.23 serial=1058 path=/org/gnome/SessionManager/EndSessionDialog; interface=org.gnome.SessionManager.EndSessionDialog; member=Open
   uint32 0
   uint32 0
   uint32 60
   array [
   ]
method return time=1604093054.993641 sender=:1.23 -> destination=:1.21 serial=1345 reply_serial=1058
signal time=1604093057.162438 sender=:1.23 -> destination=(null destination) serial=1346 path=/org/gnome/SessionManager/EndSessionDialog; interface=org.gnome.SessionManager.EndSessionDialog; member=Canceled
signal time=1604093057.163328 sender=:1.21 -> destination=(null destination) serial=1059 path=/org/gnome/SessionManager/Client19; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.163490 sender=:1.21 -> destination=(null destination) serial=1060 path=/org/gnome/SessionManager/Client21; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.163837 sender=:1.21 -> destination=(null destination) serial=1061 path=/org/gnome/SessionManager/Client2; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
method call time=1604093057.164499 sender=:1.249 -> destination=org.gtk.Notifications serial=88 path=/org/gtk/Notifications; interface=org.gtk.Notifications; member=RemoveNotification
   string "org.gnome.Terminal"
   string "6d1b694c-f3be-4a01-814b-be24f378e8c5"
signal time=1604093057.164611 sender=:1.21 -> destination=(null destination) serial=1062 path=/org/gnome/SessionManager/Client11; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.164673 sender=:1.21 -> destination=(null destination) serial=1063 path=/org/gnome/SessionManager/Client5; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.164726 sender=:1.21 -> destination=(null destination) serial=1064 path=/org/gnome/SessionManager/Client14; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.164783 sender=:1.21 -> destination=(null destination) serial=1065 path=/org/gnome/SessionManager/Client8; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.164838 sender=:1.21 -> destination=(null destination) serial=1066 path=/org/gnome/SessionManager/Client17; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.164895 sender=:1.21 -> destination=(null destination) serial=1067 path=/org/gnome/SessionManager/Client22; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.164951 sender=:1.21 -> destination=(null destination) serial=1068 path=/org/gnome/SessionManager/Client12; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.165139 sender=:1.21 -> destination=(null destination) serial=1069 path=/org/gnome/SessionManager/Client6; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.165211 sender=:1.21 -> destination=(null destination) serial=1070 path=/org/gnome/SessionManager/Client15; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.165267 sender=:1.21 -> destination=(null destination) serial=1071 path=/org/gnome/SessionManager/Client9; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166006 sender=:1.21 -> destination=(null destination) serial=1072 path=/org/gnome/SessionManager/Client18; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166077 sender=:1.21 -> destination=(null destination) serial=1073 path=/org/gnome/SessionManager/Client20; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166110 sender=:1.21 -> destination=(null destination) serial=1074 path=/org/gnome/SessionManager/Client23; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166140 sender=:1.21 -> destination=(null destination) serial=1075 path=/org/gnome/SessionManager/Client1; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166164 sender=:1.21 -> destination=(null destination) serial=1076 path=/org/gnome/SessionManager/Client10; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166187 sender=:1.21 -> destination=(null destination) serial=1077 path=/org/gnome/SessionManager/Client13; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166612 sender=:1.23 -> destination=(null destination) serial=1347 path=/org/gnome/SessionManager/EndSessionDialog; interface=org.gnome.SessionManager.EndSessionDialog; member=Closed
signal time=1604093057.166735 sender=:1.21 -> destination=(null destination) serial=1078 path=/org/gnome/SessionManager/Client7; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166744 sender=:1.21 -> destination=(null destination) serial=1079 path=/org/gnome/SessionManager/Client16; interface=org.gnome.SessionManager.ClientPrivate; member=CancelEndSession
signal time=1604093057.166751 sender=:1.21 -> destination=(null destination) serial=1080 path=/org/gnome/SessionManager; interface=org.gnome.SessionManager; member=SessionRunning
method call time=1604093058.600421 sender=:1.23 -> destination=org.freedesktop.DBus serial=1348 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.gnome.SessionManager',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',path='/org/gnome/SessionManager/Inhibitor3',arg0='org.gnome.SessionManager.Inhibitor'"
method return time=1604093058.600487 sender=org.freedesktop.DBus -> destination=:1.23 serial=4294967295 reply_serial=1348
method call time=1604093058.600495 sender=:1.23 -> destination=org.freedesktop.DBus serial=1349 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.gnome.SessionManager',interface='org.gnome.SessionManager.Inhibitor',path='/org/gnome/SessionManager/Inhibitor3'"
method return time=1604093058.600504 sender=org.freedesktop.DBus -> destination=:1.23 serial=4294967295 reply_serial=1349
method call time=1604093060.572640 sender=:1.249 -> destination=org.gtk.Notifications serial=89 path=/org/gtk/Notifications; interface=org.gtk.Notifications; member=RemoveNotification
   string "org.gnome.Terminal"
   string "6d1b694c-f3be-4a01-814b-be24f378e8c5"
^C