Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: Doghouse Riley on December 02, 2019, 08:52:05 PM

Title: Can a theme crash my Sansa player?
Post by: Doghouse Riley on December 02, 2019, 08:52:05 PM
Two identical Sansa Fuze v2's.

On one of them, the theme "arbox Widgets" (my favorite theme) works perfectly.

On the other, I get a "prefetch abort" or "undefined instruction" crash every time I try to load an .mp3 or a bookmark from the SD slot, only when that theme is active.  Any other theme produces no error.  Loading files from the Sansa's onboard memory does not crash it.

I have tried every way I can think of to clone the Rockbox install from the Fuze which runs this theme to the Fuze that does not.  I still get the same crash.

Any thoughts?????
Title: Re: Can a theme crash my Sansa player?
Post by: wodz on December 03, 2019, 05:10:19 AM
Practice teaches it is possible. Rockbox does not use memory protection so some subtle bug in theme engine (quite a big blob of code) can manifest like this. Try to reproduce this bug in simulator. If you will be successful it is much easier to pinpoint where the problem is.