<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>I hope r3069 helps you to find out where the problem<br>is.<br><br>Gerd<br><br><div>> Date: Thu, 27 Feb 2014 11:51:21 +0100<br>> From: paco.tyson@free.fr<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Mkgmap exception while reading "options" file<br>> <br>> Hi Gerd,<br>> <br>> Selon Gerd Petermann <gpetermann_muenchen@hotmail.com>:<br>> <br>> > Hi Paco,<br>> ><br>> > this seems to be a problem with java7.<br>> <br>> I'm not in front of my computer but I remember that I downloaded the java7 jdk<br>> from oracle's website. It's the latest version, 64bit.<br>> <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>> <br>> Maybe, I checked the documentation for a requirement on the encoding and line<br>> ending of the style files but found nothing. So I assumed that wasn't an issue.<br>> Which line ending should I use ?<br>> By the way, what encoding should I use ?<br>> <br>> > I'll try to find a correction for the crash.<br>> <br>> Thanks, right now this bug is a showstopper, I can't compile any map.<br>> ><br>> > Gerd<br>> ><br>> > > 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<br>> > 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>> > ><br>> ><br>> uk.me.parabola.mkgmap.CommandArgsReader$CommandOption.processArg(CommandArgsReader.java:303)<br>> > >         at<br>> > 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<br>> > 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.<br>> > 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>> ><br>> <br>> <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>