Boolean Find crashes on 170K+ file list

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
Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Boolean Find crashes on 170K+ file list

Post by Papoulka »

Win10 8GB w XY 17.00.0217, "fresh" instance.

This may be impractical to replicate for debugging but I'm reporting it at least for info.

I have about 8000 folders on an external USB3 drive. These appear in the list pane. Each folder has about 50 items in two subfolders below it. When I run the following Boolean search (see attached JPG):

((01.*.flac) OR (101.*.flac) OR (001.*.flac)) AND (NOT (prop:#audio.bitdepth:16-bit))

XY gets to between 160K and 180K items searched and then crashes. The crash is repeatable and happens every time, though the number of items scanned and the last item searched (redacted in the JPG) differs.

If I remove one term from the search pattern and use this:
( (101.*.flac) OR (001.*.flac)) AND (NOT (prop:#audio.bitdepth:16-bit))

then XY completes the search over about 400K items with no problems. So I don't think one bad file is causing the problem. It seems like info overflow somewhere.

Also, I understand that my search pattern may not be the smartest. But it does what I want, and reveals the issue.
To see the attached files, you need to log into the forum.

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

Re: Boolean Find crashes on 170K+ file list

Post by admin »

The culprit could be among the "01.*.flac" files. What if you do this pattern?

Code: Select all

(01.*.flac) AND (NOT (prop:#audio.bitdepth:16-bit))

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

admin wrote:The culprit could be among the "01.*.flac" files. What if you do this pattern?

Code: Select all

(01.*.flac) AND (NOT (prop:#audio.bitdepth:16-bit))
This crashes in the same way, at about 179K files checked.

Using "0.1.*.flac" by itself works fine... finds tens of thousands of files.
Also OK is (01.*.flac) AND NOT (02.*.flac)

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

Interestingly...

Both of these crash:
(01.*.flac) AND (NOT (prop:#audio.bitdepth:16-bit))
(01.*.flac) AND ((prop:#audio.bitdepth:16-bit))

This does not crash:
(01.*.flac) AND ( NOT (prop:#audio.channels:2))
but this does crash (finding no files first):
(01.*.flac) AND ((prop:#audio.channels:2))

Off-topic... all of theses are two-channel files, so I'm wondering why "prop:#audio.channels:2" doesn't see them. From the MS docs "2" is the right choice.

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

Re: Boolean Find crashes on 170K+ file list

Post by admin »

Interesting indeed. I see no logic in this. But I still think it's a certain file. Can you maybe isolate it by size (halfing the field each time):
(01.*.flac) AND (size: < 500KB) AND ((prop:#audio.bitdepth:16-bit))
Papoulka wrote:Off-topic... all of theses are two-channel files, so I'm wondering why "prop:#audio.channels:2" doesn't see them. From the MS docs "2" is the right choice.
Ah, I changed this in v17.00.0217! Stupid idea. I returned "Stereo" instead of "2". I will undo this change.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

I'll begin trying to narrow down the crash scenario.

On "prop:#audio.channels:2" - The MS docs do indicate "2" and "1" as values, but elsewhere I found "2 (stereo)" and "1 (mono)". So I'm not sure which is right.

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

Re: Boolean Find crashes on 170K+ file list

Post by admin »

Papoulka wrote:I'll begin trying to narrow down the crash scenario.
Great! I'm about to compile 17.10 for release. IF it is a bug would be nice to fix it before. ;)

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

OK, I've found the culprit file. You can get it from Dropbox via this link:
https://www.dropbox.com/s/fllk7detpy1qv ... .flac?dl=0

XY crashes when it encounters this file under a Boolean search with pattern: (01.*.flac) AND ((prop:#audio.bitdepth:16-bit))

The file plays fine in Winamp and props there look OK. I have files from the same album with tracks beginning 02. 03. etc and will see if others give the same crash problem, but wanted to report this result quickly.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

Just for info, it turns out that all FLACs in this album have the same problem, whatever it is.

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

Re: Boolean Find crashes on 170K+ file list

Post by admin »

Crash confirmed! Thanks. :tup: Gonna fix now... :twisted:

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

Re: Boolean Find crashes on 170K+ file list

Post by admin »

Got it. Fix comes.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

Fix confirmed, thanks! :tup:

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Boolean Find crashes on 170K+ file list

Post by Papoulka »

Further thought on this: The diagnosis and troubleshooting were confused by the fact that when the XY search crashed, the folder ID varied each time and was never the one with the bad files. See the attached picture. If this had pointed to the culprit folder I could have isolated the problem immediately.

Maybe this label can't keep up with the search for processing reasons... Just pointing this out in case it can easily be improved.
To see the attached files, you need to log into the forum.

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

Re: Boolean Find crashes on 170K+ file list

Post by admin »

Unfortunately not possible in this case. This particular type of crash comes with a small but indefinite delay.

Post Reply