<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body><p>Hi Gerd,</p><p>i have searched some adresses by using the gmapsupp (build with 4179) in BaseCamp. BaseCamp find the adresses. </p><div class="tw-ta-container tw-nfl"><pre class="tw-data-text tw-ta tw-text-small" dir="ltr" data-placeholder="Übersetzung" data-fulltext="">I am not sure if there is a difference to earlier versions.<br><br></pre></div><p>But i see you are some steps further. </p><p>Greets</p><p>Arndt</p><p><br></p><p><br></p><blockquote type="cite">Gerd Petermann hat am 26. April 2018 um 09:56 geschrieben:<br><br><br>Hi all,<br><br>I've now reproduced what happened. Arndt created a map for Bavaria. The index contains these countries:<br>"Cesko"<br>"COUNTRY" (the default)<br>"Deutschland"<br>"Österreich"<br>"Schweiz, Suisse, Svizzera, Svizra"<br>Each one has an index into a list of roads group by country and city. The old code expected that the last entry contains the highest index, but in this<br>case the map contains no roads in Switzerland (Schweiz), the index is 0. The old code used this value to find the number of needed bytest to store the index,<br>in this case 1. Since the index for "Österreich" is > 255 the assertion failed.<br><br>I don't know why the list contains Schweiz, the geofabrik poly file contains only a small part of lake "Bodensee". Maybe there is an exclave<br>or a POI is generated in this small area.<br><br>I think older versions of mkgmap simply created a wrong index in this case.<br>The strange thing is:<br>I did not find any problem on my Oregon 600, so maybe this wrong index is not used at all, at least not on my device.<br><br>Gerd<br><br>________________________________________<br>Von: mkgmap-dev im Auftrag von Gerd Petermann <br>Gesendet: Mittwoch, 25. April 2018 21:26:39<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] mkgmap4176 java-error<br><br>Hi Arndt,<br><br>if you still have the gmapsupp created with version r4165, please check if you see a difference in the adress search.<br>I am not sure what the effect of the error was, I assume the list of countries looks wrong or incomplete.<br><br>Gerd<br><br>________________________________________<br>Von: mkgmap-dev im Auftrag von Arndt <br>Gesendet: Mittwoch, 25. April 2018 20:56:29<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] mkgmap4176 java-error<br><br>Hi Gerd,<br><br>4179 and Bayern are OK. Thank you!<br><br>Arndt<br><br><br>---- Gerd Petermann schrieb ----<br><br>Hi Arndt,<br><br>I did not try to reproduce the error, please check if it is fixed with r4179.<br><br>Gerd<br><br>________________________________________<br>Von: mkgmap-dev > im Auftrag von Ticker Berkin ><br>Gesendet: Mittwoch, 25. April 2018 19:44:14<br>An: <a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br>Betreff: Re: [mkgmap-dev] mkgmap4176 java-error<br><br>Hi Gerd<br><br>Yes, but in "buildFromCountries()" above, near index.add(mdr29), or as<br>a pre-scan in writeSectData before setting size17 = numberToPointerSize<br><br>Ticker<br><br>On Wed, 2018-04-25 at 17:26 +0000, Gerd Petermann wrote:<blockquote type="cite">Hi Ticker,<br><br>thanks for the hint. I agree that the code to set max17 looks<br>suspicious.<br>Can't test right now, I think we just have to change<br>this.max17 = r.getMdr17();<br>to<br>this.max17 = Math.max(this.max17, r.getMdr17());<br><br>Do you agree?<br>Gerd<br><br><br><br>________________________________________<br>Von: mkgmap-dev > im Auftrag<br>von Ticker Berkin ><br>Gesendet: Mittwoch, 25. April 2018 19:06:18<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] mkgmap4176 java-error<br><br>Hi Gerd<br><br>I've been have a look at this as well.<br><br>The pre-io-change version of putNu didn't check that the value could<br>be<br>expressed in the given nBytes, so this error could have existed for a<br>while<br><br>The logic in MDR29 just picks the last record in<br> private final List index = new ArrayList<>();<br>assumes that getMdr17() from this has the highest value and can be<br>used<br>to determine nBytes for all the records in the call to<br> writer.putNu(size17, record.getMdr17());<br>Ticker<br><br>On Wed, 2018-04-25 at 18:26 +0200, Arndt Röhrig wrote:<blockquote type="cite">Hi Gerd,<br>here are the complete error-message:<br>Exception in thread "main" java.lang.AssertionError: 16735<br>at<br>uk.me.parabola.imgfmt.app.FileBackedImgFileWriter.putNu(FileBackedI<br>mg<br>FileWriter.java:213)<br>at uk.me.parabola.imgfmt.app.mdr.Mdr29.writeSectData(Mdr29.java:96)<br>at<br>uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection(MDRFile.java:421<br>)<br>at<br>uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:38<br>5)<br>at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:269)<br>at<br>uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice(MdrBui<br>ld<br>er.java:355)<br>at<br>uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBu<br>il<br>der.java:178)<br>at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:678)<br>at<br>uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.<br>ja<br>va:128)<br>at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:143)<br>at uk.me.parabola.mkgmap.main.Main.main(Main.java:114)<br><br>Greets<br>Arndt<blockquote type="cite">Gerd Petermann hat am 25. April 2018 um 17:13 geschrieben:<br><br><br>Hi Arndt,<br><br>this one is not so obvious to me. Please can you post the<br>complete<br>error message, esp. the line with<br>AssertionError ?<br><br>Gerd<br><br>________________________________________<br>Von: mkgmap-dev im Auftrag von Arndt Röhrig<br>Gesendet: Mittwoch, 25. April 2018 15:27:30<br>An: Development list for mkgmap<br>Betreff: [mkgmap-dev] mkgmap4176 java-error<br><br>Hi @all<br><br>mkgmap4176 failed to build a map from Bayern. (aftes building all<br>tiles) 4165 works well.<br><br>Maybe a similar problem like yesterday?<br><br>Or some exotic types in my style?<br><br>FileWriter.java:213)<br>at<br>uk.me.parabola.imgfmt.app.mdr.Mdr29.writeSectData(Mdr29.java:96)<br>at<br>uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection(MDRFile.java:4<br>21<br>)<br>at<br>uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections(MDRFile.java:<br>38<br>5)<br><br>at uk.me.parabola.imgfmt.app.mdr.MDRFile.write(MDRFile.java:269)<br>at<br>uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice(MdrB<br>ui<br>ld<br>er.java:355)<br>at<br>uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(Gmapsupp<br>Bu<br>il<br>der.java:178)<br>at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:678)<br>at<br>uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReade<br>r.<br>ja<br>va:128)<br>at uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:143)<br>at uk.me.parabola.mkgmap.main.Main.main(Main.java:114)<br><br><br>Greetz<br><br>Arndt<br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk</blockquote>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap">mkgmap-dev@lists.mkgmap</a>.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote></body></html>