PDA

View Full Version : XBMC only reads part of music folder into library


Se7enDays
2008-12-22, 03:33
Hi,

I have tagged all my music which was ton of work. Now, I have stored them all in one folder (like ~1800 files) and I want to load them into the music library. It seems that XBMC starts going through the files alphabetically but stops at around ~1400 (sometimes ~1500). If I open the database file it also only shows that many. I have done this a few times now, always the same result. I don't know why XBMC stops reading. Can someone help me?

jmarshall
2008-12-22, 05:58
Do a debug log during a scan and it'll reveal what it's scanning and where it's going wrong.

TheNME123
2008-12-22, 10:30
Hey ,

i had similar problems the last days and i found out that some of my files were corrupted so the scanner could not read them.

This is the thread (i posted a tool there to check for corrupt audio files):

http://xbmc.org/forum/showthread.php?t=42272

Greetings TheNME123

Se7enDays
2008-12-22, 14:36
Here is part of the debug log:
http://pastebin.com/m7cffcc3d

and here is the whole log:
http://pastebin.com/m246895ba

This time it found 1506 out of 1830.

What surprises me is that line where Q:\system\libid3tag.dll is unloaded. Q:\ is not a valid drive in my system.

fanclub
2008-12-22, 14:50
something to try in the meantime... try copying the files into folders, say 300 in each folder, 6 folders

it wont help the problem at hand, i realise that, but if xbmc can process all files in all 6 folders then it will at least eliminate any corrupt file theories

jmarshall
2008-12-23, 00:20
Weird, there's bugger all (i.e. none) logging done in the music scanner.

Will look into it.

Se7enDays
2008-12-23, 01:20
something to try in the meantime... try copying the files into folders, say 300 in each folder, 6 folders

I did that. The folder is completely scanned when there are few files in the folder (~100). But the more files there are the more are missing.

I also scanned for corrupt files. I have a few, but some are scanned and some not, so I don't think that is the problem.

Apparently XBMC scans alphabetically and then stops around letter S or T. Thus there are about 300 files left that have not been scanned.

One funny thing: Try put about 2000 files in one folder and let XBMC scan them into the library. Note the number of files scanned correctly. Then hit Update Library and XBMC will scan again with a different number of succesful scans. Then again, and again ... always a different number. I tried this for a few hours ;) but had never the total number of files scanned :(

Somehow I believe that the Thread that performs the scanning is somehow interrupted by something else before it finishes.

TheNME123
2008-12-23, 10:22
I have similar behavior right now. I have my files in different subfolders.

[Beginning Letter] - [Artists] - [Albums]
W - Who, The - Tommy

If i scan the "W" directory (contains about 1000 files) there are many files missing. If i rescan the "W" directory the missing files get scanned.

When scanning the "Who, The" or the "Tommy" directory all files get scanned and inserted.

Maybe this is the same problem if the amount of files in the folder AND its subfolders is critical.