Bug 1221484

Summary: Plasma6 - logout does not work
Product: [openSUSE] openSUSE Tumbleweed Reporter: Andrei Borzenkov <arvidjaar>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: arvidjaar, fabian
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: systemd-cgls output
journalctl -b --user
journalctl -b
journalctl --user -b

Description Andrei Borzenkov 2024-03-15 17:41:49 UTC
Snapshot 20240311, pretty much vanilla installation in VM without any third party repositories. Autologin is enabled. 

After update to Plasma6 I cannot logout from KDE session. I get confirmation dialogue, press Logout, and nothing happens. GUI does not react anymore to mouse, I can't do anything. I can switch to another vt and terminate session using e.g. "loginctl kill-session".

Attached are journalctl -b for user and system as well as sysemd-cgls output. From user journal it can be seem that logout is actually initiated but a lot of processes remain.
Comment 1 Andrei Borzenkov 2024-03-15 17:43:15 UTC
Created attachment 873555 [details]
systemd-cgls output
Comment 2 Andrei Borzenkov 2024-03-15 17:44:01 UTC
Created attachment 873556 [details]
journalctl -b --user
Comment 3 Andrei Borzenkov 2024-03-15 17:44:45 UTC
Created attachment 873557 [details]
journalctl -b
Comment 4 Andrei Borzenkov 2024-03-15 18:31:02 UTC
Under Wayland after "logout" GUI remains active, I can launch applications etc.
Comment 5 Fabian Vogt 2024-03-15 21:35:37 UTC
Might be related to:

Mar 15 20:27:37 uefi systemd[1330]: Created slice Slice /app/dbus-:1.2-org.kde.LogoutPrompt.
Mar 15 20:27:37 uefi systemd[1330]: Started dbus-:1.2-org.kde.LogoutPrompt@0.service.
Mar 15 20:27:44 uefi systemd[1330]: Created slice Slice /app/dbus-:1.2-org.kde.Shutdown.
Mar 15 20:27:45 uefi systemd[1330]: Started dbus-:1.2-org.kde.Shutdown@0.service.
Mar 15 20:27:45 uefi systemd[1330]: dbus-:1.2-org.kde.LogoutPrompt@0.service: Main process exited, code=exited, status=1/FAILURE
Mar 15 20:27:45 uefi systemd[1330]: dbus-:1.2-org.kde.LogoutPrompt@0.service: Failed with result 'exit-code'.
Mar 15 20:27:45 uefi systemd[1330]: dbus-:1.2-org.kde.LogoutPrompt@0.service: Consumed 1.527s CPU time.

Though the logout greeter should either trigger logout or not, there's no in between...

What happens if you do "qdbus6 org.kde.Shutdown /Shutdown org.kde.Shutdown.logout" manually?
Comment 6 Andrei Borzenkov 2024-03-16 06:24:04 UTC
Created attachment 873565 [details]
journalctl --user -b

(In reply to Fabian Vogt from comment #5)
> 
> What happens if you do "qdbus6 org.kde.Shutdown /Shutdown
> org.kde.Shutdown.logout" manually?

Logs are mostly identical - logout is initiated, something is done but session is not terminated. And I mentioned already, in X11 GUI is frozen after logout attempt. 

journalctl --user -b attached.