logo separator

[mkgmap-dev] is this a known crash

From Steve Ratcliffe steve at parabola.me.uk on Mon Oct 19 15:52:38 BST 2009

Hi Apollinaris

On 17/10/09 15:51, Apollinaris Schoell wrote:
> When --index is used I have 5 of 433 tiles crash with an exception. Can
> provide the data somewher fro download if someone is interested in debug.
>
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index:
> 13721, Size: 258

Thanks for supplying me with the failing maps and command line.

I found that the problem was with the --road-name-pois option and 
probably the fact that the particular file(s) you were compiling had 
just under 255 cities in them.

As that option was really only intended as a quick way of searching for 
roads in the absence of the global index, then perhaps it would be 
better to avoid the option when using the global index anyway.

The bug with road-name-pois is that it causes the poi_properties section 
to be written as if there were less than 255 cities, whereas there are 
in fact more in the final file.  I don't know exactly why that is 
happening, as there do appear to be less than 255 cities recorded at the 
time the records are written, so perhaps they get added later or 
separately.  It is also possible that the bug is not directly related to 
road-name-pois and the option merely triggers another bug.

..Steve



More information about the mkgmap-dev mailing list