Thumb regenerate

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Thumb regenerate

Post by binocular222 »

I have a folder with 7867 image files. I'm sure the thumbs are generate properly (statusbar said 7867 thumbs generated). However, whenever I revisit this folder, all the thumbs are generated from scratch (take very long time)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

outskirter
Posts: 10
Joined: 01 May 2014 01:45
Contact:

Re: Thumb regenerate

Post by outskirter »

Have you tried the "Cache thumbnails to disk" option in the thumbnail configuration dialog? That eliminates the need for all the thumbs to be created from scratch each time you open the folder, except for new images or ones that have been modified.

Of course, the thumbnail cache can use up quite a bit of disk space, but it certainly saves time the next time you open the folder.
Last edited by outskirter on 29 Jun 2014 05:36, edited 1 time in total.

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Thumb regenerate

Post by binocular222 »

that option was already enabled
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 64868
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Thumb regenerate

Post by admin »

Hm, anything special about this folder?

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Thumb regenerate

Post by binocular222 »

Not much special:
- 7k files is large
- Mostly typical image files (jpeg, png, gif, url, txt, and a few mkv, avi)
- After statusbar said "7867 thumbs generated", only half which are displayed (1st half of the images files have thumbs shown, others have blank frame)
- I did not installed any external shell extension to handle thumbs/preview
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 64868
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Thumb regenerate

Post by admin »

Maybe some limit is reached. Can you check the size of the cache file (in Thumbs Cache folder) for this folder?

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Thumb regenerate

Post by binocular222 »

XYThumbs.txt shows no such folders
And there's no suspiciously large .dbits files either
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 64868
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Thumb regenerate

Post by admin »

binocular222 wrote:XYThumbs.txt shows no such folders
And there's no suspiciously large .dbits files either
Hmm, looks like the cache is never even written! Question is why? I will add an error message to the next beta...

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Thumb regenerate

Post by binocular222 »

v14.00.0101: After I generate those thumbs, only half of which are shown (as before), then I turn off thumb-view (switch back to Detail view) and get this error:

Code: Select all

Error:  	7 (0x00000007)
Desc:   	Out of memory
Dll:    	2
Proc:   	CacheWrite - Size: 224869188

Source: 	XYplorer
XY ver: 	XYplorer 14.00.0101
OS:     	Windows 7 Enterprise (Service Pack 1), 32-bit
Locale: 	1066
ANSI:   	1252
ACP:    	1258  (ANSI/OEM - Viet Nam)
DBCS:   	No
DPI:    	96 (100%)

Date:   	5/6/2014 9:23:47 AM
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 64868
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Thumb regenerate

Post by admin »

Ah, so we caught it! :twisted:

Interesting. So there is a limit. At that point you have got 214,45 MB of pure image data (pixels) in your thumbnails, and not enough free space for it (to handle it -- probably more than 214,45 MB) in your RAM.

Good that I know this. I will have to rewrite thumbnails from scratch to improve this. Later...

For now, you should do any of these:
1) Less files in that folder
2) Smaller thumbnails
3) Larger RAM

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Thumb regenerate

Post by binocular222 »

I have 3GB RAM, 69% is used, that means 930MB left. Should be able to handle 200+MB - right?
Anyway, having fewer files in that folder is ok
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 64868
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Thumb regenerate

Post by admin »

Yes, I know. This particular error is often a bit mysterious. Anyway, there are always ways to handle it. Later...

Post Reply