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.
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.
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)
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
*** This bug has been marked as a duplicate of bug 487912 ***