<html><head><title>Re: Error in Africa?</title>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
</head>
<body>
<span style=" font-family:'consolas'; font-size: 9pt;">Hi, Randolph.<br>
<br>
I have no errors in Port Said. My other map is the whole of Asia. It contains part of Egypt with Port Said as well. Map of Asia compiles daily without issue. Although Port Said fits into one tile completely with all its streets and roads. I found the west side of Africa gives a problem. This is Guinea. But I cannot localize what exactly part of Guinea data is causing the crash. If you want to look for this reason too, you can try to play with extracted Guinea:<br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="http://download.geofabrik.de/africa/guinea-latest.osm.pbf">http://download.geofabrik.de/africa/guinea-latest.osm.pbf</a><br>
<br>
<span style=" font-family:'Consolas'; font-size: 9pt; color: #000000;">To All:<br>
My emails get into the mailing list only after a couple of days and I don't know why the delay happens. My other emails are always delivered instantly. This is annoying. I am also very upset that it is not possible to write directly to the Mkgmap Development forum on Nabble now. It was very convenient. For some unknown reason, this is not possible now. I made several requests to the Administrator and asking him to return the writing rights to me. But there are never answers. Does everyone have the same problem now?<br>
<br>
Best regards,<br>
Valentin<br>
<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=2 bgcolor= #0000ff><br>
</td>
<td ><span style=" font-family:'courier new'; font-size: 9pt;">Hello, all!<br>
Does this tile happen to contain the Port Said area near Cairo, Egypt? If so, you may be facing the same problem that I encountered in splitter. Splitter only limits the number of nodes in a tile. It ought to limit the number of ways as well. The Port Said area has an immense number of single city block length streets not joined into longer streets. I have built maps for the entire planet. That is the only place that I found that had that problem. The solution was to build Africa using a max nodes value of about 600 thousand nodes as you did, which brought the number of ways down sufficiently to avoid the problem in mkgmap. If splitter had an option to limit the number of nodes, then splitter would have divided the Port Said tile sufficiently that just those tiles would have had to be made small.<br>
Randolph J. Herber<br>
<span style=" font-family:'consolas';">On 7/31/2020 3:09 PM, </span></span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5972078&i=0">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;"> wrote:<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=2 bgcolor= #3200ff><br>
</td>
<td ><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
<span style=" font-family:'consolas'; font-size: 9pt;">Re: Error in Africa? Hi Ticker, hi Gerd,<br>
thanks for your attention.<br>
<br>
I continue to do my experiments. I tried to compile the map from this one 63240201.osm.pbf with and without the --gmapsupp option (of course to an empty output folder). I get the same result on my two FreeBSD servers and my Windows home computer. I am getting this error on all my systems.<br>
<br>
Command line for testing:<br>
java -jar ^<br>
       D:\OSM\mkgmap\mkgmap-r4564\mkgmap4564.jar ^<br>
       --output-dir=D:\Garmin\test\ ^<br>
       --family-name="OSM test %date%" ^<br>
       --series-name="OSM test %date%" ^<br>
       --overview-mapname="OSM_test" ^<br>
       --area-name="OSM Test %date%" ^<br>
       --family-id=480 ^<br>
       --read-config=./config2018/optionsfile.args ^<br>
       --mapname=63080000 ^<br>
       --style-file=Config2018 ^<br>
       --tdbfile ^<br>
         --bounds=D:\OSM\mkgmap\boundary\world ^<br>
       --road-name-config=./config2018/roadNameConfig.txt ^<br>
       --name-tag-list=name:en,int_name,name ^<br>
       --code-page:65001 --style-option=code-page=1250 ^<br>
       ./config2018/OSM-2018.txt --description="OSM test" ^<br>
       --gmapsupp ^<br>
       --add-boundary-nodes-at-admin-boundaries=3 ^<br>
       D:\OSM\test\63240201.osm.pbf<br>
<br>
Link to my Style files:<br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="https://maptourist.org/osm-garmin/CurrentConfigs/">https://maptourist.org/osm-garmin/CurrentConfigs/</a><br>
<br>
<span style=" font-family:'consolas'; font-size: 9pt;">Earlier I found a way to fix this error when I use the --max-nodes=600000 value. But this will produce an extremely large number of tiles! I really don't like this result. The same number of tiles is produced by the splitter when I making a map of the whole of Europe without the --max-nodes option. The compilation of the map of Europe is stable and looks very good without errors. But the original europe-latest.o5m is four times larger than africa-latest.o5m!<br>
I see this is an old and complex spiltter problem. I'm just trying to find out how OSM data is causing this error. It is still unpredictable for me.<br>
<br>
<br>
<br>
</span><table style =" border-collapse: collapse;" cellpadding = 1 cellSpacing = 2>
<tr>
<td  width=5 bgcolor= #0000ff><br>
</td>
<td ><span style=" font-family:'consolas'; font-size: 9pt;">Hi Ticker, hi Valentin<br>
<br>
my understanding is that the error message from MapSplitter was a false positive because mkgmap reports 0<br>
MapFailedExceptions.<br>
<br>
The crash with IndexOutOfBoundsException occurs in the final combiner phase for the gmapsupp. It might be caused by an I/O error or a corrupted *.img file.<br>
<br>
@Valentin: If you didn't already try that I suggest to clear the directory and restart the compilation. If that produces the same IndexOutOfBoundsException  please try again without the file 63240201.osm.pbf. Only if that works fine we can be sure that 63240201.osm.pbf is causing the crash.<br>
<br>
ciao,<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <</span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5971915&i=0">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;">> im Auftrag von Ticker Berkin <</span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5971915&i=1">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;">><br>
Gesendet: Freitag, 31. Juli 2020 17:01<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] Error in Africa?<br>
<br>
Hi Valentin & Gerd<br>
<br>
@Gerd, have you started looking at this?<br>
<br>
The initial error is related to the splitting of the tile into<br>
subdivisions and is VERY dependent on the size and layout of all map<br>
elements in the tile, which will depend on the style and many options<br>
as well as the actual OSM input.<br>
<br>
If not using the default style, can you zip up and post what you are<br>
using, also mkgmap command line and options.<br>
<br>
The exception happens later but is probably a consequence of the split<br>
failure.<br>
<br>
Ticker<br>
<br>
On Thu, 2020-07-30 at 23:33 +0300, </span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5971915&i=2">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;"> wrote:<br>
<br>
> Hi all,<br>
> My daily compilation of Africa was stopped because error is appear:<br>
> SEVERE (MapSplitter): 63240201.osm.pbf: Single item predicted to<br>
> exceed subdivision<br>
> </span><a style=" font-family:'consolas'; font-size: 9pt;" href="http://www.openstreetmap.org/?mlat=10.412207&mlon=-13.010709&zoom=17">http://www.openstreetmap.org/?mlat=10.412207&mlon=-13.010709&zoom=17</a><br>
<span style=" font-family:'consolas'; font-size: 9pt;">>         Number  of  MapFailedExceptions:  0 Exception in thread<br>
> "main"<br>
>         java.lang.IndexOutOfBoundsException:  Index:  113,  Size: 3<br>
>         at java.util.ArrayList.rangeCheck(Unknown Source)<br>
>         at java.util.ArrayList.get(Unknown Source)<br>
>         at<br>
> uk.me.parabola.imgfmt.app.net.NETFileReader.getRoads(NETFileReader.ja<br>
> va:116)<br>
>         at<br>
> uk.me.parabola.imgfmt.app.map.MapReader.getRoads(MapReader.java:205)<br>
>         at<br>
> uk.me.parabola.mkgmap.combiners.MdrBuilder.addStreets(MdrBuilder.java<br>
> :298)<br>
>         at<br>
> uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java:1<br>
> 71)<br>
>         at<br>
> uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onMapEnd(GmapsuppBuil<br>
> der.java:164)<br>
>         at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:665)<br>
>         at<br>
> uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.ja<br>
> va:125)<br>
>         at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:144)<br>
>         at uk.me.parabola.mkgmap.main.Main.main(Main.java:115)<br>
><br>
> Link to my tile where the error is:<br>
> </span><a style=" font-family:'consolas'; font-size: 9pt;" href="https://maptourist.org/tmp/63240201.osm.pbf">https://maptourist.org/tmp/63240201.osm.pbf</a><br>
<span style=" font-family:'consolas'; font-size: 9pt;">><br>
> I tried to find the cause of this error in OSM but could not. The<br>
> link<br>
> from  above  error  log  points  to  the  location  with completely<br>
> no<br>
> data somewhere in the middle of Guinea.<br>
> As  an  experiment, I loaded the problem  tile  into  JOSM  and<br>
>  fixed<br>
> all  automatically found errors. Then I tried to compile the<br>
> corrected<br>
> file. No positive effect. The error is still there.<br>
> I use mkgmap-r4564, but I found there is no dependency with other<br>
> versions.<br>
> How  do  I  find what exactly is causing this error in the OSM data?<br>
> Previously, this map was compiled many times over a long time without<br>
> such problem.<br>
><br>
><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5971915&i=3">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;"> <br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<span style=" font-family:'consolas'; font-size: 9pt;">_______________________________________________<br>
mkgmap-dev mailing list<br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5971915&i=4">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;"> <br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
<hr style="height: 2px; color : #000000;  background-color : #000000; border-width : 0px;"><span style=" font-family:'tahoma'; font-size: 9pt; color: #444444;"><b>If you reply to this email, your message will be added to the discussion below:<br>
</b></span><a style=" font-family:'tahoma'; font-size: 9pt;" href="http://gis.19327.n8.nabble.com/Error-in-Africa-tp5971902p5971915.html">http://gis.19327.n8.nabble.com/Error-in-Africa-tp5971902p5971915.html</a><br>
<span style=" font-family:'tahoma'; font-size: 9pt; color: #666666;">To unsubscribe from Mkgmap Development, <span style=" color: #000000;">click here<span style=" color: #666666;">.<br>
</span></span></span><a style=" font-family:'tahoma'; font-size: 7pt;" href="http://gis.19327.n8.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml">NAML</a></td>
</tr>
</table>
<br>
<br>
<br>
<span style=" font-family:'calibri'; font-size: 9pt; color: #c0c0c0;"><i>--<br>
С уважением,<br>
 Valentin3151                          </i></span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5972078&i=1">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;"> <br>
<span style=" font-family:'courier new';">_______________________________________________<br>
mkgmap-dev mailing list<br>
</span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5972078&i=2">[hidden email]</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<span style=" font-family:'consolas'; font-size: 9pt;">_______________________________________________<br>
mkgmap-dev mailing list<br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="/user/SendEmail.jtp?type=node&node=5972078&i=3">[hidden email]</a><span style=" font-family:'consolas'; font-size: 9pt;"> <br>
</span><a style=" font-family:'consolas'; font-size: 9pt;" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><span style=" font-family:'consolas'; font-size: 9pt;"> <br>
<br>
<hr style="height: 2px; color : #000000;  background-color : #000000; border-width : 0px;"><span style=" font-family:'tahoma'; color: #444444;"><b>If you reply to this email, your message will be added to the discussion below:<br>
</b></span></span><a style=" font-family:'tahoma'; font-size: 9pt;" href="http://gis.19327.n8.nabble.com/Error-in-Africa-tp5971902p5972078.html">http://gis.19327.n8.nabble.com/Error-in-Africa-tp5971902p5972078.html</a><span style=" font-family:'tahoma'; font-size: 9pt; color: #444444;"> <br>
<span style=" font-size: 8pt; color: #666666;">To unsubscribe from Mkgmap Development, </span></span><a style=" font-family:'tahoma';" href="http://gis.19327.n8.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5324443&code=dmFsZW50aW4zMTUxQGdtYWlsLmNvbXw1MzI0NDQzfC0xMDQyNTE0Njg2">click here</a><span style=" font-family:'tahoma'; color: #666666;">.<br>
</span><a style=" font-family:'tahoma'; font-size: 7pt;" href="http://gis.19327.n8.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml">NAML</a><span style=" font-family:'tahoma'; color: #666666;"> <br>
<br>
<br>
<br>
<span style=" font-family:'calibri'; font-size: 9pt; color: #c0c0c0;"><i>--<br>
С уважением,<br>
 Valentin3151                          </i></span></span><a style=" font-family:'calibri'; font-size: 9pt;" href="mailto:valentin3151@gmail.com">mailto:valentin3151@gmail.com</a></body></html>