Rockbox

Tasklist

FS#12693 - Error accessing playlist control file after USB connection

Attached to Project: Rockbox
Opened by Bertrik Sikken (bertrik) - Monday, 11 June 2012, 12:42 GMT
Task Type Bugs
Category Playlists
Status New
Assigned To No-one
Operating System Sansa AMSv2
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Current developer build (2012-06-10), on Sansa Clip Zip
While audio is playing, connecting USB and disconnecting it again causes a splash with message "Error accessing playlist control file". Sometimes followed by a hard crash (like undefined instruction).

Initial analysis shows that the problem occurs in playlist.c:get_filename. An lseek in the playlist control file fails. This lseek fails because the file descriptor (fd) was closed during USB connection. On receiving a SYS_USB_CONNECTED event in apps/misc.c, function system_flush() calls playlist_shutdown().
So the playlist subsystem seems to have been de-initialised during USB connect, but not completely, causing problems when the playlist subsystem resumes during USB disconnect.

This is reproducible on the simulator.
This task depends upon

Comment by Fred Bauer (freddyb) - Wednesday, 18 July 2012, 12:15 GMT

Loading...