Rockbox

  • Status New
  • Percent Complete
    0%
  • Task Type Bugs
  • Category Playlists
  • Assigned To No-one
  • Operating System Sansa AMSv2
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by bertrik - 2012-06-11

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

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.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing