Bug 484431 - (Wayland, AMD) Black desktop space on unlock, until `plasmashell --replace`
Summary: (Wayland, AMD) Black desktop space on unlock, until `plasmashell --replace`
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-03-25 04:30 UTC by maelstrom256+bugs.kde.com
Modified: 2024-08-22 02:45 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maelstrom256+bugs.kde.com 2024-03-25 04:30:32 UTC
SUMMARY
***
Hello there.
I'm using system on the laptop with two displays, wayland session. Main laptop display disabled in desktop configuration  and only external display active. Sometimes after I have system locked, I can unlock it usual way, but desktop space is black and panel not working (windows and task switching are ok), and `plasmashell --replace` needed to continue using system.
Problem never appears with only internal display
***
Journalctl output:
```
❯  journalctl -g  plasma --since "2024-03-25" --no-pager
Mar 25 01:34:00 warmsands kscreenlocker_greet[575238]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml:31:13: QML QQuickImage: Blocked request.
Mar 25 06:46:22 warmsands kcminit[614565]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Mar 25 06:46:22 warmsands kcminit[614542]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Mar 25 06:46:22 warmsands kcminit[614565]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so"
Mar 25 06:46:22 warmsands kcminit[614542]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so"
Mar 25 06:46:35 warmsands kscreenlocker_greet[575238]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml:31:13: QML QQuickImage: Blocked request.
Mar 25 06:46:41 warmsands kscreenlocker_greet[575238]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/NoPasswordUnlock.qml:26: ReferenceError: tryToSwitchUser is not defined
Mar 25 06:46:51 warmsands plasmashell[482158]: kde.plasmashell: requesting unexisting screen available rect -1
Mar 25 06:46:52 warmsands plasmashell[482158]: kde.plasmashell: requesting unexisting screen available rect -1
Mar 25 06:48:31 warmsands kscreenlocker_greet[614982]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml:31:13: QML QQuickImage: Blocked request.
```
01:34 I have locked system and 06:46 unlocked it.
06:48 I had second lock/unlock cycle and there no any messages from plasmashell, so I suppose it's dead or hanged.

STEPS TO REPRODUCE
1. Configure system to use external display only
2. Lock screen
3. Unlock screen after about a hour

OBSERVED RESULT
Desktop space black and no panel active

EXPECTED RESULT
Desktop space black and panel are functioning normally

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.2
KDE Plasma Version: 6.0.2-4
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
My system has been recently upgraded from plasma5 to plasma6. Another system with no external displays works well.
Comment 1 maelstrom256+bugs.kde.com 2024-03-25 05:23:58 UTC
Just have it hang-to-black again, after fifteen minutes. Possibly it tied up with DKMS and screen manager?
Comment 2 Nate Graham 2024-08-20 17:54:59 UTC
Thanks for reporting this, and sorry we didn't manage to get to it yet. I have some questions for you:

1. Is it still reproducible with Plasma 6.1.4? If so...
2. Are you using X11 or Wayland when you encounter the issue? Can you reproduce it on both platform, or only one?
2. you said the panel on the external screen is not working... can you quantify how? Is it visible but frozen and non-interactive? Missing? Something else?
3. If you right-click on the black background, no context menu appears, right?

Possibly the same thing as Bug 491891 or Bug 491868.
Comment 3 maelstrom256+bugs.kde.com 2024-08-20 18:40:08 UTC
(In reply to Nate Graham from comment #2)
> Thanks for reporting this, and sorry we didn't manage to get to it yet. I
> have some questions for you:

Oh, nothing ) I've dealt with it easily, and for a while it's fixed
Happily, KDE Connect is super-useful application and I'm able just to unlock and replace plasmashell as easy as two taps
> 1. Is it still reproducible with Plasma 6.1.4? If so...

Nope, it's gone a time ago

> 2. Are you using X11 or Wayland when you encounter the issue? Can you
> reproduce it on both platform, or only one?

A wayland, configuration similar to 491891 (Asus ROG G513QY: R9 5900HX, RX6700M, external 4k display on Type-C, attached directly to 6700M, as I remember interconnection scheme)
Issue had happened few times per day until summer, few times for next month, and from the middle of summer I had not encounter any.
Ain't given X11 a try, sorry

> 2. you said the panel on the external screen is not working... can you
> quantify how? Is it visible but frozen and non-interactive? Missing?
> Something else?

As I remember panel was missing, desktop area painted black and no context menu shown, but task-switch, desktops and rooms were working

> 3. If you right-click on the black background, no context menu appears,
> right?

Exactly

> Possibly the same thing as Bug 491891 or Bug 491868.

May be. I'm happy that my issue has gone ) KDE team sometimes can bring up some new bugs, it's impossible to maintain such big projects without bugs completely — but fixes are always on the route!
Thank you )

Please, feel free to mark issue as solved
Comment 4 Nate Graham 2024-08-20 20:40:12 UTC
Thanks a lot for the info! Based on the timeline, looks like this issue was fixed for you in Plasma 6.1.