Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: scotty16 on June 15, 2018, 05:20:07 AM

Title: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: scotty16 on June 15, 2018, 05:20:07 AM
I have a couple of 8gb Sansa Clip Plus, both running 3.14. I recently upgraded to a 128gb stick and a problem began. Now, as soon as I plug it into the USB port of my PC I get the following PANIC message and must do reset, by holing the power button for 20 seconds.


   *PANIC*
   usb_storage_init_co
   nnection(): OOM
pc:300612F0 sp:300BE91
        A:  3005F48C
        A:  3005FA44   
        A:   30048C10

 Luckily, I found a workaround. If the device is powered on when I connect it, then the problem does not occur and everything is normal. 
Title: Re: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: Bilgus on June 15, 2018, 05:39:43 AM
Most likely this is an issue of power..
I've a build with higher voltage defaults that you might try

http://forums.rockbox.org/index.php/topic,52058.0.html

Title: Re: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: __builtin on June 15, 2018, 09:22:39 AM
I find this highly unlikely to be a power issue. The ipod6g had the exact same panic a while back that was solved by using static memory for the USB buffers (http://gerrit.rockbox.org/r/#/c/1361/ (http://gerrit.rockbox.org/r/#/c/1361/)). Perhaps a similar fix would be needed for this target.

EDIT: It seems that patch does in fact apply the same fix to the AMS devices (which includes the clip+). For some reason, it wasn't merged, though.
Title: Re: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: scotty16 on June 15, 2018, 11:19:25 AM
Thanks for the reply - sorry I didn't reply sooner, the notification went into junk mail. So I followed the link to a mediafire link and downloaded a zip file clipplus_powersave which contains a ".rockbox" folder. So do I just replace the one on the device ? I'm new to this so be kind. Is it worth trying even if "unlikely"?
Title: Re: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: Bilgus on June 15, 2018, 12:04:38 PM
I'd say its pretty likely __builtin is right especially with the unapplied patch pretty much stating the same, I* was only suggesting a power issue because my clip+ doesn't crash with a 128 gb card and that seems to typically be the issue when problems arise

if you do want to use that build just rename your current .rockbox folder and copy the new folder to the device
Title: Re: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: __builtin on June 15, 2018, 12:28:33 PM
I built the previously mentioned patch mentioned against the latest git HEAD (20bdfa8): http://fwei.tk/rockbox-clipplus-oomfix.zip (http://fwei.tk/rockbox-clipplus-oomfix.zip)

This should fix the panics. Install it by extracting the zip file's contents into the root of your player, overwriting files as necessary.
Title: Re: Sandisk Sansa Clip Plus: PANIC with 128gb stick but have workaround
Post by: scotty16 on June 15, 2018, 01:11:48 PM
I copied across the files from the file "rockbox-clipplus-oomfix.zip" and was pleased to find it connected fine BUT on disconnecting (I have to do two drives F: & H:) I got a different panic :-

playlist_resume()O
OOM
pc:300121b4  sp:30096c:

A:300402f4
A:3000cb88
A:3000cd58

(can't read the last character of the sp:30096c????)

Power off & 20 second reset sorted it. Tried again just in case but same again. Noticed track number had moved on from 2 (just added a few new ones) to 6058 !!!! (I'll re-do the database when we've done testing). Tried plugging in whilst powered on and I didn't get the panic when plugging in or disconnecting !!!!