[mkgmap-dev] problem with mkgmap r1699
Moin, I have a problem with mkgmap version r1699: it crashes while generating my maps. With r1673 everything was ok. It does not seem to be related to the style, I tried different layers of my maps and all are crashing. I use the following mkgmap command line and get this error message: java -jar -Xmx6144M ../../mkgmap-r1699/mkgmap.jar --style-file=../../styles/09_maxspeed --remove-short-arcs=5 --transparent --family-id=49 --country-name="Deutschland" --country-abbr="D" --overview-name="Tempolimits" --family-name="Tempolimits" --series-name="Tempolimits" --description="Tempolimits" --tdbfile --draw-priority=23 --max-jobs=3 -c maplist.txt java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at uk.me.parabola.mkgmap.reader.osm.MultiPolygonRelation.processEle (MultiPolygonRelation.java:818) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endRelation( mlHandler.java:620) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endElement(O lHandler.java:590) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.end nt(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endE t(XIncludeHandler.java:1014) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.n MLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl (XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann l.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.pa ML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.pa ML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLPa java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.par stractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXPar arse(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(Osm5 taSource.java:84) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:1 at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:189) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:186) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:30 at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoo utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe .java:907) at java.lang.Thread.run(Thread.java:619) Exiting - if you want to carry on regardless, use the --keep-going option Gruss Torsten ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] problem with mkgmap r1699
Hi Torsten, I can confirm that this is a problem of the MultiPolygon code that has been changed with r1694. Attached patch fixes that. But I am not sure in what situations the bug happens. Could you do me a favour and run mkgmap with the following log.properties file? === .level=SEVERE handlers: java.util.logging.FileHandler java.util.logging.FileHandler.level=FINE java.util.logging.FileHandler.formatter=uk.me.parabola.log.UsefulFormatter java.util.logging.FileHandler.limit=100 java.util.logging.FileHandler.count=4 java.util.logging.FileHandler.pattern=mkgmap.log java.util.logging.FileHandler.append=false uk.me.parabola.mkgmap.reader.osm.MultiPolygonRelation.level=FINE === Please run it without the --keep-going option and send me the logfile with the exception which should be mkgmap.log.0. Thanks! WanMil Moin, I have a problem with mkgmap version r1699: it crashes while generating my maps. With r1673 everything was ok. It does not seem to be related to the style, I tried different layers of my maps and all are crashing. I use the following mkgmap command line and get this error message: java -jar -Xmx6144M ../../mkgmap-r1699/mkgmap.jar --style-file=../../styles/09_maxspeed --remove-short-arcs=5 --transparent --family-id=49 --country-name="Deutschland" --country-abbr="D" --overview-name="Tempolimits" --family-name="Tempolimits" --series-name="Tempolimits" --description="Tempolimits" --tdbfile --draw-priority=23 --max-jobs=3 -c maplist.txt java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at uk.me.parabola.mkgmap.reader.osm.MultiPolygonRelation.processEle (MultiPolygonRelation.java:818) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endRelation( mlHandler.java:620) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endElement(O lHandler.java:590) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.end nt(AbstractSAXParser.java:601) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endE t(XIncludeHandler.java:1014) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann l$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.n MLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl (XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScann l.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.pa ML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.pa ML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLPa java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.par stractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXPar arse(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(Osm5 taSource.java:84) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:1 at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:189) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:186) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:30 at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoo utor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe .java:907) at java.lang.Thread.run(Thread.java:619) Exiting - if you want to carry on regardless, use the --keep-going option Gruss Torsten ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev Index: src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java === --- src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java (revision 1699) +++ src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java (working copy) @@ -813,11 +813,14 @@ if (currentPolygon.outer && outmostPolygonProcessing) { // this is the outmost polygon - copy its tags. They will be used // later for tagging of the lines - assert singularOuterPolygons.size
Re: [mkgmap-dev] problem with mkgmap r1699
WanMil schrieb am 20.09.2010 20:37: > But I am not sure in what situations the bug happens. Could you do me a > favour and run mkgmap with the following log.properties file? Is this problem already solved with r1700? Otherwise I have to admit, that I do not know how to run mkgmap with a log.properties file. So could you please explain me, how to use such a file. Gruss Torsten ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] problem with mkgmap r1699
On Tue, Sep 21, 2010 at 07:01:21PM +0200, Torsten Leistikow wrote: >WanMil schrieb am 20.09.2010 20:37: >> But I am not sure in what situations the bug happens. Could you do me a >> favour and run mkgmap with the following log.properties file? > >Is this problem already solved with r1700? > >Otherwise I have to admit, that I do not know how to run mkgmap with a >log.properties file. So could you please explain me, how to use such a file. java -Dlog.config=log.properties ... -jar mkgmap.jar ... Marko ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] problem with mkgmap r1699
Torsten, thanks for sending me your logfiles (apart the mailing list). The "Grüngürtel" multipolygon of Cologne (http://www.openstreetmap.org/browse/relation/1152542) caused the Exception. It is defined wrong. The inner way http://www.openstreetmap.org/browse/way/30777954 lies inside the another inner way http://www.openstreetmap.org/browse/way/75211982. This is not allowed. Usually mkgmap logs some warnings about this and does not throw an exception. This has been fixed with r1700 so the problem should not exist any more. WanMil > On Tue, Sep 21, 2010 at 07:01:21PM +0200, Torsten Leistikow wrote: >> WanMil schrieb am 20.09.2010 20:37: >>> But I am not sure in what situations the bug happens. Could you do me a >>> favour and run mkgmap with the following log.properties file? >> >> Is this problem already solved with r1700? >> >> Otherwise I have to admit, that I do not know how to run mkgmap with a >> log.properties file. So could you please explain me, how to use such a file. > > java -Dlog.config=log.properties ... -jar mkgmap.jar ... > > Marko > ___ > mkgmap-dev mailing list > mkgmap-dev@lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] problem with mkgmap r1699
WanMil schrieb am 21.09.2010 23:30: > This has been fixed with r1700 so the problem should not > exist any more. I can confirm, that r1701 does not crash any more. Thanks for the fast fix. Gruss Torsten ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev