Bugzilla – Bug 1856
can't play any music scanned from iTunes Library
Last modified: 2008-09-15 14:36:01 UTC
just downloaded 6.1.1 and 6.2, both showing same behaviour. Was working fine previously (haven't upgraded for a couple of weeks) All appears well from the interface, library is scanned correctly, tracks/playlists visible however ALL music added to playlist is ignored. Player skips through all tracks & stops on last one. Windows XP, library scanned from iTunes. Log: 2005-07-23 09:09:05.6814 openSong on: file:///E:/iTunes/Morane/Everyone%20Is%20Like%20You/02%20Living%20on%20A%20Traffic%20Island.mp 3 Use of uninitialized value in concatenation (.) or string at /PerlApp/Slim/Player/Source.pm line 1360. 2005-07-23 09:09:05.6857 openSong: getting duration 215.17, size , endian and offset 0 for file:///E:/iTunes/Morane/Everyone%20Is% 20Like%20You/02%20Living%20on%20A%20Traffic%20Island.mp3 2005-07-23 09:09:05.6865 openSong: not bothering opening file with zero size or duration 2005-07-23 09:09:05.7028 the next song is number 53, was 52 2005-07-23 09:09:05.7379 Setting maxBitRate for Downstairs to: 256 2005-07-23 09:09:05.7386 Setting maxBitRate for Downstairs to: 256 2005-07-23 09:09:05.7732 undermax = 1, type = mp3, squeezebox = 00:04:20:05:6c:aa, lame = 2005-07-23 09:09:05.7739 checking formats for: mp3-aif-squeezebox-00:04:20:05:6c:aa 2005-07-23 09:09:05.7745 checking formats for: mp3-aif-*-00:04:20:05:6c:aa 2005-07-23 09:09:05.7750 checking formats for: mp3-aif-squeezebox-* 2005-07-23 09:09:05.7754 checking formats for: mp3-aif-*-* 2005-07-23 09:09:05.7759 checking formats for: mp3-wav-squeezebox-00:04:20:05:6c:aa 2005-07-23 09:09:05.7765 checking formats for: mp3-wav-*-00:04:20:05:6c:aa 2005-07-23 09:09:05.7769 checking formats for: mp3-wav-squeezebox-* 2005-07-23 09:09:05.7774 checking formats for: mp3-wav-*-* 2005-07-23 09:09:05.7779 checking formats for: mp3-mp3-squeezebox-00:04:20:05:6c:aa 2005-07-23 09:09:05.7784 checking formats for: mp3-mp3-*-00:04:20:05:6c:aa 2005-07-23 09:09:05.7789 checking formats for: mp3-mp3-squeezebox-* 2005-07-23 09:09:05.7793 checking formats for: mp3-mp3-*-* 2005-07-23 09:09:05.7798 Checking to see if mp3-mp3-*-* is enabled 2005-07-23 09:09:05.7802 enabled 2005-07-23 09:09:05.7806 Found command: - 2005-07-23 09:09:05.7811 Setting maxBitRate for Downstairs to: 256 2005-07-23 09:09:05.7817 Setting maxBitRate for Downstairs to: 256 2005-07-23 09:09:05.8125 Matched Format: mp3 Type: mp3 Command: - Use of uninitialized value in concatenation (.) or string at /PerlApp/Slim/Player/Source.pm line 879. 2005-07-23 09:09:05.8135 opening next song (old format: , new: mp3) current playmode: stop 2005-07-23 09:09:05.8140 Adding song index 53 to song queue 2005-07-23 09:09:05.8145 Clearing out song queue first 2005-07-23 09:09:05.8150 Song queue is now 53 2005-07-23 09:09:05.8160 openSong on: file:///E:/iTunes/Morane/Everyone%20Is%20Like%20You/03%20I%20Do%20it%20Best.mp3 Use of uninitialized value in concatenation (.) or string at /PerlApp/Slim/Player/Source.pm line 1360. 2005-07-23 09:09:05.8200 openSong: getting duration 194.533, size , endian and offset 0 for file:///E:/iTunes/Morane/Everyone%20Is %20Like%20You/03%20I%20Do%20it%20Best.mp3 2005-07-23 09:09:05.8208 openSong: not bothering opening file with zero size or duration 2005-07-23 09:09:05.8374 Backtrace: frame 0: Slim::Player::Source::playmode (/PerlApp/Slim/Player/Source.pm line 831) frame 1: Slim::Player::Source::gotoNext (/PerlApp/Slim/Player/Source.pm line 405) frame 2: Slim::Player::Source::playmode (/PerlApp/Slim/Player/Source.pm line 789) frame 3: Slim::Player::Source::jumpto (/PerlApp/Slim/Control/Command.pm line 1245) frame 4: Slim::Control::Command::execute (/PerlApp/Slim/Web/HTTP.pm line 667) frame 5: Slim::Web::HTTP::processURL (/PerlApp/Slim/Web/HTTP.pm line 532) frame 6: Slim::Web::HTTP::processHTTP (/PerlApp/Slim/Networking/Select.pm line 115) frame 7: Slim::Networking::Select::select (slimserver.pl line 636) frame 8: main::idle (slimserver.pl line 579) frame 9: main::main (slimserver.pl line 61) frame 10: PerlSvc::Interactive (perlsvc.pl line 1485) frame 11: PerlSvc::_interactive (slimserver.pl line 0) frame 12: (eval) (slimserver.pl line 0)
I thought I'd found the problem; I copied the prefs file to the new installations without editing the path. But even after fixing that and a full rescan this problem continues.
I see this is marked fixed - Was there a problem or am I stupid? Is it safe to try again with a later version?
reopening - this isn't fixed as far as I can tell. Have downloaded last night's release (25th) and done a completely clean install. Selected 'use iTunes' in server settings and waited for rescan to complete. Add a playlist to a player and all tracks are skipped with the error above. Checked d_info output, File Size etc is populated: 2005-07-25 20:02:18.4818 New track for file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 2005-07-25 20:02:18.4829 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : FS to 9058959 2005-07-25 20:02:18.4837 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : YEAR to 1998 2005-07-25 20:02:18.4843 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : TITLESORT to ST UKA SEVEN 2005-07-25 20:02:18.4850 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : SECS to 422.53 2005-07-25 20:02:18.4856 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : TITLE to Stuka Seven 2005-07-25 20:02:18.4862 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : CT to mp3 2005-07-25 20:02:18.4871 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : BITRATE to 1710 00 2005-07-25 20:02:18.4878 Adding file:///E:/Compilations/Jockey%20Slut%20JUKEBOX/04%20Stuka%20Seven.mp3 : TRACKNUM to 4 I wonder if the problem is the location of my music - E:/ - there are a number of posts in the forum from people having trouble with drive letters. This has always worked before though. (am running SlimServer from command prompt, not as a service)
This is a 6.2 thing, I'm sure. the new (experimental) itunes parser is mixing things up a bit. I can certainly reproduce this in 6.2. wiht 6.1.1, I have not seen this. Please ERASE your db file (wipes entire db structure, instead of just wipe cache which only clears the tables)
6.1.2 is working OK for me. Problems there must have been down to me mucking up the config files.
possile. 6.2 also changes the pref file to YAML instead of the old raw key-value text pairs. Going back will mix those up as well. 6.2 got dumped with a lot of experiments (long held waiting on local copies) after 6.1.x was branched. not sure about the dates.
sorry, that target should have been 6.2
updated Summary - as it seems like this is iTunes only problem? I scanned some music in the normal manner and could play it. I have done a completely clean install of 6.2 and the problem persists so not config file related. Also noticed that iTunes scan is not enabled by default - in 6.1 I believe it is if iTunes is detected?
songs seem to be able to play at song level. This appears to be similar to the bitrate problem that killed 6.1 so fast. At the album or artist level, all the items are lightweighttracks, which dont have audio_size info, so the playback dumps for tracks with zero size or duration.
I think I know why this is happening, for real now. iTunes plugin requires readtags = 1. in handleTrack(), the update is settings readTags to 0. I did thia argument before. apparently, itunes doesn't provide enough info on its own for slimserver to be able to play back music with all the pedantic precision required. Thus, it must ALWAYS readTags to get the real audio size (not file size), offset, etc. Without this, it will fail. In theory, using iTunes with MusicFolder will be ok, but iTunes on its own leaves everything unplayable. Changing line 789 to read: 'readTags' => 1, should do the trick.
yes this came up last time. What is it SlimServer needs that iTunes doesn't give? Surely would be vastly faster if you didn't need to scan the files!
yes, it would, but I've done this argument to death already and lost. with the file size info that itunes provides, without any offset for the header, slimserver will pop as it plays metadata. if slimserver were in the position to dictate formats, it would be different, but instead it has to suffer from dealing with every crazy combination of format and header style/length. regardless, dan fixed this with change 3801.
thanks for the info! fingers crossed.