• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Huge thumbdata4 file in DCIM folder

prepbgg

Well-Known Member
Aug 25, 2009
191
4
UK
I have recently noticed a huge (>3.5GB) file in the DCIM/.thumbnails folder. I have tried deleting it, but the next time I open the Camera app it rebuilds the file (and locks up the phone, sometimes displaying a "media scanning in progress" message, in the process.)

The total file size of all the photos displayed in the Gallery is around 500MB. There are in addition around 35,000 images in folders containing .nomedia files to instruct Android to ignore the media therein. The total file size of these is around 1.5GB. The Gallery app is correctly ignoring these images, but I wonder whether the Camera app is misbehaving and actually processing them.

I think this problem has emerged since the ICS upgrade ... either when the phone was first updated from Gingerbread or at some later date. I am currently on 4.0.4.

Any ideas, please?
 
I've got 3800 images on my phone and I thought that was excessive! I've just checked and I have 2 files in that folder that are approximately 390mb each. I don't even use the standard gallery app and half of my files are set with the .nomedia files. If you have 35,000 images then it appears that the gallery app is setting a thumbnail for every single one regardless of the .nomedia settings but just doesn't show the ones it shouldn't. That's just stupid.

I use QuickPic instead of gallery as I find the gallery app bloody awful to use. You could try using that and then disabling the gallery app. My guess is you could then delete the huge file and as the app is disabled it won't reappear unless you re-enable it.

Lastly can I just ask.... why do you have 35,000 images on your phone?
 
Upvote 0
Lastly can I just ask.... why do you have 35,000 images on your phone?
Most of them are used an app that I have written. Also there are quite a few that belong to web pages that I have saved for offline viewing.

I like QuickPic too, especially for its greater degree of control over sort order. (Why does the stock gallery only have "newest first"!?) At first I found it took too long to open up ... I think it was correctly paying attention to my .nomedia files but it was taking a minute or so to trawl through the whole folder structure and picking up all the photos that Gallery finds ... However, I have now found the menu option to restrict it just to the few photo folders that I'm interested in. It now opens in a flash.
 
Upvote 0
By googling I have found references to a bug in ICS that may be causing this problem.

Following advice here I have:

1. Deleted the thumbdata file (in DCIM/.thumbnails)

2. In Settings->Applications->All->Gallery: cleared data (only a few MB), (I would also have cleared the cache if there was anything there), then "Force stop"

3. In Settings->Applications->All->Media Storage: cleared data (only about 30MB), (I would also have cleared the cache if there was anything there), then "Force stop"

4. Restarted the phone

When I next ran the Camera app it was unresponsive for a long time, perhaps 20 to 30 minutes, presumably while it was re-scanning media files. After waiting for this to complete things now seem to be OK:
- Camera, Gallery and QuickPic all seem to work
- thumbdata4 seems to have settled at about 500MB
 
Upvote 0
create a txt file, rename it to the thumbdata file name, delete the big thumbdata file, copy over the small txt file in its place. seems to work ok for me. i had around 5gb of thumb file, terribly wasteful.

use quickpic its much better anyway. And you can easily specify which folder you want it to access rather than all the other crap.
 
  • Like
Reactions: zhiro90
Upvote 0
I'm having the exact same issue on my Samsung Galaxy Tab 2 7.0 and posted about it over on XDA, but don't have a high enough post count to post links. I've deleted the 2 thumdata3 files that were taking up 3.3GB of space causing my Tab to show a message in the notification bar that I didn't have enough internal storage space.

This screenshot is BEFORE deleting the 2 thumbdata3 files and substituting folders with the same names.
Screenshot_2013-08-20-13-08-39_zpsc81f32b4.png




This screenshot is AFTER both thumdata3 files were deleted and replaced with 2 folders with the exact same names.
Screenshot_2013-08-20-23-02-51_zpsdd8a58d2.png


I just don't understand how deleting over 3GB worth of files won't show up as freed space as far as the OS is concerned. If I browse using ES File Explorer, it shows the files are gone. I'm about ready to do a factory reset, but not looking forward to the 6-8 hours of setup getting my Tab back to the way it is.
 
Upvote 0
I tried to clear up space on my internal SD card (on a Samsung Galaxy SIII mini) by moving thousands of thumbnails files and the .thumbdata3-1967290299-file (278 MB large) files to my external SD card and all my apps disappeared from my screens. Is this strange or what? Stupidly I don't remember which folder I copied these thumbnail-JPG-files to, does anyone know which folder they belong in because it doesn't seem to be the DCIM/.thumbnails-folder (my apps don't reappear...).
 
  • Like
Reactions: april pizano
Upvote 0
For me the greatest solution is to delete .thumbnails and to make the file with the same name manually (from adb for example: adb shell touch /sdcard/DCIM/.thumbnails). In this case Camera app. works good, but the shortcut to Gallery in Camera app. does not work. Separately Gallery app. works normally. Tested on Samsung Ace 2 with Android 4.1.2.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones