logo separator

[mkgmap-dev] Mkgmap exception while reading "options" file

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Feb 27 07:31:41 GMT 2014

Hi Paco,

this seems to be a problem with java7. 
The program crashes while complaining about the last
part of this line :"Levels specification not all numbers "
overview-levels=5:17,6:15,7:14

I  assume that you have a special character following the 7:14 pair,
maybe uncommon line ending 0x0d ?
I'll try to find a correction for the crash.

Gerd

> Date: Wed, 26 Feb 2014 23:40:15 +0100
> From: paco.tyson at free.fr
> To: mkgmap-dev at lists.mkgmap.org.uk
> Subject: [mkgmap-dev] Mkgmap exception while reading "options" file
> 
> Hi all,
> 
> I'm faced with this error :
> 
> java -jar ../../../bin/mkgmap-r3057/mkgmap.jar --style-file=src/
> --style=style-FR --check-styles
> Time started: Wed Feb 26 23:20:35 CET 2014
> checking style: style-FR
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
> 	at uk.me.parabola.mkgmap.general.LevelInfo.createFromString(LevelInfo.java:74)
> 	at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readRules(StyleImpl.java:275)
> 	at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:160)
> 	at uk.me.parabola.mkgmap.main.Main.readOneStyle(Main.java:382)
> 	at uk.me.parabola.mkgmap.main.Main.checkStyles(Main.java:362)
> 	at uk.me.parabola.mkgmap.main.Main.processOption(Main.java:264)
> 	at
> uk.me.parabola.mkgmap.CommandArgsReader$CommandOption.processArg(CommandArgsReader.java:303)
> 	at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:125)
> 	at uk.me.parabola.mkgmap.main.Main.main(Main.java:117)
> 
> 
> When I invoke mkgmap as usual to compile a map, it fails after outputting this
> exact same exception trace 8 times. No map produced.
> 
> 
> I've narrowed the issue to the "options" file, pasted here :
> #
> # Style options.
> #
> # The name tag determines what tag is used as the name of a
> # feature.  Usually this is just 'name' but you might want something
> # more specific such as name:en or another language variant.
> # You can specify a list here, the first one that exists will be
> # used
> #
> # Example:
> # name_tag = name:en, int_name, name
> 
> # The levels specification for this style
> 
> levels=0:24,1:23,2:22,3:20,4:18
> overview-levels=5:17,6:15,7:14
> 
> 
> 
> If I comment out the 2 lines, then mkgmap runs fine (style checking and map
> compiling).
> This file was OK before I migrated from OS X Snow Leopard to Mavericks. Before :
> OS X 10.6.8, java6, mkgmap r2685. Now OS X 10.9.2, java7, mkgmap 3057 (same
> exception with r2960)
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140227/34073be1/attachment.html>


More information about the mkgmap-dev mailing list