This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9949 - r20096 - Song not playing, noise instead
Attached to Project:
Rockbox
Opened by Hector Izquierdo (hekoru) - Tuesday, 24 February 2009, 13:50 GMT+2
Last edited by Michael Sevakis (MikeS) - Saturday, 07 March 2009, 06:22 GMT+2
Opened by Hector Izquierdo (hekoru) - Tuesday, 24 February 2009, 13:50 GMT+2
Last edited by Michael Sevakis (MikeS) - Saturday, 07 March 2009, 06:22 GMT+2
|
DetailsHi. I've just updated to revision r20096. My last revision was prior to r20093. Now, sometimes when the tracks change, the playback won't start, and strange noises are reproduced instead. The time counter stays at 00:00. Pausing and resuming playback fixes it.
|
This task depends upon
Closed by Michael Sevakis (MikeS)
Saturday, 07 March 2009, 06:22 GMT+2
Reason for closing: Fixed
Additional comments about closing: Changes in patch seem to fix the problem.
Saturday, 07 March 2009, 06:22 GMT+2
Reason for closing: Fixed
Additional comments about closing: Changes in patch seem to fix the problem.
Also, please be more specific about the bug.
a) What files do you use
b) how long is the playlist
c) What do you exactly do when this bug appears?
d) Do you have a recipe to reproduce?
The playlist is 1558 files long. When this happens I pause, and then resume and it's fixed. I'm afraid I can't give a recipe to reproduce this because it seems random and happened with different files. I'll try to gather more info the next time it happens (I'll look in the debug screen. If there is any information specially relevant please tell me).
The last rockbox version I used was compiled by me, so I'll look what revision It was when I get home.
I'll give it a week, if you don't experience this anymore, to close this.
If you disable fade on pause resume and start pausing the resuming with an mp3 you should see the problem quite quickly. All my mps3 are lame encoded vbr files.
I have not had a chance to grab a screen shot but buffering dose appear to stop from looking at the buffering screen and when playback resumes after pausing and resuming playback again playback jumps back by about a second the same word on my audio book played before pause is repeated.
>> "If you disable fade on pause resume and start pausing the resuming with an mp3 you should see the problem quite quickly"
Sorry, I didn't understand that sentence. The initial report claims it happens on track change.
Then select a directory full of vbr encoded mp3 you should be able to reproduce the problem by pressing play a few times to pause and resume playback.
I have also seen the problem on track change and first resume of playback after shut down on power saving but it dose not happen that often for me that way.
The problems first started for me after updating to get this fix http://svn.rockbox.org/viewvc.cgi?view=rev;revision=20081 as I was seeing crashes on the default wps if I tried to playback any albums with album art which needed to be rescaled. So I just used to use a theme without album art to work round this problem before, but I have now gone back to using the default theme again.
As such maybe you also need playing back an album with a cover.bmp file in the directory that needs to be rescaled to trigger the bug.
In fact, I could reproduce your problem. BUT it's so hard to reproduce for me (in like 500 presses, it happend 3 times). It does never occur in every day use for me.
I have now attached a screen shot of the buffering screen while the problem is occurring.
During a 40 minute car drive yesterday home from work the problem happened 3 times. I guess its all down to how you use rockbox and how often you pause and resume playback as I use the pause feature allot I guess I just trigger the bug more frequently.
I might have a clue about the initial bug though.
one of the wps screen and a second one of the buffering screen.
Again the issue tended to ether trigger on start up or when you changed tracks ether with the end of the track or manually selecting a new track from the file view as I dont use the database much I dont know if that is also effected.
FS#9979):>From time to time during playback or when you pause playback and start it again WM8731 is fed with random data what you can hear as "digital noise". The "noise" stays until >you pause for the second time or rewind.
>
>I think the bug was introduced by r20052 (DMA for playback for PP502x targets) as I noticed it a few times since then. It was also confirmed by my friend, who uses H10 too.
>
>I currently use r20110.
It seems it was introduced earlier, before r20093.
I've only noticed this since the last time I built rockbox: my build is derived from r20088. I too am at least somewhat inclined to suspect the DMA playback change :)
I am also attaching a separate patch which tries to trigger this bug. It is only meant to help testing, and is not meant for committing. After you start playback, from the main menu you can go to System -> Debug (Keep Out!) -> Pause unpause loop. That will keep pausing and unpausing playback, which makes it easier to see the problem. Hold the bottom button (ie. stop) to get out of that. When the bug was present I typically heard noise within a few minutes. After the next pause and resume I would typically have music again.
Hehe, don't make fun of my silliness. :-p
Boris:
The patch aliases two conditions 1) Transfer finished 2) Transfer never got going. In the first case the pointer won't be incremented but it should be.
There is no concern about the interrupt in device level since pcm.c takes care of that synchronization itself.
There's some cruft in
FS#9910in play_stop_pcm that wasn't updated properly for segmented transfers. Also, I"m wondering if the bits are not actually set atomically by the engine./* Tranfer was finished - DMA0_STATUS will have been reloaded
* automatically with size in DMA0_CMD. */
I need to examine and think about this some more.
Sorry about my earlier bad patch.