[Bug] Some old thumbnails remain unneccessarily in phone disk cache
UPD:
Since this incident happened I had a lot of time to think abut all this so now there is a few things i would like to say. First of all i would like to make my excuses to the people who hate this kind of thing and had to see this. Secondly I would like to say that i really went too far in this one and i knew that before I've started to write. But the thing i understand now is that I (and anyone else) shouldn't write chaotic evil posts to spoil lawful neutral/good ambiance thoroughly created and maintained by the community. I've learned my lesson and not going to do that again. Thanks for attention.
You better see it yourself:
/.thumbnails/normal/ en masse
/.thumbnails/normal/ that tiny slider
Found this thing with a FileBrowser with "Show hidden files" turned on in /nemo/.thumbnails/normal/
There is another stash at /nemo/.cache/.nemothumbs/raw/
/.cache/.nemothumbs/raw/ en masse
/.cache/.nemothumbs/raw/ contents of folder
This is not how it should be as these includes thumbnails of images I've deleted and already forgot they existed. There are ~2k thumbnails in total of every single image that was on my phone since last Factory Reset. And how this massive amount of junk affects performance (actually most probably nohow)?
It seems like deleting them all resulted in ~12% less memory(RAM) usage (though most likely this is false judgment as facts say these two things can hardly be connected and i didn't really measure it right before removing the trash but for me it definitely dropped lower than usual). Who knows.
UPD: it would be quite nice if a couple of people would measure memory(RAM) consumption with for example Lighthouse before and after cleaning and post here the results and if someone skilled would search restricted areas in phone memory for such clusters with SSH.
Hivemind's possible solutions:
If system creates junk it shouldn't be user's problem to control that junk collection process. Simplest way to deal with this would be to have a really tiny program which wipes out those two directories every (for example) midnight and recreates thumbs for pictures present in phone/card memory right away. Ideally user should not even expect this program to exist but letting the user configure periods between those cleanings does not seem like a bad idea too. But all that's just tasteless.
Maybe to somehow attach thumbnails to initial picture so when it gets removed whole chain goes down.
Sounds pretty normal to me, the gallery will need thumbnails to display in the UI.
r0kk3rz ( 2015-02-27 11:18:30 +0300 )editNot sure if it's a bug, but yes, you can delete them safely, I have deleted the folder a number of times without problems.
Just checked in mine, found 846 and deleted them by deleting the entire 'normal' folder, even the .data file in the .thumbnails dir can be removed, a new one will regenerate.
Spam Hunter ( 2015-02-27 11:23:19 +0300 )editWhat do you expect? That Gallery generates thumbnails every time from scratch? That would be unbelievable slow. How many pictures do you have on your phone?
ejjoman ( 2015-02-27 11:36:18 +0300 )edit@ejjoman, excluing images of music albums covers and scans which I'd rather like not to see in a gallery? Then 9. Otherwise gallery is unusable. Also I would rather like it to show thumbnails for images in the FileBrowser itself. And I would definitly expect the system to clean this mess after photoes been long (long-long-long) gone.
I suppose indexation of those images (~2k?) hardly makes system faster.
Odorobo ( 2015-02-27 11:45:37 +0300 )editSure. Go ahead and delete them. Next time you open your gallery it will generate a thumbnail for each picture. Profit? I don't think so...
Thumbnails are cached so that they don't have to be generated every time they are shown to you. Generating them on the fly is a little more processor intensive than just pulling them from cache.
Okw ( 2015-02-27 11:47:12 +0300 )edit@Okw, do you even care to read before posting? I have only 9 pictures in my phone and try to keep it that way. Why would I need ~2k of thumbnails of photos I've deleted half a year ago?
Odorobo ( 2015-02-27 11:54:50 +0300 )edit@Bowmore:
- You don't have to be rude! We are just trying to help you!
- Even thumbnails for album art makes absolute sense, since media player needs to show them.
- You should make clear, that there are thumbnails of already deleted photos - that sounds like a bug.
ejjoman ( 2015-02-27 12:00:23 +0300 )edit@ejjoman,
Tell me about being rude, yep.
For people like you I've made a line in bold in my first post. And consider that it was there from the start.
Just checked and you were wrong, it was almost instant.
Odorobo ( 2015-02-27 12:05:26 +0300 )edit@Bowmore: I meant your answer to @Okw:
It does not explicitly state, that there are thumbnails of deleted photos. You got -1 from me just for your behavior.
ejjoman ( 2015-02-27 12:08:57 +0300 )editfrom me as well -1
tvicol ( 2015-02-27 12:14:45 +0300 )edit@ejjoman, as if I care. I'm here not for carma or trolling or flame. I've written my post so people who work on improving Sailfish could do it easier knowing where to continue. Aaand the userbase ofcourse, as deletion eased the memory load for my phone by quite a number so PEOPLE MUST KNOW. Then you brake in, half read the topic and post first that comes into your mind being half rude. Also take notice that i did not in any way questioned your ability to read or your mental abilities merely stating that what I've wrote and what you understood out of it were two different things. 2fat4me
Odorobo ( 2015-02-27 12:19:00 +0300 )editI don't understand why this is even downvoted. It is a very valid question. I have also noticed a huge number of thumbnails of every picture that has even been on my phone, even if just for a brief moment. If this is a gallery cache, fine, but I also think this is a bug if the thumbnails are never deleted.
As for @Bowmore being "rude" - come on, people, please try to see beams in your own eyes before pointing out motes in someone else's.
pichlo ( 2015-02-27 12:32:47 +0300 )edit@pichlo, some men just want to see world burn. Themselves excluded ofcourse.
Odorobo ( 2015-02-27 12:41:47 +0300 )edit@pichlo: It's not about what he says, it is about how he says it. First, the question reads like a rant. I don't like rants. Second, I don't like things like "for people like you" or "do you even care to read before posting?" which implies he thinks the other one is retarded or something like that.
At this point I am not interested for the content of this question anymore.
ejjoman ( 2015-02-27 12:47:17 +0300 )edit@pichlo, saw that? :D
Odorobo ( 2015-02-27 12:53:23 +0300 )edit@Bowmore, I do care to read. However, I couldn't read your point regarding thumbnails of deleted pictures since you hadn't written that in your question. Do you expect readers to make arbitrary implications or what? If you can't clearly make a point then don't blame others for not getting it right.
Okw ( 2015-02-27 13:19:46 +0300 )edit@Okw, I kinda thought using past and present tenses in the phrase would make up for it but I suppose I was mistakenly considered more illiterate than I actually am. Nevermind, that happens.
Odorobo ( 2015-02-27 13:28:29 +0300 )edit@Bowmore: Thx for bringing this up. Both folders in total contained ~100MB in my case. Most images I had never seen before - at least not that I could remember. Maybe they were from websites I visited, no idea, but as the only images i store on my Jolla phone are my own photos, mail attachments (in case I download them at all) album art (which never shows up in the media player, anyway), I should be able to tell that a certain picture is new to me and I have no explanation of why it#s in the cache.
ossi1967 ( 2015-02-28 18:24:37 +0300 )edit