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




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
|-+  Rockbox General
| |-+  Announcements
| | |-+  WPS tokenizer: REPORT PROBLEMS HERE
« previous next »
  • Print
Pages: 1 2 3 [4] 5

Author Topic: WPS tokenizer: REPORT PROBLEMS HERE  (Read 28205 times)

Offline Mmmm

  • Developer
  • Member
  • *
  • Posts: 928
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #45 on: April 14, 2007, 03:59:16 PM »
Quote from: NicolasP on April 14, 2007, 11:16:44 AM

Mmmm: I'll probably readd the crossfeed tag eventually but it won't be %xd anymore.
I'm about to commit a fix that should prevent crashing with the code you gave.


Great stuff.... I'm not worried about the letters used, anything will do: cf cd cr although I think some of those may be taken already..I haven't had a look at that bit of the code for a long long time...
Logged
My H120 build with Recording Enhancements Pack
Some examples of recordings done on H140 with Rockbox

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 202
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #46 on: April 14, 2007, 10:01:27 PM »
Quote from: bascule on April 14, 2007, 12:05:06 PM
However, my WPS up on the Wiki, (TextBox), is still causing a freeze, and it contains no hash characters.

It is more complicated, but I don't see why it is misbehaving. Can anyone shed some light?

That WPS made me find another flaw in the parsing code, so thanks again :)
It should work fine with r13162.
Logged

Offline vimes

  • Member
  • *
  • Posts: 5
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #47 on: April 15, 2007, 04:53:41 AM »
Quote from: NicolasP on April 12, 2007, 11:56:26 AM

Is the problem still present with the latest version (r13127) ?

I just downloaded the latest version (couldn't find the r#####) and it still displays the info improperly. I uploaded comparison images in hope it will help you out.

Logged

Offline Llorean

  • Member
  • *
  • Posts: 13185
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #48 on: April 15, 2007, 04:54:48 AM »
Um, that theme requires a custom build. You are aware that this thread is about the OFFICIAL build, right?
Logged

Offline vimes

  • Member
  • *
  • Posts: 5
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #49 on: April 15, 2007, 04:57:05 AM »
Yep, but I never ever used custom builds and there were working great before (i.e. except for the covers of course) so I figured the problem relied in the official build.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 13185
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #50 on: April 15, 2007, 05:03:46 AM »
Also, from the screenshots, it looks like you're not using the same font...
Logged

Offline vimes

  • Member
  • *
  • Posts: 5
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #51 on: April 15, 2007, 05:11:00 AM »
In any case, it also happens with the UniCatcher theme provided with the build while  using the default_rockbox font

Logged

Offline Llorean

  • Member
  • *
  • Posts: 13185
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #52 on: April 15, 2007, 05:15:54 AM »
Unicatcher is not meant to be used with rockbox_default.

You cannot expect themes to look right if you haven't installed the fonts they require.
« Last Edit: April 15, 2007, 05:17:42 AM by Llorean »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1331
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #53 on: April 15, 2007, 06:05:04 AM »
Quote from: NicolasP on April 14, 2007, 10:01:27 PM

Quote from: bascule on April 14, 2007, 12:05:06 PM
However, my WPS up on the Wiki, (TextBox), is still causing a freeze, and it contains no hash characters.

It is more complicated, but I don't see why it is misbehaving. Can anyone shed some light?

That WPS made me find another flaw in the parsing code, so thanks again :)
It should work fine with r13162.


Thanks, Nicolas, that works fine, now.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline RedBreva

  • Member
  • *
  • Posts: 103
    • Rockbox Themes Site
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #54 on: May 01, 2007, 01:40:28 PM »
a few themes have failed to load with %bp - output from debugwps complains that it is invalid...

As far as I can tell from the Wiki it is still valid code...
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 202
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #55 on: May 01, 2007, 02:23:04 PM »
How have they failed ? It's normal that %bp is deemed unknown on th sim, because the sim doesn't have charging.
Logged

Offline RedBreva

  • Member
  • *
  • Posts: 103
    • Rockbox Themes Site
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #56 on: May 01, 2007, 02:47:52 PM »
The sim 'locks up' after loading - for example:
http://www.rockbox-themes.org/data/160x128x2/Headphones.zip

The debug output is here:
http://www.rockbox-themes.org/temp/headphones.zip
The only error I could see was the unknown for pb :-(

The music plays fine if the default theme is selected.
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 202
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #57 on: May 01, 2007, 04:23:39 PM »
According to the debug output, the WPS has too many tokens, and this cuts a conditional before it closes. That's why the player locks.
Logged

Offline stripwax

  • Developer
  • Member
  • *
  • Posts: 92
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #58 on: May 02, 2007, 05:17:09 AM »
IMO the player should not lock up ...  no matter what kind of crap wps you throw at it..

If the token buffer is too full to fit a closing conditional, then either that last conditional should be removed, or the token buffer rolled back.

Or even, if the WPS failed to load for whatever reason, how about emptying the entire token buffer and inserting a single string token that describes what the error was?
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 202
Re: WPS tokenizer: REPORT PROBLEMS HERE
« Reply #59 on: May 02, 2007, 05:28:58 AM »
Of course, I was planning on adding an error case for this, but I haven't had much time for rockbox in the last few days. My goal is to prevent all possible lock-ups.
About the message, I like the idea but displaying a splash message and then the default WPS would probably be a better solution than a WPS with a message. The only problem is that the error strings would need to be localized and that's probably not worth the binsize, so I think we'll have to stick to the sim messages.
Logged

  • Print
Pages: 1 2 3 [4] 5
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Announcements
| | |-+  WPS tokenizer: REPORT PROBLEMS HERE
 

  • SMF 2.0.4 | SMF © 2013, Simple Machines
  • XHTML
  • RSS
  • WAP2

Page created in 0.369 seconds with 26 queries.