<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Paco,<br><br>this seems to be a problem with java7. <br>The program crashes while complaining about the last<br>part of this line :"Levels specification not all numbers "<br>overview-levels=5:17,6:15,7:14<br><br>I assume that you have a special character following the 7:14 pair,<br>maybe uncommon line ending 0x0d ?<br>I'll try to find a correction for the crash.<br><br>Gerd<br><br><div>> Date: Wed, 26 Feb 2014 23:40:15 +0100<br>> From: paco.tyson@free.fr<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: [mkgmap-dev] Mkgmap exception while reading "options" file<br>> <br>> Hi all,<br>> <br>> I'm faced with this error :<br>> <br>> java -jar ../../../bin/mkgmap-r3057/mkgmap.jar --style-file=src/<br>> --style=style-FR --check-styles<br>> Time started: Wed Feb 26 23:20:35 CET 2014<br>> checking style: style-FR<br>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2<br>>         at uk.me.parabola.mkgmap.general.LevelInfo.createFromString(LevelInfo.java:74)<br>>         at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readRules(StyleImpl.java:275)<br>>         at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:160)<br>>         at uk.me.parabola.mkgmap.main.Main.readOneStyle(Main.java:382)<br>>         at uk.me.parabola.mkgmap.main.Main.checkStyles(Main.java:362)<br>>         at uk.me.parabola.mkgmap.main.Main.processOption(Main.java:264)<br>>         at<br>> uk.me.parabola.mkgmap.CommandArgsReader$CommandOption.processArg(CommandArgsReader.java:303)<br>>         at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:125)<br>>         at uk.me.parabola.mkgmap.main.Main.main(Main.java:117)<br>> <br>> <br>> When I invoke mkgmap as usual to compile a map, it fails after outputting this<br>> exact same exception trace 8 times. No map produced.<br>> <br>> <br>> I've narrowed the issue to the "options" file, pasted here :<br>> #<br>> # Style options.<br>> #<br>> # The name tag determines what tag is used as the name of a<br>> # feature. Usually this is just 'name' but you might want something<br>> # more specific such as name:en or another language variant.<br>> # You can specify a list here, the first one that exists will be<br>> # used<br>> #<br>> # Example:<br>> # name_tag = name:en, int_name, name<br>> <br>> # The levels specification for this style<br>> <br>> levels=0:24,1:23,2:22,3:20,4:18<br>> overview-levels=5:17,6:15,7:14<br>> <br>> <br>> <br>> If I comment out the 2 lines, then mkgmap runs fine (style checking and map<br>> compiling).<br>> This file was OK before I migrated from OS X Snow Leopard to Mavericks. Before :<br>> OS X 10.6.8, java6, mkgmap r2685. Now OS X 10.9.2, java7, mkgmap 3057 (same<br>> exception with r2960)<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>