https://bugs.kde.org/show_bug.cgi?id=426194

            Bug ID: 426194
           Summary: OS Soft-lock when locking screen and switching back to
                    the same user; running session isn't restored
           Product: plasmashell
           Version: 5.18.5
          Platform: Kubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: grave
          Priority: NOR
         Component: Lock/logout
          Assignee: plasma-b...@kde.org
          Reporter: mrgeek...@gmail.com
  Target Milestone: 1.0

SUMMARY
When locking Plasma session, and clicking switch user, I can't go back to same
user (unlock session) in SDDM.
Plasma tries to start new session, but shows nothing. Whole system soft-locks
and can't be interacted with. Keystrokes don't work. Can't recover from this
state without a shutdown.


STEPS TO REPRODUCE

Steps I tested:
0a. (have multiple user accounts, may be relevant)
0b. (you may want to open some app; but make sure no important apps / files are
open since you'll have to force a shutdown)
0c. (you may want to set some FG and BG apps to load on startup, to see the
missing title bar effect)
0d. (not sure if relevant, but in System Settings > Startup and Shutdown >
Desktop Session, you may want to set it to "Start with empty session")
1. Lock screen (META+L)
2. Click switch user
3. Choose same user, type password, enter
4. Wait for Plasma startup animation
5. There is a black screen / BG; system soft-locks
6. Test various keystrokes; but can only use power button here (press, no need
to hold); takes a while to shutdown or reboot

Combinations that I didn't test, but might cause this too:
- Using Menu > Leave > Lock Screen (instead of shortcut) - PROBABLY YES
- Switch user directly (without Lock Screen first) - PROBABLY NOT
- Switch to different user, then back (using various methods) - PROBABLY NOT
- Anything involving terminal (CTRL+ALT+F7 / CTRL+ALT+F1) - NO IDEA


OBSERVED RESULT

After entering password, previous session isn't restored / unlocked.
Plasma/Breeze presentation screen is shown, as if trying to start a new
session.
It seems to fail to start a new session. BG / Plasma UI isn't loaded, so a
black screen is shown.

The apps configured to load on startup are loaded (and seem kind of
interactable), but windows have no title bar. The apps that were open when
locked session are nowhere to be seen, but I assume they're still running.
The taskbar / task manager panel isn't loaded.
OS Keyboard shortcuts (such as CTRL+ALT+DEL) don't seem to work as expected
(should show options to logout, etc).
I think CTRL+ALT+F7 / CTRL+ALT+F1 doesn't work either.

Unable to recover from this state (soft-lock? hang?).
The only thing that seems to work is pressing (no need to hold) the laptop
power button. When I do that, screen goes black. After long wait, it shuts down
or reboots the computer "gracefully" (I hope?).


EXPECTED RESULT
Screen should be unlocked, and all apps from running session should be
restored.


SOFTWARE/OS VERSIONS
OS: Kubuntu 20.04 64-bit
Linux Kernel: 5.4.0-45-generic
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

Output of Command: apt list plasma* | grep installed
plasma-browser-integration/focal-updates,now 5.18.5-0ubuntu0.1 amd64
[installed,automatic]
plasma-calendar-addons/focal,now 4:5.18.4.1-0ubuntu2 amd64
[installed,automatic]
plasma-dataengines-addons/focal,now 4:5.18.4.1-0ubuntu2 amd64
[installed,automatic]
plasma-desktop-data/focal-updates,focal-updates,now 4:5.18.5-0ubuntu0.1 all
[installed,automatic]
plasma-desktop/focal-updates,now 4:5.18.5-0ubuntu0.1 amd64
[installed,automatic]
plasma-discover-backend-fwupd/focal-updates,now 5.18.5-0ubuntu0.1 amd64
[installed,automatic]
plasma-discover-backend-snap/focal-updates,now 5.18.5-0ubuntu0.1 amd64
[installed,automatic]
plasma-discover-common/focal-updates,focal-updates,now 5.18.5-0ubuntu0.1 all
[installed,automatic]
plasma-discover-snap-backend/focal-updates,focal-updates,now 5.18.5-0ubuntu0.1
all [installed,automatic]
plasma-discover/focal-updates,now 5.18.5-0ubuntu0.1 amd64 [installed,automatic]
plasma-framework/focal,now 5.68.0-0ubuntu1 amd64 [installed,automatic]
plasma-integration/focal,now 5.18.4.1-0ubuntu2 amd64 [installed,automatic]
plasma-nm/focal-updates,now 4:5.18.4.1-0ubuntu1.1 amd64 [installed,automatic]
plasma-pa/focal-updates,now 4:5.18.5-0ubuntu0.1 amd64 [installed,automatic]
plasma-runners-addons/focal,now 4:5.18.4.1-0ubuntu2 amd64 [installed,automatic]
plasma-thunderbolt/focal,now 5.18.4.1-0ubuntu1 amd64 [installed,automatic]
plasma-vault/focal-updates,now 5.18.5-0ubuntu0.1 amd64 [installed,automatic]
plasma-wallpapers-addons/focal,now 4:5.18.4.1-0ubuntu2 amd64
[installed,automatic]
plasma-widgets-addons/focal,now 4:5.18.4.1-0ubuntu2 amd64 [installed,automatic]
plasma-workspace/focal-updates,now 4:5.18.5-0ubuntu0.1 amd64
[installed,automatic]


ADDITIONAL INFORMATION

When I talk about "restoring session" I mean unlocking screen, not restoring in
the same sense from the Settings App > Desktop Session.
In fact, my accounts are set to "start with empty session", not to "restore
previous session". This may be relevant for reproducing.
I have been tweaking a few things in the Settings App, so, if you can't
reproduce, tell me if there is any other non-default setting that could be
causing this bug to appear.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to