Activity Workshop
 

Prune problem-solving

The following sections address possible problems encountered when running Prune, and suggestions for solutions. It should be read in conjunction with the how-tos page which describes how to complete common tasks. If you have any questions or feedback please use the email address at the bottom of the page.

Using a proxy server

If you do not have a direct connection to the internet, but you have a proxy server, you can use this proxy server to fetch the openstreetmap map tiles for use in Prune. To do this, you can set the java runtime's system properties when you launch Prune, like this:

java -Dhttp.proxyHost=myproxyserver.com -Dhttp.proxyPort=80 -jar prune_11.jar

Where of course the proxy host name and port number should correspond to your local settings. And of course you can include these parameters in your shortcut or alias so that you don't have to type them in each time you run Prune.

Running on Mac OSX 10.4 (Tiger)

If you have Mac OSX 10.4, Apple provide both a 1.4 java runtime and a 1.5 java runtime. Prune now requires at least version 1.5 of java to run, so you need to make sure your system uses the 1.5 runtime. By default, OSX will try to use the 1.4 runtime, so Prune will fail to start with the error "UnsupportedClassVersionError". You should be able to check your java version by typing java -version in your terminal window.

According to this explanation at macosxhints.com you can change the preferences of your system so that it uses the 1.5 runtime by default, as follows:

For Java applications that are supplied as a ".jar" file, the settings in the "Java Application Runtime Settings" section of the "Java Preferences" app will determine which Java version is used when you double-click the ".jar" file in Finder. If you drag the "J2SE 5.0" to the top of the list in the "Java Application Runtime Settings", then a double-clickable jar application will use Java 5.

There are also other ways to specify this as detailed in the above link, including adding scripts to be able to switch back and forth between 1.4 and 1.5. You should also make sure you have the update from Apple called "JavaForMacOSX10.4Release7" to get the latest version of 1.5.

Using Chinese and Japanese fonts

It might be that when using the Chinese or Japanese languages (see the download page), the Chinese characters appear as empty squares instead of the proper characters. To get the display working properly, you have to make sure you have Chinese fonts properly installed (just because Firefox displays them properly isn't always enough). For example, on Mandriva you have to install an extra package "fonts-ttf-chinese". The second step is to let java know where to find these fonts. This is platform-dependent, but it may mean adding a shortcut in the java runtime's font directory. Again using Mandriva as an example, the fonts are installed in /usr/share/fonts/TTF/chinese/ and the java runtime looks for its fonts at /usr/lib/jvm/java-1.6.0-sun-1.6.0.10/jre/lib/fonts/, so to let java find them you need to make a link:

cd /usr/lib/jvm/java-1.6.0-sun-1.6.0.10/jre/lib/fonts/
ln -s /usr/share/fonts/TTF/chinese/ fallback

Thanks to Li Zhao for the tip!

By the way, don't try this on Debian Lenny - bugs in the font manager defoma may break the system and prevent you from logging in :(

Using gpsbabel under linux

It seems like there are common problems with running GPSBabel under linux, especially with USB Garmin devices. Sometimes you may get an error message about a module "garmin_gps" blocking access to the USB device, other times the error message is not so meaningful. Basically there are two main problems - this garmin_gps kernel module may work for some people but doesn't work for many. If it doesn't work, the kernel module has to either be removed (with rmmod garmin_gps) or, better still, blacklisted by an entry in the file /etc/modprobe.conf using a line like "blacklist garmin_gps". The exact location of this modprobe.conf file may depend on your distribution.

There is also a second problem using certain linux distributions, in that the root user is then able to call gpsbabel successfully (using the device "usb:"), but normal users are not, and just get an error message about a module ''. Again the solution to this appears to be distribution-dependent, but it often involves making a new rule file for udev. For more information see gpsbabel's linux page. Or if you're using Mandriva or Debian, see the corresponding entries (which were supposed to also go on that page) on gpsbabel's mailing list.

What is a waypoint? What is a trackpoint?

Some of the terminology used in Prune might be confusing if you're not familiar with using GPSs. The myriad of file formats and strange terminology (routes, tracks, waypoints) might be overwhelming. This is what I wrote in an email to someone asking about the differences:

Firstly, it is important to understand the difference between "track points" and "waypoints". As an example, let's say I walk from my house to the bakery. I switch my GPS on at my house, and make a waypoint, called "HOUSE". Then I record the way I walk, with lots of points, and then when I get to the bakery I make a new waypoint called "BAKERY". When I load this data into Prune, I get two things. I get two waypoints, and I probably get them in alphabetical order, so that's "BAKERY" and then "HOUSE". The order doesn't matter, but these two points have names attached to them. They may have timestamps too but probably not. I also get lots of track points, all without names, but here the order does matter, so I get the points in the order in which they were recorded, from my house to the bakery.

The basic point types can be summarized like this:

Using gnuplot under windows

For drawing charts from Prune, don't forget to call the program "pgnuplot" (rather than gnuplot) if you're using a Microsoft system. If you call gnuplot, the chart will be drawn but will disappear again immediately. To fix this, go to Settings -> Set program paths in Prune, and give the path to pgnuplot.exe instead. See the gnuplot faq for more information on this. Thanks to Javier for the feedback.

Uploading to gpsies

Problem 1 - the track seems to upload ok but when I view the web page, it just shows me the main gpsies page and I can't find my track!. Answer - probably your username and/or password is wrong. Gpsies doesn't give any error message if the login details are wrong, so it looks like the track has been uploaded but it hasn't. Check your password by logging into gpsies.com in your browser. If that works, then the same password should work from Prune too.

Problem 2 - the track seems to upload ok but I can't see the track because it's "locked"? Answer - if you marked the track as "private" when you uploaded it, then you can only see the track details if you're logged in in your browser too (obviously). Log in and try again, if you want to make the track public then go into the "Edit or delete" section and change the track status.

Problem 3 - the track doesn't upload properly, it just gives an error "Die Datei enthält keine Daten. Bitte wähle eine neue Datei aus". Answer - gpsies ignores waypoints, which means all the points with names. If your track only has waypoints, then gpsies thinks the track is empty. To turn the waypoints into track points, select a range and then use the "Delete field values" function for the "name" field to delete the waypoint names. You'll probably want to do a "Merge track segments" operation too to join the track points into one big track segment so that you can see it properly in gpsies. Now do the upload again.