osm-gps-map
osm-gps-map copied to clipboard
Failure when using using osm_gps_map_track_insert_point in python
Hi, I tried to use osm_gps_map_track_insert_point while writing tests in python. The function itself works, but than python exits unexpected.
Here is a small example:
#!/usr/bin/python3
from gi.repository import OsmGpsMap
track = OsmGpsMap.MapTrack()
point = OsmGpsMap.MapPoint.new_degrees(50, 10)
track.insert_point(point, 0)
Result (full backtrace):
*** Error in `/usr/bin/python3': double free or corruption (fasttop): 0x0000000000cf91c0 ***
Is this not intended way to call this function?