Bug 494551

Summary: Desktop icons get re-arranged in alphabetical order when encountering a "zero screens connected" condition
Product: [Plasma] plasmashell Reporter: Karl Gustav <kotversuchung>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: duha.bugs, hein, nate
Priority: NOR    
Version First Reported In: 6.2.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=494353
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Karl Gustav 2024-10-11 16:14:29 UTC
This is  a somehwat annoying new issue. Whenever my screen slept my desktop symbols get rearranged after waking up the screen again. 
When checking how symbols are sorted by rightclick > symbols > sort i have it set to "do not sort" and checked the box for "folders first". I use  "very small symbols" and the breeze  plasma style. Other than that i can't think of any custom settings.



Operating System: EndeavourOS 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 7700 XT
Comment 1 duha.bugs 2024-10-11 18:31:05 UTC
I think this one of those bugs:

https://bugs.kde.org/show_bug.cgi?id=492402
https://bugs.kde.org/show_bug.cgi?id=468546
https://bugs.kde.org/show_bug.cgi?id=494353

Though I suspect they probably all have the same underlying issue.

I can reproduce by just turning my screen off and then on again.
Comment 2 Karl Gustav 2024-10-11 21:07:02 UTC
Ty didn't find any of these when searching for it but sure sounds like it.
Comment 3 Nate Graham 2024-10-22 19:55:01 UTC
Probably Bug 494353.

Duha, are you on X11 as well?

Regardless, some questions for those who can reproduce?
1. Can you upgrade to Plasma 6.2.1, then move and rename one item (to force a config refresh) and see if it still happens?
2. If it still happens, can you also try on Wayland to see if it happens there?
3. Regardless, can you comment on the number of monitors you have? If it's more than one, can you try with only one monitor and see if it still happens?
4. For the monitor where you can reproduce the issue, how is it connected?

Thanks!
Comment 4 duha.bugs 2024-10-22 20:40:32 UTC
I can reproduce on reliably on wayland by turning my screen off and on again. I also noticed this after sleep/hibernate.

Operating System: Arch Linux 
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3
Kernel Version: 6.11.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 30.6 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX


1) I am on master, but not sure when I have last recompiled. Is there a recent fix?
2) Can repro on wayland
3) 1. Monitor 1080, no scaling.
4)  HDMI (I think 1.4)

I assumed this happens to everyone, can you not reproduce?
Comment 5 Nate Graham 2024-10-23 17:48:10 UTC
From our conversation in the bug triaging room, it seems that when you turn off your monitor, it actually disappears from the system, and hence you end up in a situation where you have zero screens. Internally we create a fake screen to avoid crashing Qt, and probably this causes the problem somehow.

It doesn't happen to me because none of my external screens actually disappear when turned off; I have to physically unplug them to make that happen.

If I simulate the condition on my living room PC by unplugging its sole HDMI screen, the issue happens 100% of the time for me.
Comment 6 Nate Graham 2024-10-23 17:50:32 UTC

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