Page 1 of 1

UMS seems to get stuck on last folder when building cache

Posted: Tue Jan 26, 2016 8:12 pm
by chamelious
Doesn't seem to mention in the logs, it just remains on "scanning LASTFOLDER" indefinitely, and when UMS is closed and reopened "enable the cache" is no longer selected. Latest version of UMS on W7_64, has defo worked in the past!

Any ideas?

Re: UMS seems to get stuck on last folder when building cache

Posted: Wed Jan 27, 2016 10:07 am
by Nadahar
Follow the red text above.

Re: UMS seems to get stuck on last folder when building cache

Posted: Thu Jan 28, 2016 1:11 am
by chamelious
Attached.

Re: UMS seems to get stuck on last folder when building cache

Posted: Thu Jan 28, 2016 3:22 am
by Nadahar
I've looked at it and been unable to replicate your results. The debug files doesn't give me enough information to be sure what is going wrong, although I can see that something is going wrong at the end.

I've built a modified version of UMS with extra logging around the place where it crashed to try to pin exactly what is going wrong. You can download it here. Please install this version, create new debug files while scanning and post them here.

Re: UMS seems to get stuck on last folder when building cache

Posted: Thu Jan 28, 2016 8:11 pm
by chamelious
Thanks, installed and rerun.

Re: UMS seems to get stuck on last folder when building cache

Posted: Thu Jan 28, 2016 10:32 pm
by Nadahar
Your cache is corrupt and disables itself during scan. Not a very good solution, but there is a log entry for it which I missed:

Code: Select all

DEBUG 2016-01-28 08:11:45.740 [AWT-EventQueue-0] net.pms.dlna.DLNAMediaDatabase Cache connection error: File corrupted while reading record: null. Possible solution: use the recovery tool [90030-191]
I don't know which recovery tool the error mentions, the easy solution is to just delete the cache file. The cache file is:

Code: Select all

<UMS profile folder>/database/medias.mv.db
UMS profile folder is by default and in your case located here:

Code: Select all

C:\ProgramData\UMS\
I'll see if I can find any way to make this a bit more clear if it happens, I didn't even spot it myself ;)

Re: UMS seems to get stuck on last folder when building cache

Posted: Thu Jan 28, 2016 11:28 pm
by chamelious
Many thanks that seems to have worked.