logo separator

[mkgmap-dev] Mapsource crashes while calculating a route

From GerdP gpetermann_muenchen at hotmail.com on Sun Jan 19 06:39:15 GMT 2014

Hi  Andrzej,

thanks for reporting. I can reproduce the problem and
I see that the display tool claims that there is an error:

ERROR: Last point of a joined line without node-flag 

This error message doesn't show up for the img file 
created with r2795.
In opposite to r2795, the later versions do not split
the road with > 250 points in StyledConverter, but later.
It seems that the write routine in LinePreparer
still needs corrections for this case, it 
already contains a comment.
			 * Current thought is that the node indicator is set when
			 * the point is a node. There's a separate first extra bit
			 * that always appears to be false. The last points' extra bit
			 * is set if the point is a node and *this is not the last*
			 * *polyline making up the road*.
			 * *Todo: special case the last bit*

Did you learn something new regarding this extra bit? If not,
I will revert the changes to the line splitting algo.


popej wrote
> Hi,
> I have observed crashes for some time. Mapsource 6.16.3 indicates a bug 
> in module MPL_MAP.CPP. Basecamp reports an error or goes into infinite
> loop.
> Now I have extracted minimal source data, which creates faulty map. 
> Removing any road or even a crossing point restore routing.
> Bug exist in mkgmap r2815, r2857, r2889, r2975 and r2976. Map created by 
> mkgmap r2795 works correctly.
> I'm attaching here files to reproduce problem:
> mkgmap.bat - batch, which I have used to create the map,
> test-a.pbf - very simple OSM source data,
> route.gpx - short route, which causes a crash in Mapsource.
> -- 
> Best regards,
> Andrzej
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> mkgm.bat (63 bytes)
> <http://gis.19327.n5.nabble.com/attachment/5793545/0/mkgm.bat>
> route.gpx (1K)
> <http://gis.19327.n5.nabble.com/attachment/5793545/1/route.gpx>
> test-a.pbf (6K)
> <http://gis.19327.n5.nabble.com/attachment/5793545/2/test-a.pbf>

View this message in context: http://gis.19327.n5.nabble.com/Mapsource-crashes-while-calculating-a-route-tp5793545p5793565.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.

More information about the mkgmap-dev mailing list