Bug 460567 - Session lost when switching between X11 and Wayland
Summary: Session lost when switching between X11 and Wayland
Status: RESOLVED DUPLICATE of bug 436318
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: 5.25.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-17 05:14 UTC by Mihai Sorin Dobrescu
Modified: 2022-10-17 20:06 UTC (History)
3 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 Mihai Sorin Dobrescu 2022-10-17 05:14:01 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
First, some context. Recently I've had issues with Plasma (maybe nVidia related), like desktop freeze, or just applets, graphics acceleration glitches (like drawing sort of back and forth "in time", i.e. redrawing frames from the past second, then going further and so on), hidden panels being paint on top of everything, although they were hidden.

I've read Wayland works better than X11, as I currently use, so I've logged off and logged in to a Wayland session.
Wayland seems to draw better nowadays, but can't use it because of mouse problems, it becomes slow and jumpy, actually unusable. So I've switched back to X11 by loggin off/loggin on to X1 session.

I have several apps that I left open to be restored, mainly Dolphin instances for my current activities.
After loggin in back to X11, those Dolphin instances were missing. I have spent few minutes (again) to fake the session in ~/.config/ksmserverrc file, but it's pretty tedious. On one hand, I've found  many old dolphin session related files in ~/.config/session, none related to the latest session, which is unexpected. Why having those (orphan?) session files, but none related to my targeted session. They were there in the past, but not this time, usually removed from the ~/.config/ksmserverrc file only.

STEPS TO REPRODUCE
1. Open few Dolphin instances.
2. Log off without closing Dolphin instances.
3. Log in as different server session, X11 -> Wayland, then Wayland -> X11.
4. Dolphin is not restored.

OBSERVED RESULT

Dolphin is not restored.

EXPECTED RESULT

Dolphin instances and other (suitable to session restore) apps are restored.

SOFTWARE/OS VERSIONS
Operating System: MocaccinoOS (Gentoo based)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.72-mocaccino (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11700K @ 3.60GHz
Memory: 61.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Manufacturer: ASUS

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2022-10-17 05:33:47 UTC
Thank you for the bug report!

Please note that Plasma 5.25.5 is not supported for much longer by KDE; supported versions are 5.24, and 5.26 or newer.

If at all possible please upgrade to a supported version and verify that the bug is still happening there.
Comment 2 Mihai Sorin Dobrescu 2022-10-17 07:05:46 UTC
The distro follows Gentoo stable release cycles. Here 5.26 is in beta: https://packages.gentoo.org/packages/kde-plasma/plasma-desktop.

I have reproduced this in a virt manager instance:

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6
Kernel Version: 5.15.0-50-generic (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-11700K @ 3.60GHz
Memory: 15,6 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-7.0

Note, the problem occurs when going back to X11 only.
Comment 3 Nate Graham 2022-10-17 20:06:11 UTC

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