Page 1 of 3

gPhotoShow runs out of memory while scanning folders

Posted: Sun Feb 07, 2016 8:18 am
by steodatus
Hello,
I have gPhotoShow Pro 7.3.0 build 787 running on a windows 10 pro system configured with a set of folders mounted from a samba server. These folders altogether contain more than 4 million pics.
After the screen saver kicks in while the folders are being scanned, I get an error dialog with an 'out of memory' message. It's pretty obvious that cutting down on the number of pics will resolve the issue but is there another way around it?
I find it hard to believe that 32GB of memory are not enough. At a guess, this is a 32 bit program that runs out of allocated (allocatable?) memory while building the file list.

I apologize if this a duplicate but when I try to search for this topic, I get an answer saying that the words 'out', 'of', and 'memory' are not searchable because they are encountered too often.

steodatus

Re: gPhotoShow runs out of memory while scanning folders

Posted: Sun Feb 07, 2016 10:01 am
by gpb
Hello,
gPhotoShow Pro is a 32bit program so it has a 2Gb memory limit, 4 millions of images could be handled by the program only if the memory allocation is below 2Gb.
I think the only solution is to reduce the number of pictures.

Re: gPhotoShow runs out of memory while scanning folders

Posted: Sun Feb 07, 2016 10:03 am
by steodatus
That is not the best of news.
Are you planning on releasing a 64 bit version?

Re: gPhotoShow runs out of memory while scanning folders

Posted: Mon Feb 08, 2016 10:40 am
by gpb
x64 version is not planned for now, the problem is only due to a third party library I am using, it requires an additional license for the x64 version and it is rather expensive.

Re: gPhotoShow runs out of memory while scanning folders

Posted: Mon Feb 08, 2016 1:02 pm
by steodatus
oh, well. i appreciate the quick answers. just of curiosity, which library are you talking about?

Re: gPhotoShow runs out of memory while scanning folders

Posted: Mon Feb 08, 2016 3:49 pm
by gpb
The software is SoftwarePassport, I am using it to protect the program from reverse engineering and handle registration keys. SoftwarePassport has been discontinued so sooner or later I will have to switch to another system and when it will happen I will think about getting also the 64bit license but for now I can't say when it will happen.

Re: gPhotoShow runs out of memory while scanning folders

Posted: Tue Feb 09, 2016 12:10 am
by steodatus
Ahhh, I understand.
I am more of an open source dude so I never thought about that type of library but it does make sense.

Thank you for the information

Re: gPhotoShow runs out of memory while scanning folders

Posted: Wed Feb 10, 2016 4:25 am
by steodatus
Gianpaolo,
Besides too many files, what else could trigger this problem?
I've cut down on the files to about 3 million and the number of folders down to about 11,000. The whole thing is configured to load the files recursively from a single directory on a mapped network drive. The recursion depth is rarely more than 2; there are only 2 folder trees that go 4 or 5 deep. I've enabled logging and I am going to dump the log here once it gets populated. Is there a way to increase the log level?

I use the same folder for wallpaperSS and that one doesn't exhibit the problem.

The share used by the images folder is subject to some contention; there are 3 other clients using it at the same time together with the server itself and there is a real-time backup service running against it. Could this have anything to do with the problem?

There is an error in the windows applications log about gphoto but it doesn't look related. Let me know if I should post the event here.

Re: gPhotoShow runs out of memory while scanning folders

Posted: Wed Feb 10, 2016 4:29 am
by steodatus
I forgot to mention in my last post that the first time the screen saver kicked in with that configuration, it worked with no problems but every time after that, it raised the out of memory error.

Re: gPhotoShow runs out of memory while scanning folders

Posted: Wed Feb 10, 2016 9:00 am
by gpb
There is a known issue with Nikon raw files codec (nef files), it doesn't release all used memory and gPhotoShow quickly goes out of memory. Also damaged or malformed exif tags could cause this issue.
Which gPhotoShow version are you using ? How many monitors do you have ? Version 7 uses much less memory than version 6, the same is for WallpaperSS, version 4 uses less memory than version 3.
In any case a log file from gPhotoShow could help to find the issue, you can send me a pm or an email (the icon near "Contact" on the right of this post) with the log.