Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: joe4268 on September 14, 2010, 08:51:07 PM

Title: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 14, 2010, 08:51:07 PM
Hi,  new Sansa Clip+ owner looking for some rockbox love  :)

I am having an issue where, when playing from a mSD card, the clip freezes requiring a loooong power press to reset.  Playing from internal memory is fine, and the original software can play from the mSD card fine as well. 

Basically, within the first 5 or so songs, when I skip to the next song it'll freeze the unit.  The only setting modification was to turn shuffle on.

Here is what I'm using:
    * Sansa Clip+ 2GB with Rockbox r28085
    * 16GB Kodak (Lexar) Micro SD Card, Class 4

Here is what I've tried:
    * reformatted mSD card with 'SD Formatter'
    * checked mp3s for problems (utilities: 'Audio Tester' and 'MP3 Checker')
    * uninstalled rockbox, reflashed original sandisk firmware, reinstalled rockbox

Unfortunately nothing I have done has had any impact.  Does anyone have suggestions?  Thanks!
Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on September 14, 2010, 08:52:43 PM
Can you try a different card?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 14, 2010, 08:55:01 PM
Unfortunately not at this time... I'm trying to find a buddy with a mSD card though.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: funman on September 14, 2010, 09:10:29 PM
Can you try to copy files between internal storage and µSD ? (in both directions)
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 14, 2010, 09:18:56 PM
I'm not sure if I fully understand what you mean.  I've got over 8GB on the mSD, so I couldn't do a transfer to the 2GB onboard storage.  If my steps below don't work, I'll reduce my mp3 files and perform your suggestion.

Fortunately I just realized that my wife's BlackBerry has a mSD card... I'm in the process of loading it up and will post the results within the hour.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on September 14, 2010, 09:25:42 PM
I'm not sure what you mean.  I've got over 8GB on the mSD, so I couldn't do a transfer to the 2GB onboard storage. 

You don't have to copy all of them, just move a few back and forth a couple times and see if it freezes.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 14, 2010, 09:42:52 PM
So the new mSD card (Kingston 8GB) seems to work perfectly with Rockbox so far.

Any reason why the Kodak would work fine with original fw but not rockbox?  Would this be incompatibility with the brand/card combo (i.e. an exchange of the card at the store would likely not help)?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: funman on September 14, 2010, 09:57:33 PM
How are both cards advertized ? (especially "class")

Also can you write what is in system -> debug menu -> disk info for µSD (it's drive 1), for both cards?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 15, 2010, 06:24:55 AM
Both are class 4 cards:

Kingston 8GB (Good):
SD02G Rev 8.0
Prod: 5/2010
M=03, 0=SD
Blocks: 0x003A0000
Speed: 25.0MBit/s
Taac: 15.0ms
R2W: *4
IRmax: 100.80 mA
IWmax: 100.80 mA

Kokak 16GB (Bad):
LEXAR Rev 1.0
Prod: 5/2010
Ser#: 0x0000013C
M=28, 0=BE
Blocks: 0x01DDE000
Speed: 50.0MBit/s
Taac: 10.0ms
R2W: *2
IRmax: 60.20 mA
IWmax: 10.45 mA


Thoughts?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: funman on September 15, 2010, 06:55:11 AM
Kingston 8GB (Good):
Blocks: 0x003A0000

That adds up to 2GB with 512 bytes blocks, so perhaps it's using 2048 bytes sectors ? O:
Anyway if works fine so..

Kingston 8GB (Good):
Speed: 25.0MBit/s

Kokak 16GB (Bad):
Speed: 50.0MBit/s

Perhaps the card doesn't like high speed mode, do you have a build environment to try patches?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 15, 2010, 06:03:16 PM
Perhaps the card doesn't like high speed mode, do you have a build environment to try patches?

Sorry, I'm new to this and don't know what that means!  I'd be glad to test things out though if instructed.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: SpawnHyuuga on September 15, 2010, 06:58:35 PM
Joe, it deals with your Operating system and whether you can build Rockbox patches, either custom or in Flyspray.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 15, 2010, 08:33:58 PM
Ahh, that seems a little out of my league unfortunately (building patches)
Title: Re: Sansa Clip+ Freezes During Playback
Post by: funman on September 16, 2010, 12:07:30 AM
Hm ok

Did you try to copy a bunch of files to/from the bad microSD?

Just copy a big folder (a coupe of hundreds megabytes would be fine), that could give a clue if the problem only happen when using both storage and playback at the same time.

FlynDice might have an idea but he's not really been there recently (he's quite busy afaik)
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 17, 2010, 01:36:11 PM
Did you try to copy a bunch of files to/from the bad microSD?

I tried the copy and it worked perfectly on both cards... only playing (changing songs) is causing my freezing problems in RB.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: funman on September 17, 2010, 01:56:06 PM
Can you try this build (http://jones.videolan.org/~videolan/funman/rockbox.zip) ?

It's r28095 with sd_enable() effect removed so SD is not disabled when not in use.

This might have an effect on battery life but if the problem is disabling SD and shortly after re-enabling it you should notice it.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 17, 2010, 07:31:13 PM
Hi, thank you for the new build  :)  unfortunately it's the same result :(   the first 4 songs were fine, but when I skipped to song 5 it froze again (I let each song play for about 15-20 seconds then press 'next').
Title: Re: Sansa Clip+ Freezes During Playback
Post by: funman on September 18, 2010, 12:01:46 AM
Does it always crash on the same song? (It could be that rockbox doesn't like this file for a reason..)

Else I'm out of idea and if FlynDice doesn't give a hint I'm gonna blame the card even if it works fine with the OF ...
Title: Re: Sansa Clip+ Freezes During Playback
Post by: joe4268 on September 18, 2010, 08:28:39 AM
Nope, it's on shuffle and the song it crashes on is different.

I exchanged the card yesterday and the same thing happens (straight exchange, same product -- rules out a single defective card, but it may be something about the whole line of the specific card I have).

I guess I'll just have to suck it up and buy another 16gb card!
Title: Re: Sansa Clip+ Freezes During Playback
Post by: pSiKO on October 06, 2010, 04:49:16 AM
Hi,

I have more or less the same problem (freeze, etc)

reading from my SD card cause RB to freeze (cannot update db or simply read a file)

changing the SDcard to another solve the problem.

BUT this card is correctly read under the OF on the same device or on other device (ex: sansa e280 + RB 3.6)

here is the "disk info" about these cards :

Target : Sansa fuze v2 + RB 28211

----------------------------------------------------
The good one : MicroSD pqi 4GB Class 6

microSD 1
00000 Rev 1.0
Prod: 12/2009
Ser#: 0x75f27f9e
M=1B, 0=SM
Blocks: 0x00796000
Speed: 50.0 MBit/s
Taac: 10.0ms
Nsac: 0 clk
R2W: *2
IRmax: 10..80 mA
IWmax: 5..45 mA
----------------------------------------------------
The faulty one : MicroSD Transcend 4GB Class 6

microSD 1
USD Rev 1.0
Prod: 9/2008
Ser#: 0x4f91052
M=1C, 0=SV
Blocks: 0x0077F000
Speed: 50.0 MBit/s
Taac: 10.0ms
Nsac: 0 clk
R2W: *2
IRmax: 10..45 mA
IWmax: 100..80 mA

----------------------------------------------------

http://pastie.org/1202587

I hope it could help to improve SD card support on RB

Regards
Title: Re: Sansa Clip+ Freezes During Playback
Post by: zaphee on October 25, 2010, 12:52:20 PM
Same problem here : playback freeze when playing from microSD or just browsing microSD.

Target : Clip+ 2GB with a Transcend 8GB class 2 microSD card.


Edit :
info from debug menu :

SU02G Rev 8.0
Prod: 7/2010
Ser#: 0x23482900
M=03, O=SD
Blocks: 0x003A0000
Speed: 25.0MBit/s
Taac: 15.0ms
Nsac: 0 clk
R2W: *4
IRmax: 100..80 mA
IWmax: 100..80 mA
Title: Re: Sansa Clip+ Freezes During Playback
Post by: mc2739 on October 25, 2010, 05:49:31 PM
info from debug menu :

SU02G Rev 8.0
Prod: 7/2010
Ser#: 0x23482900
M=03, O=SD
Blocks: 0x003A0000
Speed: 25.0MBit/s
Taac: 15.0ms
Nsac: 0 clk
R2W: *4
IRmax: 100..80 mA
IWmax: 100..80 mA

It looks like you posted the wrong information.  The disk info you have posted is from a 2G disk - possibly your internal drive (microSD 0) instead of the 8G microSD card (microSD 1).  When you look at disk info, it displays the internal by default.  You must press the select button to switch to the microSD card - the top line of the disk info display should show microSD 1 when the microSD card is properly selected.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: zaphee on October 26, 2010, 05:38:20 AM
info from debug menu :

SU02G Rev 8.0
Prod: 7/2010
Ser#: 0x23482900
M=03, O=SD
Blocks: 0x003A0000
Speed: 25.0MBit/s
Taac: 15.0ms
Nsac: 0 clk
R2W: *4
IRmax: 100..80 mA
IWmax: 100..80 mA

It looks like you posted the wrong information.  The disk info you have posted is from a 2G disk - possibly your internal drive (microSD 0) instead of the 8G microSD card (microSD 1).  When you look at disk info, it displays the internal by default.  You must press the select button to switch to the microSD card - the top line of the disk info display should show microSD 1 when the microSD card is properly selected.

Oh, sorry, didn't pay attention. Here's the right information for the Transcend cass 2 8GB microSD card :

00000 Rev 1.0
Prod: 2/2010
Ser#: 0x76B4B0B8
M=1B, O=SM
Blocks: 0x00ED3000
Speed: 50.0MBit/s
Taac: 10.0ms
Nsac: 0 clk
R2W: *2
IRmax: 100..25 mA
IWmax: 5..10 mA

By the way, I wanted to add that rockbox bootup also freezes if the card is inserted and contains the last played song. I see no main menu, but only the RB logo stuck on the screen. So I have to remove the card, force shutdown and turn the player back on without the card to make it boot correctly. Is anyone else experiencing this?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: zaphee on November 05, 2010, 06:27:23 AM
Up.

http://forums.rockbox.org/index.php?topic=25805.0
My card also still makes the Sandisk OF freeze as well. And it looks like i'm not the only one :
http://forums.sandisk.com/t5/Clip-Clip/Sansa-clip-freezes-when-inserting-sd-card/td-p/146623
http://forums.sandisk.com/t5/Clip-Clip/Sansa-Clip-and-8GB-MicroSD-Not-Working/td-p/210818
Very annoying.
Cards of very different brands may work, and may not. However, interestingly, nobody is complaining about Sandisk cards.
http://forums.sandisk.com/t5/Clip-Clip/Can-Clip-use-MicroSD-HC-Memory-Card/m-p/208452/highlight/true#M33327
So are there that many bad quality Kingston, PNY, Transcend, Kodak/Lexar etc cards ? I don't think so and I'm afraid that Sandisk is not in a hurry to fix that bug (if such there actually is).

Anyways, any thoughts/ideas/workaround/progress/whatever about this issue ?

PS: I can set up a build environment on my Linux box to try patches.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: mc2739 on November 05, 2010, 06:11:15 PM
My card also still makes the Sandisk OF freeze as well.

Quote
Anyways, any thoughts/ideas/workaround/progress/whatever about this issue ?

If your card is failing in Rockbox and in the OF, there is not much we can do about it.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: 7o9 on November 19, 2010, 11:29:29 AM
I'm experiencing a similar problem on my Clip+.

However, I have on both the internal memory and the microSD card.

The freezing only happens when I have the Clip+ on 'shuffle', not when I play in regular order. It happens with both MP3 and FLAC and usually after 3 or so tracks. The odd thing is that the playing time for the track it freezes on will be higher than the length of the track.

When it freezes and I press a button the display turns on but it won't respond to any other buttons.

Before moving to Rockbox 3.7 I was using an old version from somewhere in july, so I'm afraid I won't be much help to determine when this behaviour crept in.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: Sumguy21 on December 28, 2010, 04:27:27 PM
I'm experiencing the same problem. The system will freeze and require a long hold of the power button in order to restart when I play music off the microSD. It plays fine in the OF.

Here's the disk info on the microsd:

LEXAR Rev 1.0
Prod: 3/2009
Ser#: 0x00002053
M=28, 0=BE
Blocks: 0x00EEF000
Speed: 50.0MBit/s
Taac: 10.0ms
Nsac: 0 clk
R2W: *2
IRMax: 100.25 mA
IWmax: 35..80 mA

I've seen this problem posted quite a bit, so I don't think it's an isolated incident...
Title: Re: Sansa Clip+ Freezes During Playback
Post by: murso74 on December 28, 2010, 06:58:37 PM
my problem is with a samsung 16gb card...   sometimes it will play a few songs but usually freezes after one or less
Title: Re: Sansa Clip+ Freezes During Playback
Post by: Noio on December 29, 2010, 08:31:33 PM
happens to me as well, works fine in the original firmware. i'm using a sandisk 4gb, so it's not just the other card makers
Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on December 29, 2010, 08:34:49 PM
happens to me as well, works fine in the original firmware. i'm using a sandisk 4gb, so it's not just the other card makers

Could you also report the revision you tested?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: Noio on December 29, 2010, 10:52:59 PM
used the utility to put rockbox 3.7.1 on there

if you need a more specific build number, ask
Title: Re: Sansa Clip+ Freezes During Playback
Post by: Chronon on December 30, 2010, 01:07:53 AM
If you installed 3.7.1 then there is no more specific number to give.  If you installed a "current build" then 3.7.1 is incorrect and you should report the revision number instead.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on December 30, 2010, 10:25:34 AM
used the utility to put rockbox 3.7.1 on there

if you need a more specific build number, ask

Can you update to the current build?  There have been several improvements to the SD driver in the months since 3.7 was branched. 
Title: Re: Sansa Clip+ Freezes During Playback
Post by: Sumguy21 on December 30, 2010, 03:44:20 PM
I've tried the stable 3.7.1, the current build and several alternate builds and none have fixed the issue.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on December 30, 2010, 03:45:01 PM
I've tried the stable 3.7.1, the current build and several alternate builds and none have fixed the issue.

Could you also report the revision you tested?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: Sumguy21 on December 30, 2010, 04:52:05 PM
Just tried it with r28935 and it froze ~3 minutes into playback.

The backlight still lights up when I press a button, but otherwise the system is completely frozen and needs to have a hard restart.

Edit:

I just tried another microSD card and it WORKS. Here's the info on that:
SV08G Rev 8.0
Prod 11/2009
Ser#: 0x7126EFCC
M=03, O=SD
Blocks: 0x00ECE000
Speed: 25.0MBit/s
Taac: 10.0ms
Nsac: 0 clk
R2W: *2
IRmax: 100..25 mA
IWmax 1..45 mA


Also, tried my card that didn't work in the Clip+ and it works fine in a Fuze V2 running 3.7.1

If you need any more help pinpointing the problem, I'll be glad to help. Just want to get Rockbox running smoothly on my clip :)
Title: Re: Sansa Clip+ Freezes During Playback
Post by: gbiz on January 31, 2011, 03:34:21 PM
I upgraded the uSD in my Clip+ at the weekend from a Kingston 8G to a Lexar 16G & i'm seeing this now.

I never had any issues with the Kingston, nor playing from internal memory.

With the Lexar, if i play music from it, play will freeze, usually about a minute in. I can still get into the menus & get to the debug menu, its just the playback that's frozen. I can't skip fwd/back or pause.

When it's frozen, if i browse to another music file & select that for playing it'll bring up the "loading file" box in the display & the disk activity icon at the top right will show. It's then locked up - needs a power cycle.

Booting into the original Sansa firmware & music plays back from Lexar fine (it's been running for the last couple of hours).

This is with 3.7.1 & older. Not tried any nightly build yet.

[microSD 1]
LEXAR Rev 1.0
Prod: 10/2010
Ser#: 0x00000808
M=28, O=BE
Blocks: 0x01DD3800
Speed: 50.0MBits/s
Taac: 10.0ms
Nsac: 0 clk
R2W: *2
IRmax: 60..200 mA
IWmax: 5..25 mA


Post Merge: February 01, 2011, 01:47:01 PM
Just tried the 29178 build - same thing. Playback from the Lexar froze after a few minutes.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: gbiz on April 04, 2011, 09:32:10 AM
Seems to be fixed in r29677 :)
Title: Re: Sansa Clip+ Freezes During Playback
Post by: keyb_gr on April 04, 2011, 06:21:21 PM
I'd guess the recent patch that took out the code attempting to switch cards into high speed mode fixed this... there were several more SD related ones even earlier though. Troublesome cards tended to be 50 MBit/s (high speed) affairs.
Title: Re: Sansa Clip+ Freezes During Playback
Post by: mischasworld on July 12, 2011, 03:46:10 PM
Dear rockboxers,

I'm  reopening this. Since today I'm a proud owner of a refurbished sanza fuze v2.

I rockboxed it, filled it with my music and noticed the same bug as described in this thread.

I have a 16 gb sdhc inserted into my fuze. If i play files from the OF everything is fine, if I play from rockbox the fuze freezes after 3 to 6 songs, but continues playing to the end of the song. I have to switch the fuze off, by pushing the power button for about 10 seconds. I have all my music as ogg files, so I checked mp3 files too, they don't work either. If I play files from the internal flash everything is fine.

[micro SD1]
NCard Rev 1.0
Prod:06/2011
Ser#:0x27003963
M=89, 0=
Blocks: 0x01DD7800
Speed: 25,0 Mbit/s
Taac: 10,0ms
Nsac: 0 clk
R2W: *2

I'll try to get another sdhc card to check.

I'm a linux user and able to compile the trunk. If anyone has an idea, or a patch to try I'm willing to try it out

Thanks for reading

Greetings

Michael

update1: the song doesn't play till the end (my mistake), but they play for some time after the freeze, perhaps until the buffer is empty

Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on July 12, 2011, 03:49:46 PM
Dear rockboxers,

I'm  reopening this. Since today I'm a proud owner of a refurbished sanza fuze v2.

I rockboxed it, filled it with my music and noticed the same bug as described in this thread.

Which build of rockbox are you running?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: mischasworld on July 12, 2011, 03:51:35 PM
first tried 3.9 then actual trunk
Title: Re: Sansa Clip+ Freezes During Playback
Post by: saratoga on July 12, 2011, 03:55:07 PM
Current trunk seems to work quite well for most sd cards.  Do the files work fine off of the internal memory?
Title: Re: Sansa Clip+ Freezes During Playback
Post by: mischasworld on July 12, 2011, 03:56:50 PM
yes they do
Title: Re: Sansa Clip+ Freezes During Playback
Post by: mischasworld on July 14, 2011, 06:26:33 AM
just tried another card (this time a sandisk with 8gb), now it seems to work

[microSD 1]
Prod 4/2002
Ser# 0x022611ED
m=03, O=SD
Blocks 0x00ECE000
Speed 25,0 MBit/s
Taac: 10,0ms
Nsac: 0 clk
R2W *2

so it seems to be the card in combination with rockbox