[mkgmap-dev] Mkgmap exception while reading "options" file
From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Feb 27 11:31:43 GMT 2014
Hi Paco, I hope r3069 helps you to find out where the problem is. Gerd > Date: Thu, 27 Feb 2014 11:51:21 +0100 > From: paco.tyson at free.fr > To: mkgmap-dev at lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] Mkgmap exception while reading "options" file > > Hi Gerd, > > Selon Gerd Petermann <gpetermann_muenchen at hotmail.com>: > > > Hi Paco, > > > > this seems to be a problem with java7. > > I'm not in front of my computer but I remember that I downloaded the java7 jdk > from oracle's website. It's the latest version, 64bit. > > > 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 ? > > Maybe, I checked the documentation for a requirement on the encoding and line > ending of the style files but found nothing. So I assumed that wasn't an issue. > Which line ending should I use ? > By the way, what encoding should I use ? > > > I'll try to find a correction for the crash. > > Thanks, right now this bug is a showstopper, I can't compile any map. > > > > 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 > > > > > _______________________________________________ > 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/6b20d1e1/attachment.html>
- Previous message: [mkgmap-dev] Mkgmap exception while reading "options" file
- Next message: [mkgmap-dev] Mkgmap exception while reading "options" file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list