ham-radio-software / D-Rats

D-Rats program for D-Star Ham Radios
https://iz2lxi.jimdofree.com/
Other
44 stars 13 forks source link

mapdraw error on raspberrypi #135

Open wb8tyw opened 2 years ago

wb8tyw commented 2 years ago

maurizioandreotti commented on Mar 22

today, testing latest code on raspberrypi i cannot see any maps shown.

in the console i read:

Traceback (most recent call last):
  File "/home/pi/drats2/D-Rats-python3_tyw/d_rats/map/mapdraw.py", line 179, in handler
    self.expose_map()
  File "/home/pi/drats2/D-Rats-python3_tyw/d_rats/map/mapdraw.py", line 393, in expose_map
    tile = center + (i - delta_w, j - delta_h)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'tuple'
wb8tyw commented 2 years ago

Can you reproduce this on demand?

What map url, center coordinates, and zoom level were in effect?

This looks like something in the map setup failed much earlier and there should have been log messages to that effect.

The default center location comes for the configuration for the user running d-rats. I suspect that nothing is checking to see if a valid value has been entered.

wb8tyw commented 1 year ago

Is this still an issue?

maurizioandreotti commented 1 year ago

can be closed

wb8tyw commented 1 year ago

Leaving this open until we can verify that there is no path where "center" can be None at this point. Something has to be wrong in the code.