vincentrou / gmapcatcher

Automatically exported from code.google.com/p/gmapcatcher
0 stars 0 forks source link

logfile filled with same "TypeError: integer argument expected, got float" #321

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 1. Took the laptop out on a drive with the GPS (GPS enabled and working correctly per GPSd and target drawing correctly in gmapcatcher)
 2. Drove around the block
 3. Exited the app, and it reported errors

What is the expected output? What do you see instead?
Everything seemed to work, but the error log filled with this error 65 times 
(all times the identical message):

Traceback (most recent call last):
  File "maps.py", line 948, in expose_cb
  File "maps.py", line 1032, in draw_overlay
  File "gmapcatcher\widDrawingArea.pyc", line 350, in draw_overlay
  File "gmapcatcher\widDrawingArea.pyc", line 210, in draw_arrow
TypeError: integer argument expected, got float

What version of the product are you using? On what operating system?
0.7.7.1, win xp 32 (this is my laptop)

Please provide any additional information below.
State=Offline
GPS is the BU-353
GPS options: rate=1, max zoom=-2, mode=GPS centered
Map is at zoom=-2, fully downloaded
GPSd for Windows, v2.37

The GPS 'target' icon correctly located me and indicated my position throughout 
the test. No actual failure was visible. It's not a big deal except that the 
logfile will become pretty big on a five-hour drive with refresh at 1.0 sec. It 
appears that the errors accrue one per sample (65 times in an approximately 
one-minute drive). If these errors are are normal, is there a way to limit the 
logfile size?

Thanks

Original issue reported on code.google.com by ler...@gmail.com on 27 Apr 2012 at 4:08

GoogleCodeExporter commented 9 years ago
These errors are definitively not normal.

Original comment by heldersepu on 27 Apr 2012 at 12:05

GoogleCodeExporter commented 9 years ago
Let me know if you need further information. It's not exactly useful to send 
the file, since with what I reported, you could make it yourself ;-) But if 
there are other logs you'd like to review, or additional configuration details 
you need, please just let me know.

Original comment by ler...@gmail.com on 28 Apr 2012 at 12:04

GoogleCodeExporter commented 9 years ago
error fixed on the code see r1240
I owe you the windows installer...

Original comment by heldersepu on 28 Apr 2012 at 12:41

GoogleCodeExporter commented 9 years ago
cool! thank you. can i just use this one to replace the one in the install 
directory, then re-run the installer? or... is there more to it than that?

Original comment by ler...@gmail.com on 28 Apr 2012 at 2:54

GoogleCodeExporter commented 9 years ago
Unless you have Python and PyGTK installed you can not run it from the sources.
so the answer to your question is: yes there is more to it .

Original comment by heldersepu on 28 Apr 2012 at 2:58

GoogleCodeExporter commented 9 years ago
just diffed those... wow, you were busy ;-) thanks for all the coding. were the

    import os
    if os.environ.get('MAPS_GTK', 'False') == 'False':
       raise Exception('gtk module', __file__)

lines near the top the difference for this error? looks like there's a lot of 
other stuff pertaining to drawing rulers and such, which looks like something 
fun and new...

thanks again

Original comment by ler...@gmail.com on 28 Apr 2012 at 2:59

GoogleCodeExporter commented 9 years ago
not quite sure what difference are you seeing my change for this issue was 
small, see the following:
http://code.google.com/p/gmapcatcher/source/diff?spec=svn1240&old=1231&r=1240&fo
rmat=unidiff&path=%2Ftrunk%2Fgmapcatcher%2FwidDrawingArea.py

Original comment by heldersepu on 28 Apr 2012 at 3:03

GoogleCodeExporter commented 9 years ago
sorry... i need my head adjusted. i was comparing against 0.7.6.1.

Original comment by ler...@gmail.com on 28 Apr 2012 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by heldersepu on 28 Apr 2012 at 12:47

GoogleCodeExporter commented 9 years ago

Original comment by heldersepu on 28 Apr 2012 at 12:51

GoogleCodeExporter commented 9 years ago

Original comment by heldersepu on 28 Apr 2012 at 1:16

GoogleCodeExporter commented 9 years ago
thanks. installed, and i'll test it outside later today.

Original comment by ler...@gmail.com on 28 Apr 2012 at 5:48