Bug 423371 - Non-KDE/Qt apps can delay logout for many seconds
Summary: Non-KDE/Qt apps can delay logout for many seconds
Status: RESOLVED DUPLICATE of bug 188476
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: 5.21.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-06-22 20:36 UTC by Lua
Modified: 2022-09-08 16:47 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Logging out with just one GTK app opened (1.18 MB, video/mp4)
2021-05-07 21:16 UTC, Lua
Details
Logging out with only Qt apps opened (839.44 KB, video/mp4)
2021-05-07 21:16 UTC, Lua
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lua 2020-06-22 20:36:15 UTC
SUMMARY


STEPS TO REPRODUCE
I haven't be able to reproduce. It seems to happen when a lot of Chrome/Chromium tabs are opened or possibly more than one program opened. The bug happens when logging out without closing the any window opened.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-06-23 18:47:34 UTC
This is just the apps blocking the reboot process by doing their own housekeeping.

*** This bug has been marked as a duplicate of bug 188476 ***
Comment 2 Lua 2020-06-23 19:41:00 UTC
But the bug also happens when I close all windows
Comment 3 Patrick Silva 2020-06-29 16:24:25 UTC
This problem began recently on my system, but I'm not exactly when, possibly after upgrade to Plasma 5.19. This is one more recent regression related to login/logout. :(

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Comment 4 Lua 2021-04-28 23:07:49 UTC
I still have this problem sometimes in 5.21.4 D:
Comment 5 Nate Graham 2021-04-29 14:35:10 UTC
This was fixed very recently in a newer version of Purpose (which is a framework, and not a part of Plasma. It was 5.80 or 5.81 IIRC.
Comment 6 Lua 2021-04-29 18:51:22 UTC
Great! Here I have Frameworks 5.80.
Comment 7 Nate Graham 2021-04-29 19:44:38 UTC
Oops I closed the wrong bug report. :(
Comment 8 Lua 2021-05-01 00:02:48 UTC
Understood.

Also, sometimes the desktop turns all black but some windows are still opened. I get an impression that this happens mostly with GTK apps, but I might be wrong.
Comment 9 Lua 2021-05-07 21:16:08 UTC
Created attachment 138227 [details]
Logging out with just one GTK app opened
Comment 10 Lua 2021-05-07 21:16:39 UTC
Created attachment 138228 [details]
Logging out with only Qt apps opened
Comment 11 Lua 2021-05-07 21:17:21 UTC
When some GTK app is opened, the logout process is even more slow.
Comment 12 Nate Graham 2021-05-10 14:45:00 UTC
I can confirm that. Not sure there's anything we can do from our side if non-KDE apps are the culprits though.
Comment 13 Lua 2021-05-18 00:32:23 UTC
Is weird because if I hit the close button inthe GTK app (in that black screen where there's only the GTK app window), the shutdown process flows normally.
Comment 14 Nate Graham 2021-05-18 19:15:31 UTC
Right, the GTK app is somehow not responding whickly enough to the quit request.

I don't know if there's anything we can do here, or if it's purely a bug in those apps or in GTK itself.
Comment 15 Lua 2021-06-06 19:06:54 UTC
Hmm, this is also happening when no Qt apps are opened here. But the odd thing is that GTK apps gets stuck in the black screen when logging off, whereas Qt apps don't.
Comment 16 Oliver Williamson 2021-08-22 19:00:11 UTC
I'm getting a similar issue where the screen will turn blank with just the cursor for a number of seconds before the system logs out / reboots / shuts down.
Comment 17 Photon 2022-01-14 18:23:21 UTC
Could this be related to that bugfix of KDE Connect that was made for 5.24?
Comment 18 Nate Graham 2022-09-08 16:47:12 UTC
There isn't anything we can do at the KDE level here when 3rd-party apps take a long time to quit properly, but we can hide it better. That's tracked by Bug 188476

*** This bug has been marked as a duplicate of bug 188476 ***