Bug 3999 - Double album names after scan, SlimServer UI
: Double album names after scan, SlimServer UI
Status: RESOLVED WORKSFORME
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.5b1
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-25 02:04 UTC by Dave Stearns
Modified: 2008-12-18 11:11 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Stearns 2006-08-25 02:04:31 UTC
Just tried 6.5b1 to see if #3699 (double track names in playlist) was fixed, and it is.  Thanks for that since my Squeezebox is much more usable now.  However, now after a scan to rebuild the database, the album list shows most of the album names twice.  Other oddities:

** Album count is inflated (now 301 but there are only about 180), so the database must have double entries for albums.

** The alphabetic index of buttons at the bottom of the album list ends with a bogus label (below copied from Slimserver screen):

1 A B C D E F G H I J K L M N O P R S T U V W ¡

Clicking the final tag does nothing obvious, so I this may be an end-condition bug in the code that creates the button list.

-- Dave S
Comment 1 Chris Owens 2006-08-25 09:24:00 UTC
Hi Dave,

Are you using iTunes?  Moodlogic?  MusicMagic/MusicIP?  Any other plugins?
Comment 2 Dan Sully 2006-09-02 17:17:32 UTC
Dave - do you have any playlists or Windows Shortcuts?

Thanks
Comment 3 Dan Sully 2006-09-08 10:25:48 UTC
ping
Comment 4 Dave Stearns 2006-09-08 22:25:34 UTC
Oops -- I "replied" to Bugzilla instead of going into the system.
1. iTunes was installed but unused.  I deinstalled it since then so I can't check if iTunes had its music folder set to something other than that used by Slimserver.
2. No playlists other than those created on the fly by Slimserver as albums were played.  The doubling of names was pervasive, far beyond the set of albums that I had listened to.
3. I updated 6.5b1 to get radiotime, and I note that the alphabetic index bug has been fixed.  Now the last index character is an upside down exclamation point, which is correct ("Viva" by Ottmar Liebert begins and ends with the Spanish exclamation points).
4. I will rescan to see if the doubling behavior has changed with SlimServer 6.5b1 - 9474.
Comment 5 Dan Sully 2006-09-08 22:29:54 UTC
Great. Please let us know, we're going to be releasing an official beta in the next few days.

thanks
Comment 6 Dave Stearns 2006-09-09 22:40:58 UTC
Duplicate album names still occur with the 6.5b1 (6.5b1 - 9474 - Windows XP - EN - cp1252).

I did a complete rescan ("clear library and rescan everything") and my album list still consists mostly of duplicates.

Am I getting the nightly build by re-downloading 6.5b1?  Now I have the radiotime plugin, but otherwise SlimServer behavior seems to be the same w.r.t. duplicate album names.
Comment 7 Dan Sully 2006-09-10 17:00:08 UTC
Can you run with --d_scan and --d_import turned on?

Thanks
Comment 8 Dave Stearns 2006-09-11 03:00:11 UTC
OK, but how?  I run Windows XP and not Linux --how do I set command line options (d_scan and d_import?)?  I can't find anything about d_scan or d_import in the docs or wiki.  Do I start Slimserver from the Win command line with something like

slimserver -d_scan -d_import  ???
Comment 9 Dave Stearns 2006-09-11 04:57:34 UTC
Found d_scan and d_import on the "Debugging" control in the Slimserver UI, checked both, applied them, and rescanned my music.  No change in the malbehavior -- still the same set of duplicate album names.  Is there a debug trace to look at?
Comment 10 Dan Sully 2006-09-11 09:32:10 UTC
Subject: Re:  Double album names after scan, SlimServer UI

>Found d_scan and d_import on the "Debugging" control in the Slimserver UI,
>checked both, applied them, and rescanned my music.  No change in the
>malbehavior -- still the same set of duplicate album names.  Is there a debug
>trace to look at?

Sorry - I should have been more specific.

Yes, please start slim.exe on the command line, with the debugging flags.

Comment 11 Dan Sully 2006-09-11 23:12:28 UTC
Sorry - I didn't see an answer. Do you have any Windows Shortcuts in your Music Folder or Playlist Folder?

Thanks
Comment 12 Dave Stearns 2006-09-12 02:34:28 UTC
1. Nope, no shortcuts in the folders. The structure is just e:\Music\My Music\ with subfolders for artist, and sub-subfolders for album names. Music is all flac.
2. OK, I ran slim.exe. What next?  No output in the cmd window, in fact no indication that it is complete, but it has been an hour or so since it started, and the disk activity light has stopped blinking.
Comment 13 Dave Stearns 2006-09-12 03:05:34 UTC
Aha! I just realized that there are "m3u" files in the album directories, along with the flac track files.  Is the scan picking up the name of the m3u file as well as the album name embedded in the flac tags, and entering both in the db?

There is a lot of room for ambiguity here.  The album could have 3 names: the album dir name, the embedded tag name, and the m3u name.  How does the scan resolve the ambiguity?
Comment 14 Dan Sully 2006-09-12 07:20:14 UTC
Dave - is your Playlist Folder set to be the same as your Music Folder?

By default, SlimServer will ignore any playlist (.m3u) files in your Music Folder.

It will look for embedded tag names, failing that, it will guess by file/dir name.


Let's try the slim.exe from the command line again:

slim.exe --d_import --d_scan --d_info --logfile=slimlog.txt

Give that a minute to start up, and then start a Wipe & Rescan from the WebUI Settings page.

Once the scan is complete, please attach the logfile to this bug.

Thanks
Comment 15 Dave Stearns 2006-09-12 11:15:51 UTC
I don't think this is what you want:
2006-09-12 18:32:22.6200 Connected to database dbi:mysql:hostname=127.0.0.1;port=9092;database=slimserver - schema version: [2]
2006-09-12 18:32:23.3281 loading types config file...
2006-09-12 18:32:23.4805 ERROR: There is already another copy of the SlimServer running on this machine. (Unknown error)

How do I get rid of the initial copy of SlimServer??
Comment 16 Dan Sully 2006-09-12 11:45:37 UTC
Shut down SlimServer using the tray icon.

If you don't have a tray icon, find SlimServer in the Administrative Tools -> Services pane and stop it.
Comment 17 Dave Stearns 2006-09-13 06:20:40 UTC
Nope -- I tried several times in various ways, and I can't get the UI to start after I "run" slim.exe with the debugging flags.  This is the current contents of the log file:

2006-09-13 15:11:35.6875 Connected to database dbi:mysql:hostname=127.0.0.1;port=9092;database=slimserver - schema version: [2]
2006-09-13 15:11:37.1250 loading types config file...

and that's all!  Am I supposed to leave the cmd window open once slim.exe has started?  It doesn't appear to matter though -- closing it or leaving it open, I can't get SlimServer to start again, and the UI won't come up.  To get the server up again, I have to reboot.
Comment 18 Dan Sully 2006-09-17 14:43:37 UTC
Yes, you are supposed to leave the command window open.

Can you make sure you don't have any other slim.exe processes running by using the Task Manager?

A reboot should not be necessary to have SlimServer start again.

Is there anything interesting in the Event Viewer?

Thanks
Comment 19 Dan Sully 2007-01-08 16:49:55 UTC
Dave - this is really more of a support issue. Please contact them: support@slimdevices.com

Thanks