search similar files crashes

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
lian
Posts: 230
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

search similar files crashes

Post 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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: search similar files crashes

Post 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?
Pierre.
User avatar
lian
Posts: 230
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: search similar files crashes

Post 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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: search similar files crashes

Post 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.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
lian
Posts: 230
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: search similar files crashes

Post 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.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
User avatar
lian
Posts: 230
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: search similar files crashes

Post 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.
2014-05-29_15h14_50.png
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
User avatar
lian
Posts: 230
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: search similar files crashes

Post 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 ?
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: search similar files crashes

Post by xnview »

yes on contact at xnview dot com
Pierre.
User avatar
lian
Posts: 230
Joined: Wed Nov 24, 2004 8:53 pm
Contact:

Re: search similar files crashes

Post by lian »

Link to dowload file sent. Thanks.
SF, illustrations et mes BD sur mon blog: https://www.li-an.fr/
Windows 10 Home 64 bits
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: search similar files crashes

Post by xnview »

lian wrote:Link to dowload file sent. Thanks.
ok, i can reproduce...
Pierre.
Post Reply