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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Problem using progress bar
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: Problem using progress bar  (Read 8741 times)

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #30 on: August 23, 2010, 09:21:57 AM »
I edited my wps (removed all manual block bars and put formatting like %pb) and still doesn't work. Can someone try this and say what it shows?

Edit: Looks like I found the problem.
If I remove part of the wps, it loads what it has. It appears that WPS manager can't handle so many things in screen, and doesn't show anything (it explains the simulator showing no errors too).

So, I can't do anything to solve this, right?
* astorga.wps (3.49 kB - downloaded 111 times.)
« Last Edit: August 23, 2010, 09:37:23 AM by Astorga »
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Problem using progress bar
« Reply #31 on: August 23, 2010, 03:25:48 PM »
Quote from: Astorga on August 23, 2010, 09:21:57 AM
If I remove part of the wps, it loads what it has. It appears that WPS manager can't handle so many things in screen, and doesn't show anything (it explains the simulator showing no errors too).

So, I can't do anything to solve this, right?
If it's a skin buffer overflow problem (I haven't looked at your code), you could try to reduce the images size (actually trim them) and leave just the part that changes to load. It's a good idea to use the main WPS backdrop to contain the "initial states", e.g. make it including the shuffle-off icon and just loading the shuffle-on icon, instead of loading both the shuffle off and on icons. Also try to reduce if possible and optimize all elements that are loaded using the buffer like fonts, viewports, etc. You can always check the skin ram usage (also in the simulator) under system>rockbox info>skin ram usage (or something like that)
« Last Edit: August 23, 2010, 03:28:36 PM by audio-i »
Logged

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #32 on: August 23, 2010, 03:29:24 PM »
Quote from: audio-i on August 23, 2010, 03:25:48 PM
Quote from: Astorga on August 23, 2010, 09:21:57 AM
If I remove part of the wps, it loads what it has. It appears that WPS manager can't handle so many things in screen, and doesn't show anything (it explains the simulator showing no errors too).

So, I can't do anything to solve this, right?
If it's a skin buffer overflow problem, you could try to reduce the images size (actually trim them) and leave just the part that changes to load. It's a good idea to use the main WPS backdrop to contain the "initial states", e.g. make it including the shuffle-off icon and just loading the shuffle-on icon, instead of loading both the shuffle off and on icons. Also try to reduce if possible and optimize all elements that are loaded using the buffer like fonts etc. You can always check the skin ram usage (also in the simulator) under system>rockbox info>skin ram usage (or something like that)
So, the skin doesn't load at all even in simulator, so I can't see the actual skin memory usage.

Also, my wps doesn't have any image, just text (it's included in my last post).
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Problem using progress bar
« Reply #33 on: August 23, 2010, 03:45:03 PM »
Try CheckWPS http://www.rockbox.org/wiki/CustomWPS#Tools or try commenting out progressively viewports until it loads and then check the skin ram usage.
Logged

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #34 on: August 23, 2010, 03:53:12 PM »
Quote from: audio-i on August 23, 2010, 03:45:03 PM
Try CheckWPS http://www.rockbox.org/wiki/CustomWPS#Tools or try commenting out progressively viewports until it loads and then check the skin ram usage.
After commenting 4 viewports, the wps worked in simulator (ver r27847) (even with volume and battery bars working perfectly), rockbox info shows the following:
Buffer: 30.5MB
Skin RAM usage: 16.4KB / 808KB
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Problem using progress bar
« Reply #35 on: August 23, 2010, 03:57:55 PM »
Quote from: Astorga on August 23, 2010, 03:53:12 PM
Quote from: audio-i on August 23, 2010, 03:45:03 PM
Try CheckWPS http://www.rockbox.org/wiki/CustomWPS#Tools or try commenting out progressively viewports until it loads and then check the skin ram usage.
After commenting 4 viewports, the wps worked in simulator (ver r27847) (even with volume and battery bars working perfectly), rockbox info shows the following:
Buffer: 30.5MB
Skin RAM usage: 16.4KB / 808KB
It doesn't look like a skin ram usage problem, can you post here the vieports you commented out?
Logged

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #36 on: August 23, 2010, 03:59:28 PM »
I commented exactly the 11 last lines:
Code: [Select]
#%s%ac%Sx(Song) %pp %Sx(of) %pe
#Status da reprodução
#%V(124,126,57,8,-)
#%acStatus
#%V(124,136,57,8,-)
#%ac%?mp<Parado|Tocando|Pausado|Avançando|Recuando|Gravando|Grav.P.|FM|FM P.|>
#Tempo de Reprodução
#%V(190,126,123,8,-)
#%ac%pc/%pt
#%V(190,136,123,8,-)
#%pb(0,0,123,8,-)
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Problem using progress bar
« Reply #37 on: August 26, 2010, 11:44:01 AM »
Late reply... it seems that the line that breaks the WPS (if you comment just that line out, it works) is
Code: [Select]
%s%ac%Sx(Song) %pp %Sx(of) %pe

Note: The characters you use to draw the outlines didn't work when I tried it, but that doesn't break the WPS.
Logged

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #38 on: August 26, 2010, 11:50:50 AM »
Quote from: audio-i on August 26, 2010, 11:44:01 AM
Late reply... it seems that the line that breaks the WPS (if you comment just that line out, it works) is
Code: [Select]
%s%ac%Sx(Song) %pp %Sx(of) %pe

Note: The characters you use to draw the outlines didn't work when I tried it, but that doesn't break the WPS.
I think I found the problem: there isn't a "song" translation in language files :P
But why doesn't simulator said that using -debugwps?

Edit: and why doesn't the volume and battery numbers update on the fly?
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Problem using progress bar
« Reply #39 on: August 26, 2010, 12:22:53 PM »
About the update problem with %pv and %bl - you put both on a line that has the %s tag to allow it to scroll.

Unfortunately there is a longstanding bug with this sort of highly dynamic content (like current volume) on scrolling lines which is probably not solvable with the current scrolling mechanism. and hence is not easily fixed.

You can only work around it by removing the %s tag.
Logged

Offline Astorga

  • Member
  • *
  • Posts: 48
  • iPod mini and iPod Video 5G
Re: Problem using progress bar
« Reply #40 on: August 26, 2010, 12:25:38 PM »
Ok, thanks for the tip.

And thanks everyone for support :D
Logged

  • Print
Pages: 1 2 [3]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Problem using progress bar
 

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

Page created in 0.077 seconds with 14 queries.