logo separator

[mkgmap-dev] MDR_TRIM_ADDR.CXX error

From Steve Ratcliffe steve at parabola.me.uk on Mon Oct 22 11:53:17 BST 2012

On 22/10/12 09:07, Minko wrote:
> This error was caused in my syle file, where I handled place=locality the same as villages:
>
> (place=locality | place=village) & mkgmap:area2poi!=true [0x0b00 resolution 21-20 continue]
> (place=locality | place=village) & mkgmap:area2poi!=true [0x0600 resolution 22-22 continue]
> (place=locality | place=village) & mkgmap:area2poi!=true [0x0400 resolution 23]


Thanks for tracking that down, I am sure that is the source of the
problem.  Overall there are more than 73 thousand cities in that
single tile, so it is well into untested territory. I may be able to
fix it depending on if it is just a bug, or something that we don't
know and can't guess about how to represent. I suppose its even
possible that many cities is not even allowed.

The reason that mapsource crashes even when you select only other
tiles, is because it has to read through the index and extract the
parts that are relevant to the tile that you did select.  If the sizes
of the index records are not what it expects it will almost certainly
crash.

My MdrDisplay program even crashes when reading the index created from
that tile.

..Steve



More information about the mkgmap-dev mailing list