Bug 496503 - On X11, plasma-fallback-session-save hangs on every reboot or shutdown
Summary: On X11, plasma-fallback-session-save hangs on every reboot or shutdown
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.1.5
Platform: Kubuntu Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-20 17:32 UTC by pietz
Modified: 2024-11-27 19:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pietz 2024-11-20 17:32:38 UTC
Before Kubuntu 23.10 updated to Plasma 6, everything worked fine with the same hardware. Now with Plasma 6 (X11, not Wayland) my session hangs always when I reboot/shutdown. Plasma closes (taskbar,+desktop) and also some apps were closed but some are still visible. When I close them all, also nothing continues. I switched to text console (Ctrl-Alt-F3 e.g.) and then "ps uxf" shows me always:

 \_ /usr/bin/plasma-shutdown
     \_ /usr/lib/x86_64-linux-gnu/libexec/plasma-fallback-session-save

When I kill the plasma-fallback-session-save, then the system continues immediately and reboots as wanted.

Thanks for investigating and tell me if you need something more!
Andreas


PS:
I also found other having some similar problems here:
https://bbs.archlinux.org/viewtopic.php?id=297684
I don't know if this is related but I wanted to mention it at least :)
Comment 1 Nate Graham 2024-11-20 20:37:33 UTC
Does it ever terminate? Or is it stuck forever? Like, for more than 10 minutes?
Comment 2 pietz 2024-11-21 09:07:07 UTC
Seems like forever, but I only tested for a few hours :)
Comment 3 Nate Graham 2024-11-21 19:03:45 UTC
Ok, so effectively forever. I was mostly looking for info about whether it gets killed by systemd automatically after 90 seconds.

Are you by any chance not using systemd on this machine?

Also, are you able to test it out on a Wayland session to see if it happens there?
Comment 4 pietz 2024-11-21 23:31:59 UTC
Everything works very well when I use Wayland instead of X11. I tried that earlier and figured it out already. But with Wayland I cannot use Kontact/Kmail because they are stuck to X11 somehow on Kubuntu 23.10 because they didn't switch to Kontact 6 yet.

So it has to do something with the X11 session.

Any more ideas how I can nail the issue down somehow? I don't know how to use my Kubuntu system without systemd - I don't wanna destroy everything here - I need my machine :-)
Comment 5 TraceyC 2024-11-25 18:21:59 UTC
Just to verify, has Kubuntu on your system been updated to 24.04 or 24.10? I'm assuming yes, since you mention it having Plasma 6, just wanted to make sure we're on the same page.

On Kubuntu 24.10 with X11 I am not able to reproduce this. I can shut the system down or reboot normally.
Comment 6 pietz 2024-11-25 21:05:18 UTC
In my case it was a fresh install.

Is there a way to tear it down somehow in the logout process?
Comment 7 pietz 2024-11-25 21:07:02 UTC
Addition: Not purely fresh install: My home folder kept the same with all (old) ~/.config and ~/.local and so on...
Comment 8 TraceyC 2024-11-25 22:26:36 UTC
Thanks for your responses. Which version of Kubuntu exactly did you install?
Can you test with a new user and see if the same thing happens?
Comment 9 pietz 2024-11-26 16:13:13 UTC
In deed, a new user can reboot and logout without a second waiting.

So, there must be something interrupting in my .local or .config with plasma-session-management I guess. Is there a way to log that waiting somehow?
Comment 10 pietz 2024-11-26 16:23:39 UTC
Ahhh... I have more details: It also happens with the brand new user, when I configure the session management from "On last logout" to "When session was manually saved".

Please try to enable the manual session and then reboot. My new user session also hangs then forever. Does it on your side?
Comment 11 TraceyC 2024-11-26 16:50:25 UTC
Thanks for the additional detail. I still need to know exactly which version of Kubuntu you installed to try to reproduce this. Thanks.
Comment 12 pietz 2024-11-26 17:16:02 UTC
I mentioned that in my fist post :) I have Kubuntu 23.10 running from a fresh install.
Comment 13 pietz 2024-11-26 18:07:47 UTC
Oh my god!! Did I really write 23.10?!? It's all my fault. We write the year 2024 as I recognized a few seconds ago :-)

So it is a fresh 24.10 Kubuntu. The current newest version from THIS October :-)

Sorry...
Comment 14 TraceyC 2024-11-27 19:59:01 UTC
That's what I suspected, since you mentioned Plasma 6, so thanks for clarifying :)

I am able to reproduce this on Kubuntu 24.10, but not on git-master
The good news is that this means the bug is fixed, and this will work properly on your system when Kubuntu updates to Plasma 6.3
As a workaround, you can use one of the other settings in Desktop Sessions until then

Steps to reproduce on 6.2.x:
Configured Settings - Desktop Session to "When session was manually saved"
Restarted when prompted, logged into X11
Attempted to restart through KRunner

The screen turned black, the cursor was still visible and active
After killing `/usr/lib/x86_64-linux-gnu/libexec/plasma-fallback-session-save` the system rebooted