View Issue Details

IDProjectCategoryView StatusLast Update
0002533MMW v4DB/FileMonitorpublic2006-08-18 04:49
Reporterrusty Assigned To 
PriorityimmediateSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Fixed in Version2.5.4 
Summary0002533: With some NAS devices, scans are incomplete
DescriptionIf MM is asked to scan \\storage001\music it only finds 70 files, but if I explicitly name all the sub-directories it finds all 2,700 of the files.

By the same token, the File Monitor doesn't work on such devices (since only the top level directory is specified).

Jiri thinks that the network software may be at fault but I can list all directories with no problem and the MM directory browser finds all sub-directories without problem .. it just wont scan the top level directory
 
No other software has trouble scanning this drive and MM has no problem scanning drives on other devices on my network
Additional InformationDevice it is known to occur with (reported by Sean):
Argosy_HD363N

The device costs ~$75 if we want to purchase it.

A log is posted to the ftp server.
TagsNo tags attached.
Fixed in build

Activities

jiri

2006-07-11 10:01

administrator   ~0007430

I have already analyzed this issue and the log doesn't indicate anything wrong, any exception or so. It looks like Windows routines simply report that there are no more files and that's it.

I don't know what more could we do, only trying to play with the device mentioned, hopefully it will be reproducable...

jiri

2006-07-11 10:14

administrator   ~0007431

Actually, I got an idea: since the device is kind of limited PC, there can be some limitation on number of simultaneously openned handles. Currently, in AddToDatabaseRec() in MP3Utils.pas we have a handle (for FindFirstFile()) openned for each folder in a hierarchy, because as soon as FindNextFile() returns a folder, we go into the folder without prior closing the handle.

So, I'd propose to scan content of a folder as we currently do, but don't use recursion until we close the handle (by Windows.FindClose( hndl)), keep list of found folders in a TWideStringList and go into the individually as the last part of the process.

This could fix the reported problem and would be generally more friendly to resources.

petr

2006-07-12 17:56

developer   ~0007466

created change in scan routine (as jiri wrote), but now we need to check, if this solves the problem

rusty

2006-07-31 16:16

administrator   ~0007639

I've raised this to immediate since I've received 4 separate reports of this issue already. Hoping that the change is sufficiently low risk that we can include it in 2.4.

rusty

2006-08-07 13:33

administrator   ~0007684

Users have confirmed that the fix works. Closing.