|
Post by xhorder on Nov 29, 2013 19:56:13 GMT -5
Some background: Used GMMP reliably for months back in the spring, then didn't use it until recently. Found the sdcard corrupt, so I bought a new one and copied everything over.
Since I had updated android and changed phones in the interim, I re-installed GMMP, and ran a new scan. The scanner goes fast up until about 900 files, and then it takes about 5-6 seconds per song. It got until 1793 and then stopped. (I have about 14,000 songs...)
When trying again, if I did NOT select delete database, it would stall at "Scan started'. If I checked delete database it does the same up to 900 fast scan followed by 5 seconds per song.
Any thoughts? It's a Samsung Fascinate running CM10.1
|
|
|
Post by GoneMAD on Nov 30, 2013 0:23:28 GMT -5
it shouldnt take that long.. if it looks like it hangs it usually a sign of a corrupt sdcard or some messed up folder structure that ends up looping the scanner. is prefs -> scanner -> open scanner -> edit scan paths set to only your music folder?
yea but in general its just a general file traverser.. there is nothing complex about it. (it basically takes the top folder.. and says.. give me all the files and folders.. scans the files.. then goes into a folder and asks the android os for the files and folders in that.. and does that until finished). Only reason it should be slow is slow storage or some weird bug in the OS
|
|
|
Post by xhorder on Nov 30, 2013 11:17:51 GMT -5
That's the only folder in the path.
Is there a way to view a log or something that might show what folders it 's getting hung up on?
|
|
|
Post by GoneMAD on Nov 30, 2013 12:51:37 GMT -5
i dont believe each folder is logged out but the scan is done alphabetically.. so you can look at the library to see which folders have already been scanned
|
|
|
Post by xhorder on Dec 14, 2013 13:37:41 GMT -5
Ok, after further messing around, it dies at exactly 900 songs every time. Does that number mean anything to you?
I also ignored the folder it was getting stuck on (by looking at the last album listed in the database), and it just got stuck at 900 again, but at the next album alphabetically.
When I go into Database Stats, it says seems to always say 900 songs, after redoing the scan multiple times.
Also, the scanner seems to keep counting past 900, but at that point each song is taking a couple seconds as opposed to a fraction of a second. And they don't get added to the database. IOW, if I kill the scan at say "940 tracks found" there will still be only 900 songs in the database.
Any thoughts?
|
|
|
Post by GoneMAD on Dec 14, 2013 15:29:25 GMT -5
songs are added to the database in batches of 100 (adding batches to the database is much faster than adding one at a time), so it sounds like the scanner is stuck on whatever the 940th song is. The scanner traverses the folder structure alphabetically, so if you can find the song last added (should be whats at the top of the last added smart playlist), you can follow your folder structure to see what is around 40 songs after the last added song
All folders will be scanned before files, so it will keep digging deeper until it runs out of folders then works its way back up the folder structure
|
|