Bug 487936 - kde-plasma/plasma-workspace 5.27.11.1: ksmserver fails to save and later restore a session
Summary: kde-plasma/plasma-workspace 5.27.11.1: ksmserver fails to save and later rest...
Status: RESOLVED DUPLICATE of bug 487912
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 5.27.11
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-02 21:16 UTC by i.Dark_Templar
Modified: 2024-06-03 16:04 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2024-06-02 21:16:36 UTC
SUMMARY
ksmserver fails to save a session

STEPS TO REPRODUCE
1. Set 'restore last session' in session control kcm.
2. Open a couple of KDE applications, like kate, konsole, dolphin
3. Logout
4. Login back

OBSERVED RESULT
Previous session is not restored

EXPECTED RESULT
Previous session restored

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.30-gentoo / X11
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.14

ADDITIONAL INFORMATION
After upgrading from plasma-workspace 5.27.11 to 5.27.11.1, plasma/x11 stopped restoring previous session. I've tried to save a specific session to restore it, it didn't work either. I've noticed that only conky out of all my opened applications was properly saved and restored. As I mentioned above, kate, konsole, dolphin failed to be saved and restored.
Comment 1 i.Dark_Templar 2024-06-02 21:36:16 UTC
Also, files /run/user/*/iceauth_* generated by ksmserver are empty, and I'm getting a lot of errors like "Qt: Session management error: networkIdsList argument is NULL". To me it looks like ICE auth is not working.
Comment 2 Vence 2024-06-03 08:55:04 UTC
confirmed:

Linux/KDE Plasma: Arch Linux/X11
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 5.2
Qt Version: 6.7.1

(bug  reported at 2024-06-02, https://bugs.kde.org/show_bug.cgi?id=487912)
Comment 3 i.Dark_Templar 2024-06-03 10:19:13 UTC
As I wrote above, file "/run/user/*/iceauth_*" is empty for me. It looks like it get's opened at https://invent.kde.org/plasma/plasma-workspace/-/blob/Plasma/5.27/ksmserver/server.cpp?ref_type=heads#L306, then it gets written and that's it. It's never flushed or closed. Closing file after writing fixed issue for me. I'm not sure this file descriptor is meant to leak.

Also I have following settings in sysctl, not sure if they help hitting this bug:
vm.dirty_bytes = 2097152
vm.dirty_background_bytes = 2097152
Comment 4 Kishore Gopalakrishnan 2024-06-03 16:04:08 UTC

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