Hello,

I 'm reporting some troubles to generate a map covering France+Switzerland. (--bounding-box top=51.08 left=-5.11 bottom=42.38 right=10.6 ) together with a (strange) workaround possibilty

My first try, with a splitter at --max-nodes=3200000 failed (too many roads in map, I've been too greedy).
So a retried without any max-node option in tile splitter, which gave me 195 tiles.
Then when using mkgmap r1907, it crashed like this:
 java -Xmx2000m -jar mkgmap.jar --gmapsupp --style-file=../styles/routable/ --family-id=404 --family-name=OSM_Routable --route --add-pois-to-areas --remove-short-arcs --product-id=406 --draw-priority=0 -c ../work/template1.args  ../typ/GB404J.TYP
Exception in thread "main" java.lang.IllegalArgumentException
    at java.nio.ByteBuffer.allocate(ByteBuffer.java:328)
    at uk.me.parabola.imgfmt.sys.Directory.sync(Directory.java:176)
    at uk.me.parabola.imgfmt.sys.ImgFS.sync(ImgFS.java:230)
    at uk.me.parabola.imgfmt.sys.ImgFS.close(ImgFS.java:240)
    at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBuilder.java:124)
    at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:419)
    at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)
    at uk.me.parabola.mkgmap.main.Main.main(Main.java:129)

However, the 195 individual img files are produced, as well as a gmasupp.img, wich appears unusable (my etrex sees no map at all in it).

I tried then to "group" the 195 tiles by using:
java -Xmx2000m -jar mkgmap.jar --gmapsupp 19610*.img
This gave the same crash as above.

I tried then to group only the 100 first tiles with
java -Xmx2000m -jar mkgmap.jar --gmapsupp 196100*.img
: no crash. I renamed the produced file into gmapsupp0.img. (Remark: I omit the .TYP as I don't really need it today, but I used this typ with success on small area maps.)
Similarly, I grouped the remaining 95 files with
java -Xmx2000m -jar mkgmap.jar --gmapsupp 196101*.img
: again no crash, and i kept the result as gmapsupp1.img
Finally, I grouped the two subproducts by
java -Xmx2000m -jar mkgmap.jar --gmapsupp gmapsupp0.img gmapsupp1.img
: no crash, the produced gmapsupp.img seems about to be usable in my etrex legend HCx (although quite slow and sometime crashing the etrex randomly (?), when searching a city name for example: the display fades away and the etrex gets off)
Remark: The "working" gmapsupp.img has exactly the same size as the first one (totally unusable): 844,8 Mo (885850112 bytes).