This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6068 - Position display resets (0:00) on resume
Attached to Project:
Rockbox
Opened by Mikkel Bernhof Jakobsen (bernhof) - Tuesday, 26 September 2006, 16:03 GMT+2
Last edited by Brandon Low (lostlogic) - Saturday, 01 December 2007, 19:35 GMT+2
Opened by Mikkel Bernhof Jakobsen (bernhof) - Tuesday, 26 September 2006, 16:03 GMT+2
Last edited by Brandon Low (lostlogic) - Saturday, 01 December 2007, 19:35 GMT+2
|
DetailsWhen I stop playback (not pause) and resume thereafter, the position sometimes resets to 0:00. I noticed that this occurs when I'm listening to a large file (e.g. a live set) and I've passed a certain point in the file. I tried stopping and resuming playback within the first 5-10 minutes, and this works just fine. But I tried again at around 14 minutes, and this time it reset the position to 0:00. At this point, if I try seeking, it starts playback at the actual position which is shown.
|
This task depends upon
Closed by Brandon Low (lostlogic)
Saturday, 01 December 2007, 19:35 GMT+2
Reason for closing: Out of Date
Additional comments about closing: I'm closing this as if a similar bug still exists, it is most likely a new bug in code now that MoB is in. Please post a new bug if similar issues persist.
Saturday, 01 December 2007, 19:35 GMT+2
Reason for closing: Out of Date
Additional comments about closing: I'm closing this as if a similar bug still exists, it is most likely a new bug in code now that MoB is in. Please post a new bug if similar issues persist.
Does it ever happen with the first file you play, or might it only happen after other files have played?
Are you just pressing STOP, then PLAY to resume? Or are you closing down the player completely?
The bug occurs in both the scenarios you mention: STOP then PLAY, and also on shutdown before resuming. It also occurs both first play and subsequent plays.
Unfortunately I cannot succesfully duplicate the bug:
- When I moved the file to a different directory the bug did not appear.
- I renamed the original directory, created a directory and subdirectories of the same names and copied the file there from a PC. The bug was there.
(The directory structure was "/_podcast/Český rozhlas - věda a technika")
- I renamed the directories to /_A/A and the bug was still there.
- I deleted the .rockbox directory, upgraded the firmware to the latest CVS and reset settings. The bug was there.
- I moved the file to the root directory. The bug was there.
- Deleted the file and transfered it from the PC again. The bug disappeared.
- I tested the file in the original renamed directory ("/_padcast/Český rozhlas - věda a technika") and the bug WAS THERE!
- I compared MD5 checksums of the files. THEY ARE THE SAME: 60a386834c35a777ee9c81c6116304e8.
Now I am getting crazy. My last Idea was that it could be somehow caused by dircache but it is turned off after resetting the settings. Do you have any idea?
Some more notices: The bug also appears after resuming a bookmark (attached). The bug does not appear when you are resuming a point closer to the beggining of the file (maybe less than 28 minutes?) but it seems that this limit changes.
1. On Rockbox HDD create directory "/a".
2. Create an empty file "a.txt" inside the directory.
3. Copy the downloaded 00443746.mp3 into the directory.
4. Play the file.
5. Seek forward at least to 3:00.
6. Stop the playback.
7. Resume the playback (by pressing play on iriver).
Then after stopping and resuming it resumes at the correct point but
the time shown on the display always starts at 0:00.
After deleting the "a.txt" file the bug is still there.
The bug probably depend on the file position in the directory table.
If the bug does not appear try to seek further into the file please.
Let me know if you can replicate the bug please :-)
Sorry, but I still couldn't reproduce (on my H340). Maybe it's related to dircache or some other settings? Could you please post back with your settings (i.e. a .CFG file).
I did some more tests:
1. Upgraded to the latest CVS build
2. Created directories __a __b and __c
3. Copied the file into the directories
4. While booting the new build I cleared the settings.
The directory "a" from the previous test was still there so I tested the file.
I realized that the time point after which the bug appear had moved! In the table below
you can se the time point intervals from the previous test (A), after booting and after switching
the configuration to my settings (they did not move after switching) (B), after rebooting with
my settings (C). You can see that every file has the point at a different place and that the point moves
probably after changing the HDD content.
dir A B C
a 2:00-3:00 27:55-27:57 21:00-22:00
__a --------- 40:31-40:41 24:00-30:00
__b --------- 43:00-43:10 01:10-01:12
__c --------- 04:03-04:05 00:39-00:41
The bug appears with default settings too. My settings are included for completenes.
When trying to reproduce the bug try to seek close to the end of the file.
* The time point after which the bug appears is constant probably when you do not write to the HDD.
* The time point moves probably after writing to the HDD.
* The lines are the different instances of the testing file 00443746.mp3 in the directories /a, /__a, /__b, /__c.
* The three columns represents the three testing situations I mentioned yesterday. The time points did not change during the testing situations but they changed between them.
* The time points were located in the time intervals in the table. Some intervals are wider because it was work-intensive to narrow them down.
/radio
/podcast
/Rush *
/Narnia Fans *
/other *
The files in the rush folder are just encoded with Win-LAME, no ID3 tag at all, and the ones in the Narnia Fans folder I'm not sure what ID3 they have.
/radio/podcast/..
../rush
../Narnia Fans
../other
I saw this with Rockbox build cvs-061208.
Example file path:
/Podcasts/RadioWest/foo.mp3
It is with very large .mp3 files and prevents resuming from bookmarks as well.
One bit of wierdness is that sometimes rockbox will successfully resume, but will fail to properly display the track time, displaying time starting with 0:00. For example, advance to a position 7 hours into a 15 hour .MP3 and shut down. Upon restarting, it might resume playback where it left off, but will diosplay 0:00 and counting. If the user tries to fast advance from that point, playback will resume at the displayed time.
To make things very clear, when a bookmark is executed the resulting time counter says 0:00 while continuing where the bookmark left off. Sometimes, if the file is progressed more than a half hour or so, attempting to resume a bookmark results in the occasional bookmark of the last second of the file to be created.
This bizarre behavior has been going on for about five months. I see it is being reported on multiple players. I lack coding skills so I will continually update my status as I try new builds and the behavior changes.
Please can you check if this is in the current (standard) build or not? Thanks.
Thanks for responding.
Advanced to around 4 hours, shutdown creating bookmark.
Powered up, playback corrected resumed including correct display.
Went back to around 2 hours, shutdown creating bookmark.
Powered up, playback corrected resumed including correct display.
Switched to first bookmark: playback resumed to correct place, but display showed 0:00
Advancing from this point lost playback location and resumed somewhere near 0:00.