logo separator

[mkgmap-dev] Crash "Illegal Capacity" when converting map

From Jakob Mühldorfer mail at jmuehldorfer.de on Mon Dec 19 01:17:20 GMT 2016

Hi,

currently I am getting a ton of crashes like this:

> java.lang.IllegalArgumentException: Illegal Capacity: -1
>     at java.util.ArrayList.<init>(ArrayList.java:156)
>     at 
> uk.me.parabola.mkgmap.filters.ShapeMergeFilter.mergeLongestSequence(ShapeMergeFilter.java:363)
>     at 
> uk.me.parabola.mkgmap.filters.ShapeMergeFilter.tryMerge(ShapeMergeFilter.java:226)
>     at 
> uk.me.parabola.mkgmap.filters.ShapeMergeFilter.addWithConnectedHoles(ShapeMergeFilter.java:167)
>     at 
> uk.me.parabola.mkgmap.filters.ShapeMergeFilter.merge(ShapeMergeFilter.java:98)
>     at 
> uk.me.parabola.mkgmap.build.MapBuilder.processShapes(MapBuilder.java:1124)
>     at 
> uk.me.parabola.mkgmap.build.MapBuilder.makeSubdivision(MapBuilder.java:791)
>     at 
> uk.me.parabola.mkgmap.build.MapBuilder.makeMapAreas(MapBuilder.java:701)
>     at uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:232)
>     at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:107)
>     at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:69)
>     at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:256)
>     at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:252)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> Exiting - if you want to carry on regardless, use the --keep-going option

Any idea what might be wrong?

It happened in 3706 to 3730
Sometimes the exact same conversion process (splitting+mkgmap) on the 
exact same OSM file works, but that is rarely the case
If you need any more information, or an upload of the style and split 
tiles that cause the crash, let me know.

Hope you can help
Jakob


More information about the mkgmap-dev mailing list