Bug 190209

Summary: /var/tmp/kdecache-USER/kpc grows to enormous size (+150MB for each plasma theme tried)
Product: [Unmaintained] plasma4 Reporter: aapgorilla <godutchnow>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: franz.trischberger, kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description aapgorilla 2009-04-20 22:05:26 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Mandriva RPMs

/var/tmp/kdecache-USER/kpc grows to enormous size, +150MB for each plasma theme tried filled with files called:
plasma_theme_NAME.index (>32MB)
plasma_theme_NAME.data  (>150MB)

this could potentially cause problems because the root partition could quickly fill up, especially on netbooks with SSD drives
Comment 1 Pino Toscano 2009-04-20 23:15:30 UTC
Suggested reading on the topic:
http://en.wikipedia.org/wiki/Sparse_file
Comment 2 Franz Trischberger 2010-02-11 09:47:55 UTC
This definitely caused a completely fragmented root-partition here!
I gave an account to each of my family-members and friends. I gave / 30GB, which was more then enough in former installations, /tmp has a seperate partition. My installation has a size of 10 GB, which leafes 20GB empty for most of the time. Now people played with plasma and the themes - which left only less then 1-2GB in the end. Making several updates, uninstalls and new installs until no space was left anymore!
On boot i now get told that my disk is 35% uncontigous - and now i know the reason why my apps kept starting slower and slower. These 150MB for each plasmatheme for each user have eaten the whole space!

PLEASE consider to get some securing queries into your code, which prevent root to run full.
e.g. deleting oldest files on logout or a prompt when trying new themes and diskspace is lower then say 5GB, that the user should delete files in /var/tmp/kdecache-USER/mpc, or anything.
But don't fill my disk till the bitter end...