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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  checkwps Segmentation fault and/or no errors listed
« previous next »
  • Print
Pages: [1]

Author Topic: checkwps Segmentation fault and/or no errors listed  (Read 1541 times)

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
checkwps Segmentation fault and/or no errors listed
« on: January 29, 2011, 04:56:00 AM »
I'm having trouble getting checkwps to work. I am running it on themes I downloaded using rbutil, and with themes that came with Rockbox.

I compiled my own 3.7.1 build from svn, and the build runs. The themes display perfectly and there are no problems there. The problem is that checkwps for 3.7.1 (which I created by running ./buildall.sh from the tools/checkwps/ directory) is not giving the output that I expect.

First off, I am running Rockbox on an iPod Video. I compiled Rockbox using option 22, Normal build. When I ran buildall.sh it created a file checkwps.mpiohd200 which I assume is correct for the ipod video though I have no reason except faith in buildall.sh.

When I run (from the tools/checkwps/ folder):
Code: [Select]
./checkwps.mpiohd200 /media/ROCKBOX/.rockbox/wps/cabbiev2.wps
I get:
Code: [Select]
Checking /media/ROCKBOX/.rockbox/wps/cabbiev2.wps...
WPS parsing failure
Segmentation fault

I downloaded (again via svn) the most recent build and compiled it, and then checkwps. It again created me a checkwps.mpiohd200 file which, when run in the exact same way as above does NOT get a Segmentation fault, but still fails:
Code: [Select]
Checking /media/ROCKBOX/.rockbox/wps/cabbiev2.wps...
WPS parsing failure

As I said, the cabbiev2 theme loads fine and displays as expected.

I get the same errors when I run checkwps on my own theme, which does NOT display properly and I don't know why. I was hoping to use checkwps to quickly find the problem but obviously that is not working, so I'm about to start trying to load it piece by piece into a simulator.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: checkwps Segmentation fault and/or no errors listed
« Reply #1 on: January 29, 2011, 05:52:16 AM »
Perhaps you're not familiar with the target...but that is pretty obviously the checkwps for the MPIO HD200

You can build checkwps for your target just by running tools/configure as you would for building a binary for your player, but instead of selecting "Normal" (or letting it default to it) choose "Checkwps", then do "make" .


[St.]
« Last Edit: January 29, 2011, 05:56:07 AM by [St.] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: checkwps Segmentation fault and/or no errors listed
« Reply #2 on: January 29, 2011, 06:05:58 AM »
Well that was simple. I wish I'd seen the option when I compiled the first time. I'd likely have tried it.

Is there a purpose for the tools/checkwps directory then? This was so much simpler and quicker than that, and produced the correct file in an obvious way.

<EDIT>

Hmmm, scratch that. It found a couple errors but when I fixed those, I'm back to Segmentation Faults.

<EDIT>

I found what is causing the Segmentation Fault in the correct (thanks [St.]) checkwps program, it's the following bit of code:
Code: [Select]
%pb(-,12,16,297,10)

I know why it's wrong now that I see it. It should have been %pb(12,16,297,10).
« Last Edit: January 29, 2011, 04:09:26 PM by Yotto »
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: checkwps Segmentation fault and/or no errors listed
« Reply #3 on: January 29, 2011, 06:13:47 PM »
It might still be worth a bug report.  It seems to me that the program should fail gracefully rather than segfault.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: checkwps Segmentation fault and/or no errors listed
« Reply #4 on: January 29, 2011, 07:09:20 PM »
i just tried that and it works as expected (with it trying load the filename '10' as the image :p ) are you sure it was that line?
Logged


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

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: checkwps Segmentation fault and/or no errors listed
« Reply #5 on: January 29, 2011, 09:22:34 PM »
I'm sure. Here are the two files, before and after I fixed the problem. The "bad" one gets the segfault.

Also, I'm using the checkwps.ipodvideo from the daily build, which I compiled myself as described above from unmolested source.
* CenterArt.bad.wps (3.77 kB - downloaded 87 times.)
* CenterArt.wps (3.77 kB - downloaded 79 times.)
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  checkwps Segmentation fault and/or no errors listed
 

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

Page created in 0.085 seconds with 15 queries.