<div dir="ltr">Hi Gerd,<div><br></div><div>thanks for the quick response. Any other way I can try to get more debug information?</div><div><br><div>I tried with the patch but I still get:</div><div>gmapi-minimal: Skipping file E:\OpenMTBMap\contourlines20\europe\75500448.img<br>Exception in thread "main" java.lang.IllegalArgumentException<br> at java.base/sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:355)<br> at uk.me.parabola.imgfmt.sys.ImgFS.sync(ImgFS.java:249)<br> at uk.me.parabola.imgfmt.sys.ImgFS.close(ImgFS.java:325)<br> at uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinish(MdrBuilder.java:334)<br> at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:690)<br> at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)<br> at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:147)<br> at uk.me.parabola.mkgmap.main.Main.main(Main.java:118)<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Nov 2021 at 14:48, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Felix,<br>
<br>
might be an overflow. The code line is<br>
file.position(param.getReservedDirectoryBlocks() * param.getBlockSize());<br>
<br>
so two ints are multiplied.<br>
<br>
Please try if the attached patch changes something.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><br>
Gesendet: Dienstag, 30. November 2021 13:23<br>
An: Development list for mkgmap<br>
Betreff: [mkgmap-dev] Exception in thread "main" java.lang.IllegalArgumentException . on Europe extract<br>
<br>
Using mkgmap version 4808 - when compiling Europe. It went through fine on all geofabrik country extracts.<br>
I then upgraded to mkgmap 4819 and yesterday downloaded a new europe extract (4 days newer) from geofabrik to see if I can reproduce it again - and the error message is identical.<br>
I'm going to run with default style now again - to see if it makes a difference.<br>
<br>
C:\openmtbmap\mkgmap.jar --max-jobs=11 --order-by-decreasing-area "--generate-sea" --code-page=65001 "--precomp-sea=E:\OpenMTBMap\osmpbf_geofabrik\sea.zip" "--style-file=C:\openmtbmap\openmtbmap_style" --add-boundary-nodes-at-admin-boundaries --fix-roundabout-direction --improve-overview --drive-on=detect --allow-reverse-merge --lower-case --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" --add-pois-to-areas --pois-to-areas-placement=entrance=main;entrance=yes;building=entrance;barrier=entrance --simplify-lines=23:2.6,22:4.2,21:5.4,20:6,19:7,18:7.5,17:4.5,16:5,15:5,14:6 --simplify-polygons=23:3.6,22:7,21:6,20:9,17:5.4 --add-boundary-nodes-at-admin-boundaries=2 --cycle-map --ignore-fixme-values --housenumbers --road-name-config=C:\openmtbmap\openmtbmap_svn\roadNameConfig.txt --split-name-index --link-pois-to-ways --ignore-turn-restrictions --polygon-size-limits="24:12, 23:14, 22:14, 21:20, 20:20, 19:20, 18:20, 17:20, 16:20, 15:20, 14:20, 13:25" --description=omtb_eu --show-profiles=1 --location-autofill=bounds,is_in,nearest --bounds=E:\OpenMTBMap\osmpbf_geofabrik\bounds.zip --route --country-abbr=eu --country-name=europe --mapname=65500000 --family-id=6550 --product-id=1 --series-name=omtb_europe_29.11.2021_UC_LOCAL --family-name=mtb_eu_29.11.2021_UC_LOCAL --tdbfile --x-gmapi-minimal --overview-mapname=mapsetc --keep-going --area-name="europe_29.11.2021_UC_LOCAL_omtb" -c D:\openmtbmap\maps\template.europe E:\OpenMTBMap\contourlines20\europe\7*.img typeu.TYP 1>NUL<br>
<br>
<br>
Number of MapFailedExceptions: 0<br>
gmapi-minimal: Writing freshly compiled file C:\openmtbmap\maps\.\65500000.img<br>
gmapi-minimal: Writing freshly compiled file C:\openmtbmap\maps\.\65500001.img<br>
gmapi-minimal: Writing freshly compiled file C:\openmtbmap\maps\.\65500002.img<br>
gmapi-minimal: Writing freshly compiled file C:\openmtbmap\maps\.\65500003.img<br>
gmapi-minimal: Writing freshly compiled file C:\openmtbmap\maps\.\65500004.img<br>
................<br>
skipped<br>
.....................<br>
long list of contourline files:<br>
.........<br>
gmapi-minimal: Skipping file E:\OpenMTBMap\contourlines20\europe\75500447.img<br>
WARNING (global): Input file E:\OpenMTBMap\contourlines20\europe\75500448.img has different code page 1252<br>
WARNING (global): Input file E:\OpenMTBMap\contourlines20\europe\75500448.img has different charset type 10<br>
WARNING (global): Input files have different code pages<br>
gmapi-minimal: Skipping file E:\OpenMTBMap\contourlines20\europe\75500448.img<br>
.... 448 is the highest number contourlines file<br>
<br>
............And here comes the error<br>
it happens on writing the address index mdr file - mapset.img and mapset.tdb have already been created.<br>
<br>
Exception in thread "main" java.lang.IllegalArgumentException<br>
at java.base/<a href="http://sun.nio.ch" target="_blank">sun.nio.ch</a>.FileChannelImpl.position(FileChannelImpl.java:355)<br>
at uk.me.parabola.imgfmt.sys.ImgFS.sync(ImgFS.java:249)<br>
at uk.me.parabola.imgfmt.sys.ImgFS.close(ImgFS.java:325)<br>
at uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinish(MdrBuilder.java:334)<br>
at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:690)<br>
at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:126)<br>
at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:147)<br>
at uk.me.parabola.mkgmap.main.Main.main(Main.java:118)<br>
<br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div><br></div></div></div></div></div></div>