<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><tt>Hello, all!</tt></p>
    <p><tt>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>
      </tt></p>
    <p><tt>Randolph J. Herber</tt><br>
    </p>
    <div class="moz-cite-prefix">On 7/31/2020 3:09 PM,
      <a class="moz-txt-link-abbreviated" href="mailto:valentin3151@gmail.com">valentin3151@gmail.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:681870909.20200731230946@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title>Re: Error in Africa?</title>
      <meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9;
        IE=8; IE=7; IE=EDGE">
      <span style=" font-family:'consolas'; font-size: 9pt;">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/"
        moz-do-not-send="true">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;" cellspacing="2"
        cellpadding="1">
        <tbody>
          <tr>
            <td width="4" 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"
                moz-do-not-send="true">[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"
                moz-do-not-send="true">[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"
                moz-do-not-send="true">[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"
                moz-do-not-send="true">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"
                moz-do-not-send="true">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"
                moz-do-not-send="true">[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"
                moz-do-not-send="true">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"
                moz-do-not-send="true">[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"
                moz-do-not-send="true">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"
                moz-do-not-send="true">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><a
                style=" font-family:'tahoma'; font-size: 9pt;"
href="http://gis.19327.n8.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5324443&code=dmFsZW50aW4zMTUxQGdtYWlsLmNvbXw1MzI0NDQzfC0xMDQyNTE0Njg2"
                moz-do-not-send="true">click here</a><span style="
                font-family:'tahoma'; font-size: 9pt; 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"
                moz-do-not-send="true">NAML</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <br>
      <span style=" font-family:'calibri'; font-size: 9pt; color:
        #c0c0c0;"><i>--<br>
          С уважением,<br>
           Valentin3151                          </i></span><a style="
        font-family:'calibri'; font-size: 9pt;"
        href="mailto:valentin3151@gmail.com" moz-do-not-send="true">mailto:valentin3151@gmail.com</a><span
        style=" font-family:'consolas'; font-size: 9pt;"> 
      </span><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
    </blockquote>
  </body>
</html>