Bug 1474 - Directory scan ignores lots of files
: Directory scan ignores lots of files
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Audio
: 6.0.2
: Other RedHat Linux
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-30 12:47 UTC by Andreas Jung
Modified: 2008-08-18 10:54 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 Andreas Jung 2005-04-30 12:47:26 UTC
Since a while the directory scan seems to ignore a lot of files (because of some internal Perl errors
I assume):
2005-04-30 21:38:14.6729 index: 29
2005-04-30 21:38:14.6742 itempath: Herbert Gr�hnemeyer and file:///media2/media/mp3/Pop made 
file:///media2/media/mp3/Pop/Herbert%20Gr%EF%BF%BDhnemeyer
Use of uninitialized value in concatenation (.) or string at /usr/local/slimserver//Slim/Utils/Scan.pm 
line 384.
2005-04-30 21:38:14.6769 isList(file:///media2/media/mp3/Pop/Herbert%20Gr%EF%BF%BDhnemeyer) 
== 
2005-04-30 21:38:14.6774 not a list: file:///media2/media/mp3/Pop/Herbert%20Gr%EF%BF%
BDhnemeyer
2005-04-30 21:38:14.6778 Skipping unknown type: file:///media2/media/mp3/Pop/Herbert%20Gr%EF
%BF%BDhnemeyer
2005-04-30 21:38:14.6794 numitems: 15807
2005-04-30 21:38:14.6798 index: 30


Is there something I can do to resolve this issue?
Comment 1 Andreas Jung 2005-04-30 12:55:40 UTC
Additional info: the OS is Fedora Core 3, Perl  version is 5.8.5
Comment 2 Dan Sully 2005-06-02 22:11:38 UTC
Andreas - what is your LC_CTYPE/LANG environment variable set to?

Can you try the latest nightly or subversion release?

Thanks.
Comment 3 Andreas Jung 2005-06-03 07:49:22 UTC
LANG was set to en.UTF8 (default on FC3). I unset now LANG and LC_TYPE. The latest 6.1 build
now shows "locale: iso-8859-1" but the error remains
Comment 4 Dan Sully 2005-06-03 07:55:22 UTC
Ok - please make sure that your LC_CTYPE is set to en_US.UTF-8 before launching slimserver.

Does that help?

If not - would it be possible to get ssh access to your machine?
Comment 5 Andreas Jung 2005-06-03 08:27:44 UTC
The latest version + changing LC_CTYPE as requested helped a lot not not totally. Accented chars are 
now recognized but there seem to be trouble with some files containing spaces (however other 
filenames with spaces are scanned properly):

lassik/Composer/Urmas%20Sisask/Gloria%20Patri/12%20Credo.mp3] - skipping!
2005-06-03 17:25:12.3780 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Jazz/Stevie%
20Wonder/Talking%20Book/07%20-%20Big%20Brother.mp3] - skipping!
2005-06-03 17:25:12.3801 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Klassik/
Composer/Johannes%20Brahms/Brahms%20%20Rhapsodies,%20Intermezzos,%20KlavierSt%20cke/
Romance%20in%20F%20major,%20op.%20118%20no.%205.mp3] - skipping!
2005-06-03 17:25:12.3994 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Pop/The%
20Alan%20Parsons%20Project/Tales%20Of%20Mystery%20And%20Imagination/03_The%20Tell-tale%
20Heart.mp3] - skipping!
2005-06-03 17:25:12.5457 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Klassik/
Artists/Vladimir%20Horowitz/Horowitz-Encores/18-Sousa---Horowitz--The-Stars-and-Stripes-
Forever.mp3] - skipping!
2005-06-03 17:25:12.5483 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Pop/Loreena%
20McKennitt/Misc/Loreena%20Mckennit%20-%20Standing%20Stones.mp3] - skipping!
2005-06-03 17:25:12.6583 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Klassik/
Composer/Frederic%20Chopin/Meister%20des%20Klaviers%20Disc%203,%20Rudolf%20Buchbinder,%
20p/Drei%20Ecossaiesen,%20op.%20post.%2072%20Nr.%203-5.mp3] - skipping!
2005-06-03 17:25:12.6607 Couldn't retrieve objectForUrl: [file:///media2/media/mp3/Pop/Elton%
20John%20&%20Billy%20Joel/Billy%20Joel%20and%20Elton%20John-Rocketman%20(1).mp3] - skipping!
Comment 6 Dan Sully 2005-07-05 17:19:13 UTC
Andreas - please try this again with the July 6th nightly build (in a few hours) - and let me know.

I checked in a large reworking of the Unicode handling in SlimServer.

Thanks.
Comment 7 Andreas Jung 2005-07-07 22:54:45 UTC
There are still outstanding issues with file names containing whitespace (latest
nightly build (July 7th):

Turtle%20Island%20String%20Quartet/The%20Hamburg%20Concert/10%20-%20Marwa%20in%20the%20Pines%20(With%20You).mp3]
- skipping!
2005-07-08 07:53:07.3436 Couldn't retrieve objectForUrl:
[file:///media2/media/mp3/Klassik/Artists/Turtle%20Island%20String%20Quartet/The%20Hamburg%20Concert/11%20-%20Ensenada.mp3]
- skipping!
2005-07-08 07:53:07.3457 Couldn't retrieve objectForUrl:
[file:///media2/media/mp3/Klassik/Artists/Turtle%20Island%20String%20Quartet/The%20Hamburg%20Concert/12%20-%20Stolen%20Moments.mp3]
- skipping!
2005-07-08 07:53:07.3474 Couldn't retrieve objectForUrl:
[file:///media2/media/mp3/Klassik/Artists/Turtle%20Island%20String%20Quartet/The%20Hamburg%20Concert/13%20-%20Skylife.mp3]
- skipping!
2005-07-08 07:53:07.3491 Couldn't retrieve objectForUrl:
[file:///media2/media/mp3/Klassik/Artists/Turtle%20Island%20String%20Quartet/The%20Hamburg%20Concert/14%20-%20Who%20Do%20You%20Think%20You%20Are%3F.mp3]
- skipping!

Comment 8 Dan Sully 2005-07-07 22:58:02 UTC
Andreas - can you please upload your slimserversql.db file (zipped) to this bug?

There shouldn't be any issue with spaces.

Are all the accented files working now?

Thanks
Comment 9 Andreas Jung 2005-07-07 23:29:33 UTC
All files including the ones with spaces and accents are in the database
although this error message is misleading. If there are no issues with such
filenames there should not be such comments in the logfile.
Comment 10 Dan Sully 2005-07-11 12:14:25 UTC
Ok - so at this point you're saying everything is working, but we're spewing error messages that we 
shouldn't be?
Comment 11 Andreas Jung 2005-07-11 21:29:47 UTC
Yes. That's what I am saying.
Comment 12 Dan Sully 2005-07-11 23:16:48 UTC
Ok - that's somewhat confusing though - the error messages you are getting indicate that there aren't 
actually objects in the client playlist stash.

Does this happen when you play any track? Or if you load a playlist?

Thanks.
Comment 13 Dan Sully 2005-07-19 13:54:16 UTC
If the spew is still an issue with the latest nightlies, please open another bug.

Thanks.
Comment 14 Chris Owens 2008-03-11 11:28:13 UTC
This bug was marked resolved in Slimserver 6.1, which is several versions ago.  If you're still seeing this bug, please re-open it.  Thanks!