Out of memory while searching files

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
MBaas
Posts: 710
Joined: 15 Feb 2016 21:08

Out of memory while searching files

Post 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
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * F² * LinkTree

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Out of memory while searching files

Post 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?
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 710
Joined: 15 Feb 2016 21:08

Re: Out of memory while searching files

Post 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)
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * F² * LinkTree

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Out of memory while searching files

Post 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...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 710
Joined: 15 Feb 2016 21:08

Re: Out of memory while searching files

Post 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
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * F² * LinkTree

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Out of memory while searching files

Post 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)
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Out of memory while searching files

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

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Out of memory while searching files

Post 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...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 710
Joined: 15 Feb 2016 21:08

Re: Out of memory while searching files

Post by MBaas »

File & Screenshots available here :-)
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * F² * LinkTree

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Out of memory while searching files

Post 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...
One of my scripts helped you out? Please donate via Paypal

MBaas
Posts: 710
Joined: 15 Feb 2016 21:08

Re: Out of memory while searching files

Post by MBaas »

Ok, thanks for the research! :-)
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * F² * LinkTree

admin
Site Admin
Posts: 67304
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Out of memory while searching files

Post by admin »

Thanks, got the file, will check out ASAP.

admin
Site Admin
Posts: 67304
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Out of memory while searching files

Post by admin »

OK, guess I fixed it.

admin
Site Admin
Posts: 67304
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Out of memory while searching files

Post by admin »

So, I assume the fix was good?

MBaas
Posts: 710
Joined: 15 Feb 2016 21:08

Re: Out of memory while searching files

Post by MBaas »

Sry for not confirming, but yes, it was good - oh man, how good it was!!!
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * F² * LinkTree

Post Reply