Issue: Scanning failure when large number of files exist on card. Reordering directories matter.
Setup:
FiiO X7 FW 3.1.7
Sandisk 200GB microSD FAT32 (consistency checks run - reformat performed in case of filesystem issues)
File details:
I have 2 main directories on my card:
FLAC
MP3 <-- (don't judge...)
I have around 1200 flac files in the FLAC folder and around 22000 mp3 files in the MP3 folder.
Occationally I clean the FiiO music database and rescan ONLY the FLAC folder. The flac files within generally do not contain enbedded album art (only a folder.jpg) and so scan completely.
Problem details:
I happened to rename the FLAC folder to MUSIC so I was then left with two folders (please note the flacs are now contained in a folder alphabetically later then the 22000 mp3 files folder):
MP3
MUSIC
After cleaning the database and rescanning ONLY the MUSIC folder for flacs, it stalled at 0 scanned for 5 minutes and then failed to scan any files (empty database).
I repeated the scan several times with the same result (with device reboots to be sure).
I reformatted the card and copied the files back into the MP3 and MUSIC folders. The scan failed again.
I renamed the MUSIC folder back to FLAC, and the scan was successful.
Question:
@FiiO : Is the FiiO music app having an issue with the alphabetical ordering and number of files on the card? It seems that it is performing some sort of filesystem tree parse and can't cope with skipping the 22000 mp3 files, failing before it gets to the flac files. Renaming the flac folder to be alphabetically before the mp3 folder allows it to scan successfully.
I've seen this behaviour before in the workplace when a code module tries to grab the entire filesystem tree to analyse what's there and runs out of memory if there are too many files present.
Setup:
FiiO X7 FW 3.1.7
Sandisk 200GB microSD FAT32 (consistency checks run - reformat performed in case of filesystem issues)
File details:
I have 2 main directories on my card:
FLAC
MP3 <-- (don't judge...)
I have around 1200 flac files in the FLAC folder and around 22000 mp3 files in the MP3 folder.
Occationally I clean the FiiO music database and rescan ONLY the FLAC folder. The flac files within generally do not contain enbedded album art (only a folder.jpg) and so scan completely.
Problem details:
I happened to rename the FLAC folder to MUSIC so I was then left with two folders (please note the flacs are now contained in a folder alphabetically later then the 22000 mp3 files folder):
MP3
MUSIC
After cleaning the database and rescanning ONLY the MUSIC folder for flacs, it stalled at 0 scanned for 5 minutes and then failed to scan any files (empty database).
I repeated the scan several times with the same result (with device reboots to be sure).
I reformatted the card and copied the files back into the MP3 and MUSIC folders. The scan failed again.
I renamed the MUSIC folder back to FLAC, and the scan was successful.
Question:
@FiiO : Is the FiiO music app having an issue with the alphabetical ordering and number of files on the card? It seems that it is performing some sort of filesystem tree parse and can't cope with skipping the 22000 mp3 files, failing before it gets to the flac files. Renaming the flac folder to be alphabetically before the mp3 folder allows it to scan successfully.
I've seen this behaviour before in the workplace when a code module tries to grab the entire filesystem tree to analyse what's there and runs out of memory if there are too many files present.