Bug 464667

Summary: Dolphin details view showing wrong size of folders
Product: [Applications] dolphin Reporter: chupathingy <whkde>
Component: view-engine: details modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: felixernst, kfm-devel
Priority: NOR    
Version: 22.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the bug in Dolphin

Description chupathingy 2023-01-22 21:11:44 UTC
Created attachment 155518 [details]
Screenshot of the bug in Dolphin

SUMMARY
***
When "Folder size displays" is set to "Size of contents", some folders are shown to have a much larger size than they actually have, and when going further into it it gets exponentially larger. 
Partition where the folder I noticed this on is an ext4 partition with 465 GiB of space, yet the parent folder says the content is 386 TiB and the first child folder shows as 23,9 PiB. I do not have any other drive mounted or symlink in that location, nor do I have any storage device even remotely close to that size. I have maybe 10 TiB in total, including non-mounted drives.
***


STEPS TO REPRODUCE
1. Enable "Size of content" in Configure > Configure Dolphin > View Modes > Details and set it to 4 or above
2. Open a detail view of a non-root mounted drive
3. Enable tree view (for me top folder is also affected for some drives while some only shows when expanded)

OBSERVED RESULT
Dolphin reports wildly inaccurate size of folders

EXPECTED RESULT
Dolphin should report the correct size

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux - 6.1.7-Zen
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Drives mounted as ext4, happens to both a 2TB HDD and 500GB NVMe SSD
I first noticed this on Wayland, have not looked for it on X11 due to Plasma bugs on X11 after a recent update
Comment 1 Felix Ernst 2023-01-24 00:33:54 UTC
>I do not have any other drive mounted or symlink in that location

This really sounds like https://bugs.kde.org/show_bug.cgi?id=434125 except that you say that you don't have a symlink.

If we are lucky, this is fixed by the fix for the other bug. Then Dolphin 22.12.2 and later should not show this behaviour.