osm-gps-map icon indicating copy to clipboard operation
osm-gps-map copied to clipboard

Failure when using using osm_gps_map_track_insert_point in python

Open dreadnought opened this issue 9 years ago • 0 comments

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?

dreadnought avatar Feb 21 '16 12:02 dreadnought