Bug 474703 - Too many files on Desktop, cannot sort files anymore
Summary: Too many files on Desktop, cannot sort files anymore
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 5.27.8
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-19 18:20 UTC by milkytwix
Modified: 2023-09-30 18:24 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27.9
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description milkytwix 2023-09-19 18:20:57 UTC
SUMMARY
***
Cannot order files on the desktop, plasmashell reports "Too many files", but there are only ~70 files.

sudo journalctl -p 3 -xb
Sep 13 19:54:15 neuromancer plasmashell[1422]: org.kde.plasma.folder: Greater than 4096 files and folders on the desktop; this is too many to map their positions in a performant way! Not adding any more position mappings.
Sep 13 19:54:15 neuromancer plasmashell[1422]: org.kde.plasma.folder: Greater than 4096 disabled files and folders; this is too many to remember their position in a performant way! Not adding any more position mappings.

find ~/Desktop/ |wc -l
87
***


STEPS TO REPRODUCE
1. Copy more than ~20 files on the Desktop
2. Arrange the files
3. Reboot

OBSERVED RESULT
All files cluttered on the first (of two) Displays, ignoring their original place on the desktop

EXPECTED RESULT
Files stay where they were put.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  6.5.3-arch1-1 (64-bit)
KDE Plasma Version:  5.27.8
KDE Frameworks Version:  5.110.0
Qt Version:  5.15.10

ADDITIONAL INFORMATION
Graphics Plattform: X11
Dual Monitor Setup

Which information is needet on top of this?
Comment 1 Nate Graham 2023-09-19 18:33:49 UTC
Hmm, it must be counting the mappings that have been growing infinitely, not the actual number of files and folders on the desktop.
Comment 2 Harald Sitter 2023-09-24 12:24:00 UTC
The warning is about mapping data, that does by design include **currently** inactive mapping data. Active or not they get evaluated/toggled when screens attach/detach so they negatively impact performance.
Comment 3 Harald Sitter 2023-09-29 13:56:52 UTC
https://invent.kde.org/plasma/plasma-desktop/-/commit/685fac5355812cfce67c4008c38fa3fbf5f75b08 should ultimately fix this by removing the excess files that got accumulated by the actual bug underneath this all.
Comment 4 milkytwix 2023-09-30 12:00:31 UTC
I just wanted to use the comment section of this bug to say thank you Harald and Nate (and all the rest of the project) for your wonderful work! Thanks for fixing my issue, highly appreciated!
Comment 5 Nate Graham 2023-09-30 18:24:36 UTC
You're very welcome! To clarify though, the actual work was all done by Harald and Marco. At most, all I did was some bug triage and merge request review. :)