- Status Closed
- Percent Complete
- Task Type Bugs
- Category Operating System/Drivers
- 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
FS#12679 - Data-abort upon USB connection while playing a track and current view is in the WPS
On my Sansa Clip+:
(1) play a track
(2) be in the WPS
(3) connect USB to a computer
(4) data abort occurs. Sometimes it displays a "divide by zero" error.
I have tried connecting the USB while the track was *paused* and two other errors showed up a some point: "SWI" and "Prefetch" errors.
Connecting USB *while in the menu/home screen* does not cause these errors.
But, in this case, I do get a popup that says "Error accessing Playlist Control File" after the USB connection is removed. I don't know if this case is related.
The most recent build at time of this posting, bc4631055fec68bb842057dd5dade9f7e05d9266, does this, but it's been happening for a while.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
I don't know yet what would cause the SWI/Prefetch errors, but I can confirm the "Error accessing Playlist Control File" problem.
I think this is caused by a shutdown of the playlist system (function playlist_shutdown in playlist.c) on USB connect (called through system_flush in apps/misc.c) when a SYS_USB_CONNECTED event occurs.
Function playlist_shutdown closes a bunch of file descriptors, leaving the playlist system in a half de-initialised state. When USB is disconnected, someone peeks into the playlist with playlist_peek and runs into the closed controle file descriptor. This causes the "Error accessing Playlist Control File" message to splash up.
Is this now fixed as of b985d5c?