Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  how to debug the theme runtime errors
« previous next »
  • Print
Pages: [1]

Author Topic: how to debug the theme runtime errors  (Read 1244 times)

Offline JapaneseDrunkard

  • Member
  • *
  • Posts: 19
how to debug the theme runtime errors
« on: November 05, 2014, 04:02:25 AM »
I made my custom theme for 480 x 854 screen.
It passed .checkwps.

Then I edited "wps/WPSLIST" to replace the standard theme "cabbiev2" with my custom theme.
It passed wpsbuild.pl.

Then I made rockbox.apk and installed it on my android smartphone.

When Rockbox was launched, my custom theme didn't appear.
The failsafe theme appeared instead.

In this case,  how can I investigate the problem?
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: how to debug the theme runtime errors
« Reply #1 on: November 05, 2014, 08:58:05 PM »
This sounds to me as though the device was still expecting to be able to load cabbiev2 at first boot.

I am guessing that after loading the theme manually it "Just Works"?

I can't honestly say that I've had any experience in replacing the default theme in this fashion, frankly, because it makes very little sense to do so. We've tackled this in other posts in the past. I can't for the life of me understand the requirement to embed the theme in the binary when we provide the means to load these assets from emulated or external storage. Doing it this way just makes the binary larger than it needs to be, removes your ability to be able to report errors trivially (any reports must be reproducible with an unmodified binary), and generally creates more work for you for no obvious gain.

If I'm missing something in your use case that makes this a necessity, please do tell me.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JapaneseDrunkard

  • Member
  • *
  • Posts: 19
Re: how to debug the theme runtime errors
« Reply #2 on: November 05, 2014, 11:09:40 PM »
Finally I made it!

Exactly as you say,
the default theme settings are hard-coded
in the file "apps/settings_list.c".

> #define DEFAULT_WPSNAME  "cabbiev2"
> #define DEFAULT_FONTNAME "08-Rockfont"
> #define DEFAULT_BACKDROP    BACKDROP_DIR "/cabbiev2.bmp"
> ...

I rewrote these parameters, and it worked!

> the device was still expecting to be able to load cabbiev2

I have never thought that.
Thank you for your sincere support  :-)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  how to debug the theme runtime errors
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.