Page 1 of 3

Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 05:09
by dovetail
Hello all,

I'm frequently encountering a problem where XYplorer 14.40.02 won't refresh the thumbnails on its own (or is VERY slow to do so), and when I use the refresh button I sometimes receive an "Out of Memory" error: :x

I'm hoping that someone can suggest what I can do to avoid this exceedingly annoying problem with this otherwise stellar program! Is there a memory setting somewhere that I'm missing?


Circumstances and system specs: Windows 7x64, 8Gb RAM. No high memory programs (e.g. Photoshop) running. 3.5 to 4Gb RAM out of 8 Gb used at time of error (close to 4Gb RAM free). Directory contains mix of Photoshop, jpg, Illustrator, .tif, and .png files (2100 files). No network drives used.

XYplorer Icon Configuration: Icons set to auto refresh, "Cache specific icons" selected, "Enable custom file icons" selected.

XYplorer Thumbnail configuration: As the attached screenshot shows, I've chosen "Super-fast thumbnails" and have chosen to "Cache thumbnails on disk".

Below is the error I see:
Error

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

Source: XYplorer
XY ver: XYplorer 14.40.0200
OS: Windows 7 Professional (Service Pack 1), 64-bit
Locale: 4105
ANSI: 1252
ACP: 1252 (ANSI - Latin I)
DBCS: No
DPI: 96 (100%)

Date: 17/09/2014 7:23:54 PM
Thanks to all in advance!

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 09:13
by Enternal
Hmm... what are the thumbnails size? How many files for that particular folder? Also, when you notice XYplorer is starting to be really slow like you have mentioned, use Task Manager right away and check the memory usage for XYplorer.exe. I'm just guessing but the problems is probably caused by XYplorer being a 32bit program so that means there is a limit to how much memory it can actually use which is independent of the actual memory available on your system. Since XYplorer actually loads all thumbnails into memory, it can take a lot of memory. Some of my usage during thumbnail view can go up to 700 or 800 MB. You probably have a lot more so that ate up memory quick.

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 09:49
by admin
The error message says "Size: 19024421" (that's pixels, so we need multiply it by 4 to get the used bytes), around 19 * 4 MB = 76 MB, does not sound that much, but it obviously hits some wall. Too many too large cached thumbnails in one folder in that system.

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 13:22
by klownboy
Don, so that limitation is associated with a single folder's cache? Obviously each folder in a particular thumbnail size has its own cache files(2). So dovetail must have one super large folder that he should consider breaking into smaller more manageable folders. I have some large folders of photos myself but haven't encountered any issues though my "machines" do have more memory.

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 14:19
by admin
Yes, that's the solution I see.

320 x 320 is a lot of pixels per thumbnail (if he's using his #3 size).

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 15:01
by TheQwerty
Off-topic: You're in quite capable hands already so I just wanted to say welcome to the club dovetail!

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 16:45
by PeterH
I think:

- if possible (I don't know) the limit should be as high as possible
- if it can't be avoided XY should recognize the limit and take appropriate action (like show an info message, then stop or disable thumbnail processing)

To ask the user for breaking up his folders should be the very last resort.

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 21:58
by dovetail
Hello to each of you (thanks for the welcome, TheQwerty) and thank each of you for the quick replies to my question!

Eternal: Although I have three thumbnail sizes configured, I tend to use 128x128 as for quick visual scans through my folder, and only use the larger sizes (mostly 240x240) once I've narrowed down my search. This is a large directory with 2000 files in it of mixed graphic types. I find that using a single catch-all graphics directory makes finding and linking to files much, much easier as they are used and reused in my final documents/illustrations. I guess that I may need to go back to subdividing this folder as I used to do in the bad old days. Doing it this way is so is a pain, both in usage as well as in having to relink my graphics in my working files. Ah well.

The odd thing (to me) is that when my thumbnails don't refresh as I scroll through my file folder, I can get them to do so most times by switching between thumbnail and detailed view (using the "d" shortcut), or by changing the displayed thumbnail size. Does doing so act like the refresh button?

As klownboy asked, is there some sort of limit to the size (number or bytes) of a folder's cache?

I guess that one thing that I can try now that I've started to use paper folders (thanks for that new feature, especially being able to manually sort the file thumbnails) is to go back to using used categorized folders and then try to get in the habit of remembering to drag and drop my most important finished files into this virtual paper folder set up by theme or content. I really appreciate being able to visually scan through all of my files at once without needing to rely on tags or search using the "Find Files" dialogue.

I've been overjoyed with just how much more efficient and useful XYplorer has made my work, even with this limitation. I'm also impressed with the fact that the software is actively supported with new and powerful features being added on a regular basis. What an awesome program!

Cheers to the developer! :appl:

Just before I posted this, I see that you've released a new version with the ability of extending the "mouse down blow up" feature on the file icons when in a folder's detail view - EXCELLENT and Thank You!!!!!

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 22:34
by klownboy
dovetail wrote:The odd thing (to me) is that when my thumbnails don't refresh as I scroll through my file folder,
Hi dovetail,
I noticed in your thumbnail configuration pic that you don't have "create all thumbnails at once" checked off. With this checked and when the folder you enter has thumbs which are not yet cached or have been changed or moved or renamed, XY will create/rebuild them all at once without you having to page through the folder. Checkout my ThumbnailMaintenance script also to keep on top of your thumbs when they get out of hand (i.e., get rid of thumb sizes you no longer need, remove thumb caches for folders which are empty or folders which no longer exist or to rebuild the cache(s) since when you move, delete, or rename the image files the old thumbs for those files remain in the cache database).

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 22:41
by Stef123
Enternal wrote: probably caused by XYplorer being a 32bit program so that means there is a limit to how much memory it can actually use which is independent of the actual memory available on your system.
Hmm, interesting, I never thought about it, had always assumed that ALL apps benefit from more RAM as long as Windows runs in 64 mode?
admin wrote:320 x 320 is a lot of pixels per thumbnail (if he's using his #3 size).
Pixel-wise yes, it adds up, but the visual appearance is a different story. On higher resolutions it shrinks to the equivalent of a much smaller thumbnail size.

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 23:09
by PeterH
Stef123 wrote:
Enternal wrote: probably caused by XYplorer being a 32bit program so that means there is a limit to how much memory it can actually use which is independent of the actual memory available on your system.
Hmm, interesting, I never thought about it, had always assumed that ALL apps benefit from more RAM as long as Windows runs in 64 mode?
At least addressing of 32bit programs is limited to 32bit :P i.e. to max 4GB. Else you wouldn't need 64bit programs :ugeek:
And, as much as I remember, there are some more limits made by windows.
Though these limits were extened with 64bit windows - before programs were still more restricted by the system itself.
(But sorry: I don't remember those explicit values :oops: )

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 18 Sep 2014 23:17
by dovetail
klownboy wrote:
dovetail wrote:The odd thing (to me) is that when my thumbnails don't refresh as I scroll through my file folder,
Hi dovetail,
I noticed in your thumbnail configuration pic that you don't have "create all thumbnails at once" checked off. With this checked and when the folder you enter has thumbs which are not yet cached or have been changed or moved or renamed, XY will create/rebuild them all at once without you having to page through the folder. Checkout my ThumbnailMaintenance script also to keep on top of your thumbs when they get out of hand (i.e., get rid of thumb sizes you no longer need, remove thumb caches for folders which are empty or folders which no longer exist or to rebuild the cache(s) since when you move, delete, or rename the image files the old thumbs for those files remain in the cache database).
Thank you very much for catching this, klownboy. I've just done so (and saved my configuration change), gave my system a few minutes to create the thumbs, and an initial perusal of my directory shows that most of the problems have gone away! Yahoo! Great suggestion! I really hadn't looked forward to going back (so to speak) to using subfolders.

Now, the only remaining issues are that my file icons aren't showing up for any of my file types, and the thumbs for some of my Adobe Illustrator (*.ai) files aren't seen, even after a refresh. The attached screen capture should show what I mean. The "Mouse down thumb up" feature still works for them. The .ai files whose thumbs don't display aren't corrupted as I can open/read them w/o issue. I have "Show file icon on thumbnail" selected in the Thumbnail configuration panel. I've tried turning this option off and then back on again, but no joy. Perhaps I'm missing another configuration setting? Still have more than 4Gb RAM free at the moment.

I've had a quick read of your thumbnail maintenance post that you directed me to. The script presented looks like it should be useful. Thanks for the information.

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 19 Sep 2014 09:32
by admin
So the Out of Memory error is gone? Good (and interesting).

AI thumbs: If Explorer can show them and if you are on 64-bit Windows, then Adobe did not install the 32-bit shell extension for creating thumbnails (the "thumbnail handler"). Could that be the case?

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 20 Sep 2014 02:52
by dovetail
Yes, aside from these .ai files, the thumbnail generating issue has dramatically improved. Still no go with the icons nor these .ai files though.

As the uploaded capture shows, looking at the same files in both XYplorer and Windows Explorer, all of the thumbnails are seen and rendered properly in Windows Explorer.

.ai files aren't the only ones that still don't generate. As I scan through my drive, I see .psd and .jpgs that don't render either. I'd roughly guess (as I quickly check this directory) that perhaps 75 - 100 or so of the 2000 files are affected.
admin wrote:...AI thumbs: If Explorer can show them and if you are on 64-bit Windows, then Adobe did not install the 32-bit shell extension for creating thumbnails (the "thumbnail handler"). Could that be the case?
I'm not sure how to answer this or to find out if this has happened. Could you please provide some guidance?

Re: Thumbnail refresh &"Out of Memory" error in XYplorer14.4

Posted: 20 Sep 2014 10:52
by admin
Conc. Out of Memory errors: I could still get them in extreme situations. Not the kind of problem I'm willing to tolerate. So I rewrote the whole thing and now there won't be any Out of Memory errors anymore. :cup:

Conc. AI thumbs: Don't know. Anybody here who gets AI thumbs working?