Stackoverflow while loading style files

Hopefully someone can shed some light on what I'm doing wrong? java -Xmx1000M -ea -jar ~/garmin/utils/mkgmap/mkgmap.jar --style-file=/home/lambertus/garmin/world/styles/default/ --input-file=63240001.osm.gz java.lang.StackOverflowError at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:58) at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:392) at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:447) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544) at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:240) at java.lang.StringCoding.encode(StringCoding.java:272) at java.lang.String.getBytes(String.java:946) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:228) at java.io.File.isDirectory(File.java:754) at uk.me.parabola.mkgmap.osmstyle.DirectoryFileLoader.<init>(DirectoryFileLoader.java:47) at uk.me.parabola.mkgmap.osmstyle.StyleFileLoader.createStyleLoader(StyleFileLoader.java:64) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:132) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readBaseStyle(StyleImpl.java:518) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:140) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readBaseStyle(StyleImpl.java:518) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.<init>(StyleImpl.java:140) at uk.me.parabola.mkgmap.osmstyle.StyleImpl.readBaseStyle(StyleImpl.java:518) (Lot's of the same errors like the last 6 lines snipped) The styles directory is an svn export of the styles section in the Mkgmap SVN repository, svn info reports version 2160. Mkgmap version is r2162.

Lambertus, maybe this link helps? http://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg11034.html

Great find Minko! When the commandline is changed to: java -Xmx1000M -ea -jar ~/garmin/utils/mkgmap/mkgmap.jar --style-file=/home/lambertus/garmin/world/styles/ --style=default --input-file=63240001.osm.gz Then it works. If there is more then one style in the styles directory then set the --style-file to the styles directory and select the style using the --style option. If there is only one style in the styles directory then the --style-file option can be set tot the style directory and the --style option can be omitted. Thanks! On 14-01-12 13:18, Minko wrote:
Lambertus, maybe this link helps? http://www.mail-archive.com/mkgmap-dev@lists.mkgmap.org.uk/msg11034.html _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Lambertus
-
Minko