OSM Combiner trouble

Hello forum,

Anyone used the OSM Combiner ? (if this is the proper thread for this)

I’ve downloaded the maps of the countries I want to use and have tried stitching them together with the OSMC tool.
Unfortunately it throws an error every time I try it, regardless of the setting/options/values I choose.

It can’t be that difficult now can it ?

Cheers for any help. Ard

This is what I get:

Time started: Wed Nov 29 15:19:03 CET 2017
Number of MapFailedExceptions: 0
Exception in thread “main” java.lang.OutOfMemoryError: GC overhead limit exceeded
at uk.me.parabola.imgfmt.app.net.NETFileReader.getRoads(NETFileReader.java:88)
at uk.me.parabola.imgfmt.app.map.MapReader.getRoads(MapReader.java:205)
at uk.me.parabola.mkgmap.combiners.MdrBuilder.addStreets(MdrBuilder.java:307)
at uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:180)
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:567)
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)

It’s always like this but if I set the JAVA value higher it only takes longer for the error to come up. (and there might be a different value here or there)

Thank for pointing out the existence of OSM Combiner.

If you have much data in the maps to be combined, then it can take many gigabytes of data to process. When I combined all of the Americas into a single mapset (admittedly by a different method, using osmosis and mkgmap), I needed to have about 11 GB of Java heap space to do it in the mkgmap step (which you also are using). The very first line of the Exception report tells me that you ran out of heap space. You will need to increase your -Xmx value on your java. You may encounter problems making it large enough if you are using 32-bit Java, a 32-bit operating system or you push your computer into memory thrashing. I worked on a 16 GB memory computer with both 64-bit Java and OS.