Bug 575 - Song Count is doubled, with Moodlogic enabled
: Song Count is doubled, with Moodlogic enabled
Status: RESOLVED DUPLICATE of bug 583
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 5.x or older
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-23 11:22 UTC by Greg Hamilton
Modified: 2008-12-18 11:51 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Hamilton 2004-09-23 11:22:57 UTC
Appears that SlimServer is haveing a problem with Moodlogic enabled, and is
doubling the number of songs reported in the library.

Moodlogic reports 13,896
SlimServer reports 28,160 both in the browser and via
Settings>Information>Library Stats on the player.

This may not be related but I have also noticed when using Felix Meulers's PDF
reporting tool that each album/track prints twice if Moodlogic is enabled.
Comment 1 KDF 2004-09-23 11:42:25 UTC
This may be the result of the same bug that caused moodlogic playlists to be
empty.  Please try the Sept 23 nightly build to verify.

Also, this can often be due to mismatched data between what moodlogic has stored
and the music files.  an overly obvious example is if you've recently moved file
locations.  

I'm not seeing the doubling now on my setup, so hopefully the nightly is all
that is needed to fix this :)
Comment 2 Greg Hamilton 2004-09-23 14:20:33 UTC
Tried the 9/23/04 nightly and after wiping the cache the Song count was 
~46,000.

Changed server settings to be sure moodlogic was enabled, and then set
the music folder to blank and wiped cache..  Once I did this it was
count is the same as Moodlogic. BTW it was blindingly fast (Just a few minutes 
version 30 minutes before).  However while browing AlbumArt I noticed the Song 
Count was increasing.  It looks like item are being duplicated if the are 
being loaded from the music folder.  I'm assuming that becuase ML doesn't have 
AlbumArt data. that the folder is scanned on demand.



Comment 3 KDF 2004-09-23 15:03:04 UTC
I'm curious how it went up even more.  Are you sure you did a wipe cache, vs
just a rescan?  The wipe cache function has been moved to Server settings,
performance.
Please confirm.  

If you have done this, could you try running the server from a command prompt
like so:
c:\program files\slimserver\server\slim.exe --logfile mylog.txt

then after its started up, go into server settings, debugging.  click d_info and
d_moodlogic.  Then go into server settings, performance, and click wipe cache. 
Wait for a few minutes for the scan to complete then check the song count again.
 Take note of that number then you can close the server.  Zip mylog.txt and
hopefully it will then still be small enough to email to
slim-mail@deane-freeman.com.  If you feel up for it yourself, search the log to
the same song being mentioned in a different way.  it should be similar to:
file:///D:/mp3/PEARL%20JAM/Lost%20Dogs/PEARL%20JAM%20-%20(05)%20Wash.mp3
any differences you find can be posted here.
Comment 4 KDF 2004-09-23 15:07:29 UTC
oh, its been so long I almost forgot...
You might need to clear out old player playlists, the ones that start with __
and have the playerID as the name.  If that fixes it, we'll have to work on
that.  They are supposed to be read in and translated, but it could be a fault
there.
Comment 5 Greg Hamilton 2004-09-23 15:39:12 UTC
okay.

I'm going to delete player playlists.
I'm going to set  music folder to o:\my music
I'm going to enable moodlogic
I'm going to start via slim.exe with the debug flags set.

BTW.  yes it was wipe Cache before.
Without deleteing old playlist my song count is now  41,387.
Moodlogic is reporting 13,800

I'll report back in a little bit.  I't takes about an 45 mintues to
Comment 6 KDF 2004-09-23 19:29:31 UTC
There will almost always be some discrepancy among numbers.  The new server
allows iTunes, MoodLogic, and Audio Dir in any combination.  if you have a music
folder set, it will Merge with the moodlogic data.  Ideally, it should overlap
nicely, but if you have unprofiled data, or the profile data doesnt fit well
with the tagged data...anything can happen :)  The idea is to get the best of
both, instead of trying to decide which is more important.  The upcoming SQL DB
is likely to help this situation a lot, but I'll certianly look over the log to
see if we've missed anything on what we have now. 
Comment 7 KDF 2004-09-25 02:11:47 UTC
this issue was solved with a workaround, but leads into report bug583

*** This bug has been marked as a duplicate of 583 ***
Comment 8 Chris Owens 2008-12-18 11:51:48 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.