This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8520 - iPod 5G: Songs skipped when playing from directory
Attached to Project:
Rockbox
Opened by jason (fallacy13) - Sunday, 27 January 2008, 07:25 GMT+1
Last edited by Mustapha Senhaji (DrMoos) - Sunday, 24 February 2008, 14:59 GMT+1
Opened by jason (fallacy13) - Sunday, 27 January 2008, 07:25 GMT+1
Last edited by Mustapha Senhaji (DrMoos) - Sunday, 24 February 2008, 14:59 GMT+1
|
DetailsWhen attempting to play songs straight out of "files" view, RockBox will occasionally skip a song (usually the third one for some reason) while adding it to the playlist.
|
This task depends upon
Closed by Mustapha Senhaji (DrMoos)
Sunday, 24 February 2008, 14:59 GMT+1
Reason for closing: Fixed
Additional comments about closing: Fixed r16392
Sunday, 24 February 2008, 14:59 GMT+1
Reason for closing: Fixed
Additional comments about closing: Fixed r16392
Will it play the skipped songs if they are selected directly?
First off the problem affects certain folders consistently for me, no matter which track I'm starting the playlist with the track after the next will be skipped; starting with track 10 or 11 in a folder which contains 12 tracks will skip the last track and chosing track 12 often goes to the WPS for a split second but will immediatly stop and drop me back to the file browser sometimes it doesn't even go to WPS, just showing a bit "disk" activity in the statusbar but stays in the browser and doesn't start playback. In such a folder, "resume" will start playback from the track start of the next track.
What I can see is best explained with an example, let's say in my broken folder are track-1.mp3 to track-4.mp3. When I start the dynamic playlist by selecting track-1, the following happens:
- playback starts, WPS shows correct info of track-1.mp3, next track info is blank buffering is going on (disk activity shown)
- when it knows that there is a next track (indicated by a graphic in a %?Fn conditional in my WPS), it'll show the metadata of track-1.mp3 as next track info
^this indicates a "broken" folder, if it's a working one it either is still blank or it shows the metadata of a track that was next track in my previous playlist
- after a few more seconds of buffering (I assume when the metadata of track-2 is read in), the next info line will be updated correctly with track-2 but...
at the same time playlist position info switches to "2" even though position 1 is still playing, the playlist viewer also indicates track 2 as playing now
(this playlist position change is the one thing that is visible in the default WPS too)
- on track-1 > track-2 change: track-2 starts playing correctly, playlist position is again one off at "3", next track info shows track-4 info...
- track-2 changes to track-4 (so track-3 is skipped) everything else is in sync again too
As I said, in some folders there is no problem at all and I couldn't see any connection between working folders which makes them different to non-working ones or vice versa. (Checked for bitrates, ID3 types, folder names, number of files in a folder, other files in the folder, date I put them on my player - nothing specific to tell me if it's a broken one or not). After putting a new Rockbox version on today (and initialising the database 2 times), 2 of the directories I noted as problematic suddenly started working but this at least seems to stay this way. I have no idea why because I didn't touch the content of these folders. Most of these noted down ones are still broken though.
All files were CBR MP3. Album art was present, using Cabbie 2.0.
Mainly I wanted to note that this isn't just a Sansa, or flash-based target problem, or restricted to the File Browser.
About the album art suspicion: also one of my thoughts in the beginning. My WPS shows album art but I only have like 7 or 8 albumname.bmps and it happened in folders with and without them; even one of the folders that suddenly started working again contained album art. And as I said, I also tried with the text only default WPS and the same happens there.
> but I do have Gather Runtime Data enabled, so maybe that's doing something silly.
Hmm - I had it enabled too, it was also suspicious to me and I /thought/ I turned it off for my tests... but it was still enabled when I checked back right now. Turned it off and the first folder I tried, that had the problem, seems to play fine now.
P.S.: No, unfortunately this can't be everything, just tried a different folder and it's still there.
If I pull track 1 up and it's displaying it as track 2, I can hit the back button to restart the track, and it starts displaying it as track 1 properly at this point, and the problem goes away. It's a simple work-around, but kind of a nuisance at the same time.
Most of my albums are Ogg Vorbis at q6 (ripped with EAC and encoded with oggenc2). Also tried some MP3 albums too (downloaded not ripped) and they played correctly too.
Just updated both targets to r16231-080206 and repeated the above tests (same albums) - again everything played correctly on both targets. I am perplexed that I am not seeing the same behaviour others are...
If there is any info you want from my apparently working DAPs then let me know.
About the "gather runtime" idea: considered it to be possible first BUT I've since deleted all .tcd files, initialised database again multiple times with this setting off and it is still happening in some of my folders. I also tried what happens when I enable this setting on my M5 and I couldn't see this behaviour there, every folder plays fine there - even a "broken" one that I copied directly from my c200 to the Iaudio. So now I think that it doesn't have to do with it.
Deleting a folder and copying the original from my PC again or placing a "broken" folder one level up in the directory structure did not have any influence - it remained broken on the c200.
About different settings in general: interestingly I could "break" 1 or 2 more folders by enabling settings which take more RAM (e.g. raising "Max files in dir", enabling "Cuesheet support" and ".last-FM log").
Then I tested with different builds and found out that this behaviour definitily /occured/ with revision 16105 (16104 and earlier doesn't show any problems) but I'm not convinced that this is the root cause (admittedly more of a feeling though). To investigate further I isolated some commits to playlist/playback/buffering and reversed them as patch to revision 16246 - only one commit at a time individually and in reversed chronological order. No changes until revision 16019 but when reverting the changes between 16018 and 16019 I at least get a different behaviour: now the first track is skipped almost immediately. That means - I select track-1 > Rockbox shows WPS with track-1 for a second and then jumps to track-2, so at least playback and playlist position are the same. And this again happens only but consistently in those "affected" folders, others still play fine.
I still have not the faintest idea what determines a broken folder, I hope this inspires someone...
Tests were done with .rockbox completely wiped each time, so no settings not default. Test directory had 9 SPCs and a non-music file at the end.
Maybe jhMikeS's comments in the 16154 commit will be helpful?
The same directory, copied a few levels higher in the hierarchy, plays the first track fine.
So if the directory is in /, /musica, or /musica/emu it works. If it is in /musica/emu/spc or /musica/emu/spc/a it does not.
Path length may be having something to do with it. "/musica/4 Nin Shogi 4nsOOOOOOOOOOO" (11 Os) works, but rename it to "/musica/4 Nin Shogi 4nsOOOOOOOOOOOO" (12 Os) and it doesn't. However, 13 Os works, too! (14 does not, etc).
Up to 7 Os works (for a path of 23+7=30) but 8 (31) doesn't, 9 (32) does, 10 (33) *does*, 11 (34) does, 12 (35) doesn't.
---
This doesn't seem to be fully consistent, I can't get arbitrarily named directories of these lengths doing the same thing.
It happens when playing from a directory or from the database, and it happens almost all the time for me.
Typically it will play through track 1, then play track 2 but it will show on the display as track 3. The 'next' track is therefore listed as track 4 and it promptly plays track 4. Thus skips the real track 3.
Also happened to me on track 10 with one album, although it might be related there to stopping/starting frequently. i.e. maybe it's just always the 2nd track?. Unfortunately at work I have to stop/start frequently.
My albums and tracks are arranged in the format '/Music/Artist/YYYY - Album Name/NN - Track Name.mp3' (where YYYY is the year and NN is the track number, e.g. 01).
All MP3s are converts with LAME by Foobar2000 from Flac rips off my original CDs using EAC.
I'd say the severity of this is higher than 'low' as it really prevents listening to albums which I do a lot, unless there's a workaround.
Something of note with all of this is it appears to take a while to update the 'Next' track for display. It may initially get it entirely wrong and then after 10 seconds or so it updates. Still has a problem with track 3 and 10 though.