Page 1 of 1
search similar files crashes
Posted: Wed May 28, 2014 11:42 am
by lian
Hello, when I use search similar files tools, XnView MP Version 0.66 crashes if the directory contains more than 1000 files (same problem on two different directories). With 300 files, it works.
Re: search similar files crashes
Posted: Wed May 28, 2014 12:51 pm
by xnview
lian wrote:Hello, when I use search similar files tools, XnView MP Version 0.66 crashes if the directory contains more than 1000 files (same problem on two different directories). With 300 files, it works.
only image files?
Re: search similar files crashes
Posted: Wed May 28, 2014 2:23 pm
by lian
I made a test: I demanded not to scan zip and xcf files. It worked. I added xcf files and it crashes. So I suppose it's xcf files the problem.
Re: search similar files crashes
Posted: Thu May 29, 2014 7:58 am
by m.Th.
Windows Seven Premium family 32 bits
1000 files means most probably that the program reached its 2GB addressable memory space for a 32bit process. Hence "Out of Memory error". You can look for it in Task Manager/Resource Monitor looking for the Total Peak Memory usage for the process just before it dies. I know that Pierre is aware of the problem, but for this very concrete module I don't know now how to implement a "window" (iow, to discard some files already processed) in order to conserve memory.
Of course, using the x64 version will cure the problem. Yes, I know. Been there, done that.
Just be sure that it is an Out of (addressable) Memory issue for a 32bit process.
Note: Perhaps your tool will measure the process's private bytes hence will show "just" 1,7-1,8 GB of memory allocated.
Re: search similar files crashes
Posted: Thu May 29, 2014 8:12 am
by lian
I'm a little surprised by the memory problem as I did not have any problem with bigger directories in previous versions. But I'm not sure xcf files were involved. I will make some more tests to see. Well, a good reason to install Windows64 bits but I'm too lazy for this.
Re: search similar files crashes
Posted: Thu May 29, 2014 1:21 pm
by lian
Some tests: for a 3000 files only jpg directory, no crash. For a 15 files mixed files with some xcf no crash, with 1000 files mixed crash. I put the screen capture of memory and CPU usage.
Re: search similar files crashes
Posted: Thu May 29, 2014 1:24 pm
by lian
OK, I took a look at all the xcf in the directory and I found one what makes XNviewMP crash if I try to open it. So I suppose it may be the problem. As it's a working project I can not share it here. Is there an email where I can send it ?
Re: search similar files crashes
Posted: Fri May 30, 2014 2:09 pm
by xnview
yes on contact at xnview dot com
Re: search similar files crashes
Posted: Fri May 30, 2014 2:39 pm
by lian
Link to dowload file sent. Thanks.
Re: search similar files crashes
Posted: Mon Jun 02, 2014 7:46 am
by xnview
lian wrote:Link to dowload file sent. Thanks.
ok, i can reproduce...