<div dir="ltr"><div><div>Hi,<br><br></div>I have a IndexOutOfBoundsException while generating a map of the United States with mkgmap 3605. I think this is related to the recent house number merge because 3598 worked fine and the problem seems to come from house number related code.<br><br>java.lang.IndexOutOfBoundsException: bitIndex < 0: -1<br> at java.util.BitSet.get(BitSet.java:615)<br>
at
uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberGenerator$RoadSegmentIndex.createHousenumberMatch(HousenumberGenerator.java:2055)<br>
at
uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberGenerator.findClosestRoadsToHouse(HousenumberGenerator.java:794)<br> at uk.me.parabola.mkgmap.osmstyle.housenumber.HousenumberGenerator.generate(HousenumberGenerator.java:621)<br> at uk.me.parabola.mkgmap.osmstyle.StyledConverter.end(StyledConverter.java:619)<br> at uk.me.parabola.mkgmap.reader.osm.ElementSaver.convert(ElementSaver.java:250)<br> at uk.me.parabola.mkgmap.reader.osm.o5m.O5mBinMapDataSource.load(O5mBinMapDataSource.java:53)<br> at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.load(OsmMapDataSource.java:130)<br> at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:154)<br> at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:52)<br> at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:255)<br> at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:251)<br> at java.util.concurrent.FutureTask.run(FutureTask.java:262)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br> at java.lang.Thread.run(Thread.java:745)<br><br></div>Here's how I'm calling mkgamp:<br><div><div><div><br>java -Xmx14000M -jar -Dlog.config=/home/ben/osm/confs/logging.properties /home/ben/osm/mkgmap/dist/mkgmap.jar --latin1 --gmapsupp --index --route --min-size-polygon --series-name="United States 2015.06.03" --family-name="United States 2015.06.03" --location-autofill=bounds,is_in,nearest --remove-ovm-work-files --bounds=/home/ben/osm/data/bounds --precomp-sea=/home/ben/osm/data/sea_20150602.zip --generate-sea --add-pois-to-areas --process-destination --process-exits --pois-to-areas-placement="entrance=main;entrance=yes;building=entrance" --check-roundabout-flares --remove-short-arcs --family-id=14244 --product-id=1 --make-opposite-cycleways --drive-on=detect,right --check-roundabouts --housenumbers -c template.args --description="United States 2015.06.03" /home/ben/osm/confs/typ.txt<br><br></div><div>Obviously a full US map is big so I don't know exactly where the problem is. What's the best way to help narrow done the problem? Let me know what I can do.<br></div><div><br></div><div>Thanks, Ben<br></div></div></div></div>