Page 1 of 1

Out of memory while searching files

Posted: 17 Nov 2016 10:21
by MBaas
Fehler 7

Error: 7 (0x00000007)
Desc: Out of memory
Dll: 0
Proc: InStrFile: C:\Windows\Panther\MigLog.xml, @1

Source: XYplorer
XY ver: XYplorer 17.30.0201
OS: Windows 10, 64-bit
Locale: 1031
ANSI: 1252
ACP: 1252 (ANSI - Lateinisch I)
DBCS: No
DPI: 96 (100%)

Date: 2016-11-17 10:19:14

Re: Out of memory while searching files

Posted: 17 Nov 2016 10:46
by highend
- What file size has "C:\Windows\Panther\MigLog.xml"?
- What kind of search did you use exactly, e.g. a content search?
- How much ram does your system have?
- And how much was available at the time before that search?

Re: Out of memory while searching files

Posted: 17 Nov 2016 11:03
by MBaas
That file has 241.141kb. My machine has 32GB and when I just repeated search & crash, there were 18.9GB available before the search: I was looking for *.xml-files with certain content in c:\ and subfolders...(no significant changes in RAM-Utilization during that search)

Re: Out of memory while searching files

Posted: 17 Nov 2016 11:18
by highend
What happens when you go directly into:
"C:\Windows\Panther"
and make the same search again?

Because it doesn't seem to be bound to a file that is that large in size...
My test.xml with 273MB was searched for "time" (content) without
a crash...

Re: Out of memory while searching files

Posted: 17 Nov 2016 11:35
by MBaas
Same crash - but coming up faster ;-/
Fehler 7

Error: 7 (0x00000007)
Desc: Out of memory
Dll: 0
Proc: InStrFile: C:\Windows\Panther\MigLog.xml, @1

Source: XYplorer
XY ver: XYplorer 17.30.0201
OS: Windows 10, 64-bit
Locale: 1031
ANSI: 1252
ACP: 1252 (ANSI - Lateinisch I)
DBCS: No
DPI: 96 (100%)

Date: 2016-11-17 11:33:13

Re: Out of memory while searching files

Posted: 17 Nov 2016 11:40
by highend
Can you zip it to a reasonable size and put in on a filehoster (dropbox, mega, whatever)?
Add screenshots of your exact search setup (name, content, any other used options)

Re: Out of memory while searching files

Posted: 17 Nov 2016 11:44
by PeterH
MBaas wrote:That file has 241.141kb. My machine has 32GB and when I just repeated search & crash, there were 18.9GB available before the search: I was looking for *.xml-files with certain content in c:\ and subfolders...(no significant changes in RAM-Utilization during that search)
Hm - XY is 32 bit. So, I'm afraid, these values don't help a lot.

Re: Out of memory while searching files

Posted: 17 Nov 2016 11:52
by highend
I just wanted to make sure that his system didn't suffer from not having enough ram while doing the search. The resource monitor doesn't see any major increasing ram usage while the search is happening anyway. This is not about XY being a 32-bit application (it could address only 2GB at a time). A larger .xml file is searched without a crash on my system (with 16GB physical and 8GB in use) while on his it crashes with a smaller one so let's see if this is reproducable on a different system with the same file...

Re: Out of memory while searching files

Posted: 17 Nov 2016 12:00
by MBaas
File & Screenshots available here :-)

Re: Out of memory while searching files

Posted: 17 Nov 2016 12:38
by highend
Thanks

The problem for XY is: The encoding of the file...

In UTF-8 (with or without BOM): XY crashes
with UTF-16 LE without BOM: It doesn't crash but doesn't find the search term
with UTF-16 LE with BOM: It doesn't crash and does find the search term

Don needs to fix this behavior...

Re: Out of memory while searching files

Posted: 17 Nov 2016 13:18
by MBaas
Ok, thanks for the research! :-)

Re: Out of memory while searching files

Posted: 17 Nov 2016 13:27
by admin
Thanks, got the file, will check out ASAP.

Re: Out of memory while searching files

Posted: 17 Nov 2016 16:00
by admin
OK, guess I fixed it.

Re: Out of memory while searching files

Posted: 22 Nov 2016 09:50
by admin
So, I assume the fix was good?

Re: Out of memory while searching files

Posted: 23 Nov 2016 07:57
by MBaas
Sry for not confirming, but yes, it was good - oh man, how good it was!!!