FS#8081 - Playback stops on Sansa before the song has finished

Attached to Project: Rockbox
Opened by Tony DeFusco (ToneDeF) - Saturday, 03 November 2007, 19:24 GMT
Last edited by Brandon Low (lostlogic) - Sunday, 04 November 2007, 05:53 GMT
Task Type Bugs
Category Music playback
Status Closed
Assigned To No-one
Operating System Sansa e200
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No


While a song is playing on the Sansa, the playback just stops without warning. There is nothing that can be done to resume playback of the current track. The only available options from that point are to skip forward to the next track; hold down the rewind button until the previous track starts playing (skipping backward to the previous track does not work).

In an attempt to fix  FS#8049 , a code change by nicolas_p on 30 Oct 17:24 seems to have exposed a new flaw in audio playback on Sansas. According to saratoga, "the MOB patch makes an assumption about the ATA setup that does not hold because of the odd way the Sansa's flash is organized. As a result, the encoded audio buffer never refills and playback simply stops when it empties."

While the playback was frozen on my Sansa e280R, I copied down the following information (not sure if there is anything useful here):

Debug Buffering thread:

pcm: 0/529200
alloc: 22410752/27950208
real: 332544/27950208
usefl: 11296/27950208
data_rem: 30167552
track count: 4
handle count: 8
cpu freq: 30MHz
boost ratio: 0%
pcmbufdesc: 0/21
Core and stack usage:

Idle(0): 0%
Idle(1): 53%
0: (0) *R 4 54% main
1: (0) S 4 5% scroll
2: (0) B 6 3% usb
3: (0) S 6 13% backlight
4: (0) S 6 30% power
5: (0) T 6 77% ata/sd
6: (0) T 8 11% tagcache
7: (0) S 4 93% codec
8: (0) T 8 74% audio
9: (0) B 4 21% voice code
10: (0) T 4 20% buffering
11: (0) B 4 2% pcmrec
12: ---
13: ---
14: ---
15: ---
16: ---
This task depends upon

Closed by  Brandon Low (lostlogic)
Sunday, 04 November 2007, 05:53 GMT
Reason for closing:  Duplicate
Additional comments about closing:  dupe  FS#8077 
Comment by Jan (dumbo20) - Saturday, 03 November 2007, 20:20 GMT
What music format did you use? I had (and still have) a similar bug with flac files. See  FS#8074 
Comment by Tony DeFusco (ToneDeF) - Saturday, 03 November 2007, 20:51 GMT
The problem has been reported with MP3 files, but I believe one other user posted in the forum thread that it also happened with "vorbis Q6 - ripped with EAC and encoded with oggenc2".
Comment by MichaelGiacomelli (saratoga) - Saturday, 03 November 2007, 21:02 GMT
Rather then quote my half remembered summary, its better to see what was said in the logs by amiconn:

20:41 onward.
Comment by Bob Jones (aquabanianskakid) - Sunday, 04 November 2007, 02:44 GMT
I'm having the same problem on mine with both mp3 and ogg files. It happens rather frequently, usually I can only make it through 3-4 files before it stops again. I had to switch back to the sansa firmware just so I could play music on my road trip.
Comment by MichaelGiacomelli (saratoga) - Sunday, 04 November 2007, 03:50 GMT
r15447 did not appear to impact this.