Thread: [Fremantle Maemo5] [Announce] Advanced Geocaching Tool
View Single Post
Posts: 22 | Thanked: 10 times | Joined on Jun 2010
#83
Originally Posted by webhamster View Post
I've not got any reports from any other user with this problem. If you want to see the debug messages, please run AGTL from the command line:
- open xterm (press ctrl+shift+x)
- type python2.5 /opt/advancedcaching/core.py --hildon > debug.log 2>&1

Then use AGTL a few minutes. This will produce a file called debug.log, which you can post here.

You can also try and see if the problem is not related to the GPS, but to the display. For this purpose, a GPS simulation is built in. To run it, type
python2.5 /opt/advancedcaching/core.py --hildon --sim
and check if you get a GPS fix (at least most of the time).
Tried the simulation. With that, there is all the data in the GPS view. There is some deprecation warning in the console, after a couple of minutes, however.

As for the debug logs, There is one block that repeats:
Code:
Traceback (most recent call last):
  File "/opt/advancedcaching/core.py", line 636, in __read_gps_cb_changed
    self.gui.on_good_fix(fix)
  File "/opt/advancedcaching/simplegui.py", line 1100, in on_good_fix
    self._draw_arrow()
  File "/opt/advancedcaching/simplegui.py", line 513, in _draw_arrow
    sun_angle = astral.get_sun_azimuth_from_fix(self.gps_data)
  File "/opt/advancedcaching/astral.py", line 571, in get_sun_azimuth_from_fix
    sunrise = a.sunrise_utc(fix.timestamp, fix.position.lat, -fix.position.lon)
  File "/opt/advancedcaching/astral.py", line 147, in sunrise_utc
    sunrise = datetime.datetime(date.year, date.month, date.day, hour, minute, second)
ValueError: minute must be in 0..59
Also one deprecation warning in the attached log:
Code:
/opt/advancedcaching/simplegui.py:675: DeprecationWarning: integer argument expected, got float
  self.pixmap, -self.draw_at_x + self.drag_offset_x - self.draw_root_x, -self.draw_at_y + self.drag_offset_y - self.draw_root_y, 0, 0, width, height)
Hope this gives some clue as to what is happening. I quickly glanced at the sunrise calculation source in github, but as that kind of calculations are out of my knowledge, I gained no insight on what goes wrong here.
Attached Files
File Type: txt debug.log.txt (18.0 KB, 163 views)