Re: [mkgmap-dev] Assertion error with r3350

From: gpetermann_muenchen@hotmail.com To: extremecarver@gmail.com Subject: RE: [mkgmap-dev] Assertion error with r3350 Date: Thu, 20 Nov 2014 11:05:40 +0100 Hi all, the problem is caused by this way: http://www.openstreetmap.org/way/313259878 or more specific by the tag <tag k="addr:housenumber" v=":702"/> If I change that to <tag k="addr:housenumber" v="702"/> mkgmap works. I am not sure where to fix that. Gerd Date: Thu, 20 Nov 2014 10:21:47 +0100 From: extremecarver@gmail.com To: gpetermann_muenchen@hotmail.com; mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] Assertion error with r3350 Location (.img and also .osm.pbf) http://openmtbmap.org/analysis.7z I think it happens also if you really just want to create a basic overview mapset.img / mapset.tdb. Not even need for search index. (otherwise I got a second different bug in mkgmap that more or less throws the same exception). there are three .tmp files generated - only the mdr.... .tmp file has some data (about 3MB) - the other are 0byte files. - just to give you an idea how far it gets. Sorry I forgot to add them into the download. Okay - here we go (don't mind the 7*.img - that doesn't change a thing): C:\OpenMTBMap\maps>start /low /b /wait java -jar -XX:StringTableSize=100003 -Xms6000M -Xmx10300M c:\openmtbmap\mkgmap.jar --max-jobs=8 "--generate-sea" "--latin1" "--precomp-sea=c:\openmtbmap\maps\sea.zip" "--style-file=c:\openmtbmap\openmtbmap_style" --nsis --index --levels="0:24, 1:23, 2:22, 3:21, 4:20, 5:19, 6:18" --overview-levels="7:17, 8:16, 9:15, 10:14, 11:13, 12:12" --adjust-turn-headings --add-pois-to-areas --reduce-point-density=3.4 --reduce-point-density-polygon=6 --housenumbers --link-pois-to-ways --ignore-turn-restrictions --polygon-size-limits="24:16, 23:14, 22:12, 21:11, 20:10, 19:9, 18:8, 17:7, 16:6, 15:5, 14:4, 13:3, 12:2, 11:0, 10:0" --description=openmtbmap_co --show-profiles=1 --location-autofill=bounds,is_in,nearest --bounds=c:\openmtbmap\maps\bounds.zip --route --country-abbr=co --country-name=colombia --mapname=64740000 --family-id=6474 --product-id=1 --series-name=openmtbmap_colombia_20.11.2014 --family-name=mtbmap_co_20.11.2014 --tdbfile --overview-mapname=mapsetc --keep-going --area-name="colombia_20.11.2014_openmtbmap.org" -c e:\openmtbmap\maps\template.colombia 7*.img 1>NUL Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 55528, Size: 16191 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at uk.me.parabola.imgfmt.app.lbl.LBLFileReader.readPoiInfo(LBLFileReader.java:414) at uk.me.parabola.imgfmt.app.lbl.LBLFileReader.<init>(LBLFileReader.java:75) at uk.me.parabola.mkgmap.combiners.FileInfo.lblInfo(FileInfo.java:326) at uk.me.parabola.mkgmap.combiners.FileInfo.lblInfo(FileInfo.java:313) at uk.me.parabola.mkgmap.combiners.FileInfo.imgInfo(FileInfo.java:259) at uk.me.parabola.mkgmap.combiners.FileInfo.getFileInfo(FileInfo.java:152) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:540) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) at uk.me.parabola.mkgmap.main.Main.main(Main.java:105) On 20.11.2014 10:01, Gerd Petermann wrote: Hi Felix, yes, I tried to reproduce it with Colombia yesterday but found no problem. My 1st thought was an I/O error, but that is unlikely now that two users have the problem. Gerd > Date: Thu, 20 Nov 2014 09:58:41 +0100 > From: extremecarver@gmail.com > To: mkgmap-dev@lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] Assertion error with r3350 > > oh - BTW - this error happens when compiling mapset.img and mapset.tdb. > NOT when compiling the actual .img files. I can upload the columbia > .img files if someone want to analyze what causes the crash.. (at least > that's easier then on a continent map). > On 19.11.2014 17:45, Carlos Dávila wrote: > > I'm getting an assertion error compiling two of my maps (Colombia and > > Venezuela) with mkgmap r3350 > > Number of MapFailedExceptions: 0 > > Exception in thread "main" java.lang.AssertionError: Invalid label > > offset found 16091027 > > at > > uk.me.parabola.imgfmt.app.lbl.LBLFileReader.fetchLabel(LBLFileReader.java:87) > > at > > uk.me.parabola.imgfmt.app.lbl.LBLFileReader.readPoiInfo(LBLFileReader.java:394) > > at > > uk.me.parabola.imgfmt.app.lbl.LBLFileReader.<init>(LBLFileReader.java:75) > > at > > uk.me.parabola.mkgmap.combiners.FileInfo.lblInfo(FileInfo.java:326) > > at > > uk.me.parabola.mkgmap.combiners.FileInfo.lblInfo(FileInfo.java:313) > > at > > uk.me.parabola.mkgmap.combiners.FileInfo.imgInfo(FileInfo.java:259) > > at > > uk.me.parabola.mkgmap.combiners.FileInfo.getFileInfo(FileInfo.java:152) > > at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:540) > > at > > uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:128) > > at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:134) > > at uk.me.parabola.mkgmap.main.Main.main(Main.java:105) > > > > My mkgmap command: > > mkgmap.jar --bounds=bounds.zip --precomp-sea=sea.zip --max-jobs > > --route --latin1 --code-page=1252 \ > > --country-name=$PAIS --country-abbr=$ABR --area-name=$MAPA > > --family-name="OpenStreetMap $MAPA" --family-id=1$FID --product-id=1 > > --series-name="OSM-$MAPA" \ > > --overview-mapname=$ABR-1$FID --overview-mapnumber=551${FID}000 > > --name-tag-list=$NAMETAG --index --process-destination --process-exits > > --housenumbers \ > > --remove-short-arcs=0 --reduce-point-density=4 > > --reduce-point-density-polygon=8 --polygon-size-limits="24:12, 18:10, > > 16:0" --add-pois-to-areas --adjust-turn-headings --report-similar-arcs > > --report-dead-ends=2 --link-pois-to-ways \ > > --location-autofill=is_in,nearest --drive-on-$DRIVEON > > --check-roundabouts --check-roundabout-flares > > --license-file=license_ODbL.txt \ > > --copyright-message="OpenStreetMap contributors, ODbL. See: > > http://www.openstreetmap.org/copyright" --style=mio --check-styles -c > > $pais.args > > > > Error also happens with default style > > _______________________________________________ > > mkgmap-dev mailing list > > mkgmap-dev@lists.mkgmap.org.uk > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > -- > keep on biking and discovering new trails > > Felix > openmtbmap.org & www.velomap.org > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev@lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Hi Gerd
the problem is caused by this way: http://www.openstreetmap.org/way/313259878
Thanks for finding the troublesome element. POI address numbers can be pure numbers or labels if not numeric. The code either writes this wrong or gets it wrong on reading in some circumstances. ..Steve
participants (2)
-
Gerd Petermann
-
Steve Ratcliffe