Tile with very few nodes fail to compile

Hi List! Since yesterday a tile of europe fails to compile and mkgmap crashes with an exception. I would have to reduce max-nodes to 32000 to get this area compiled. Problem is that I do not want to compile complete europe with that low value of max-nodes. Here is the areas.list file which contains this tile already reduced to a size where it nearly crashes:
# List of areas # Generated Sat Nov 07 09:08:24 CET 2009 # 77777777: 2516992,641024 to 2582528,690176 # : 54.008789,13.754883 to 55.415039,14.809570
And mkgmap crashes with the following exception:
java.lang.AssertionError at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadWithoutLoops(StyledConverter.java:1078) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadAfterSplittingLoops(StyledConverter.java:951) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoad(StyledConverter.java:879) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.convertWay(StyledConverter.java:273) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:558) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1119) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:190) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:188) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
Number of nodes in the created tile is 50935. mkgmap version is 1355. Why are so small tiles crashing? Regards Andre

Hi Andre,
java.lang.AssertionError at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadWithoutLoops(StyledConverter.java:1078) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadAfterSplittingLoops(StyledConverter.java:951)
Those line numbers do not correspond with the current mkgmap source. What version are you using? Cheers, Mark

Am Samstag, den 07.11.2009, 14:48 +0000 schrieb Mark Burton:
Andre,
What version are you using?
Ah yes, it helps if I read the whole email, 1355. Still, the backtrace line numbers don't make sense. Also, you chopped a bit off the top. Could you please post the complete backtrace?
Sorry, forgot to upgrade the dist before reporting so version number is wrong. Reported issue was created by version 1353. I've now upgraded to version 1357 (and also created new dist) so now everything should match. Just to be complete, this is the start script I use:
#!/bin/bash
java -Xmx4096M -enableassertions -jar /osm/svn/mkgmap/dist/mkgmap.jar "$@"
# End
Exception by version 1357:
java.lang.AssertionError at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadWithoutLoops(StyledConverter.java:1078) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoadAfterSplittingLoops(StyledConverter.java:951) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.addRoad(StyledConverter.java:879) at uk.me.parabola.mkgmap.osmstyle.StyledConverter.convertWay(StyledConverter.java:273) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:560) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1119) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:515) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:190) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:188) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)
If it is still chopped, contact me directly. Andre
participants (2)
-
Andre Hinrichs
-
Mark Burton