This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8999 - CPU stays boosted when skipping to the next track while buffering is still in progress.
Attached to Project:
Rockbox
Opened by Martin Ritter (MartinR) - Friday, 16 May 2008, 12:22 GMT+2
Last edited by Thomas Martitz (kugel.) - Wednesday, 10 June 2009, 19:16 GMT+2
Opened by Martin Ritter (MartinR) - Friday, 16 May 2008, 12:22 GMT+2
Last edited by Thomas Martitz (kugel.) - Wednesday, 10 June 2009, 19:16 GMT+2
|
Details- start playing an album of mp3 files
- quickly skip to the 2nd track - go to the view buffering thread screen Buffering will stop prematurely and CPU remains boosted. This doesn't seem to happen with VBR encoded mp3 files, though. |
This task depends upon
Closed by Thomas Martitz (kugel.)
Wednesday, 10 June 2009, 19:16 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r21244.
Wednesday, 10 June 2009, 19:16 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r21244.
FS#8964- I was wrong: It also happens with VBR files, but not with all albums though. I wasn't able to figure out the difference yet.
- It also happens if the 1st track is very short, so that the 2nd track starts while still buffering.
- It doesn't matter whether or not album art is present.
FS#8964. Does it fix this issue too by any chance?FS#8964doesn't fix this one.I was able to track it down to a point where tracks[track_widx].id3_hid is -1 in buffering_handle_finished_callback(). That's probably wrong and causes buffering to stop prematurely because Q_AUDIO_FINISH_LOAD is not fired. But here I stuck.
Attached are two logf dumps with and without skipping the first track. I added two logf lines in buffering_handle_finished_callback() below the existing:
logf("handle %d finished buffering", *data);
logf(" track_widx=%d", track_widx);
logf(" id3_hid=%d", tracks[track_widx].id3_hid);
Hope this helps.
When i have "Gather Runtime Data" enabled, sometimes the CPU stays boosted when one track ends and the next starts. I dont have to skip. What i also see is, that the buffers are not filled up.
With "Gather Runtime Data" disabled everything works fine, and i am not able to reproduce the bug.
It looks like, that the writing of the runtime data disturbes the reding of the mp3-file.
FS#9576and I narrowed the problem down to being introduced between r17103 and r17111. I have not yet tested the builds between those, but right now I suspect the problem was introduced in your buffering rework patch committed in r17109. I'm trying to set up a dev env now to verify.FS#9576?