This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6215 - player crashes after trying to resume deleted music file
Attached to Project:
Rockbox
Opened by Marc Beeson (flagger) - Friday, 20 October 2006, 15:43 GMT+2
Last edited by Nicolas Pennequin (nicolas_p) - Wednesday, 09 January 2008, 00:49 GMT+2
Opened by Marc Beeson (flagger) - Friday, 20 October 2006, 15:43 GMT+2
Last edited by Nicolas Pennequin (nicolas_p) - Wednesday, 09 January 2008, 00:49 GMT+2
|
DetailsAfter deleting a music track and auto resume is on, player will crash if a new music file is selected after auto resume is attempted. current workaround is to start device, turn off auto resume, turn off device, turn on device, select new music file, turn auto resume back on.
|
This task depends upon
Closed by Nicolas Pennequin (nicolas_p)
Wednesday, 09 January 2008, 00:49 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r16028.
Wednesday, 09 January 2008, 00:49 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r16028.
Some changes to the audio initialisation sequence have been made - can you grab a CVS or daily build and see if this is still a problem for you? Please report back here either way.
I'm using daily 22/12 2006, the bug is still there
the bug reproduces in the sim too.
This comes out when I choose the 'new' file.
---8<----
We open the real file 'archos/mus/Swing.mp3'
ID3V2 Length: 0x0
Header: fffb9044, Ver 0, lay 3, bitr 128, freq 44100, chmode 1, mode_ext 0, emph 0, bytes: 417 time: 1280/49
Space between ID3V2 tag and first audio frame: 0x0 bytes
First frame is at 0
We open the real file 'archos/.rockbox/codecs/mpa.codec'
---8<----
the display says 'Loading..' and its hung..
2577 copy_n = MIN(conf_filechunk, filebuflen - buf_widx);
(gdb) n
2578 rc = read(fd, &filebuf[buf_widx], copy_n);
(gdb)
conf_filechunk == 0 => copy_n == 0 => reading forever!
however, it does not play..
bt
#0 audio_fill_file_buffer (start_play=false, rebuffer=true, offset=0)
at playback.c:2933
#1 0x08082599 in audio_new_playlist () at playback.c:3359
When I set start_play=true manually it works!
I see this frequently with podcasts- I will listen to one, delete it via rockbox, and on the next power-up it hangs when trying to resume the file. It looks like it is selecting the next file, but resuming at the position of the last (deleted) file. In the case of podcasts, the new file might be significantly shorter than the previous, maybe trying to resume far enough after the end of a file causes a hang?
The only way I've found to fix this once it occurs is to delete the playlist control file from a PC connection (reset doesn't help).
Player is a H320. I've seen this problem on multiple builds over the last 3-4 months. Currently running r15989-080103.