search similar files crashes
Moderators: helmut, XnTriq, xnview, Dreamer
search similar files crashes
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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
Re: search similar files crashes
only image files?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.
Pierre.
Re: search similar files crashes
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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
Re: search similar files crashes
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.Windows Seven Premium family 32 bits
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.
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: search similar files crashes
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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
Re: search similar files crashes
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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
Re: search similar files crashes
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 ?
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
Re: search similar files crashes
Link to dowload file sent. Thanks.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
Windows 10 Home 64 bits
Re: search similar files crashes
ok, i can reproduce...lian wrote:Link to dowload file sent. Thanks.
Pierre.