<p dir="ltr">Hi Gerd,</p>
<p dir="ltr">4179 and Bayern are OK. Thank you!</p>
<p dir="ltr">Arndt</p>
<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 <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Ticker Berkin <<a href="mailto:rwb-mkgmap@jagit.co.uk">rwb-mkgmap@jagit.co.uk</a>><br>Gesendet: Mittwoch, 25. April 2018 19:44:14<br>An: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>Betreff: Re: [mkgmap-dev] mkgmap4176 java-error<br><br>Hi Gerd<br><br>Yes, but in "buildFromCountries()" above, near <a href="http://index.add">index.add</a>(mdr29), or as<br>a pre-scan in writeSectData before setting size17 = numberToPointerSize<br><br>Ticker<br><br>On Wed, <a href="tel:2018-04-25">2018-04-25</a> at 17:26 <a href="tel:+0000">+0000</a>, Gerd Petermann wrote:<br>> 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 = <a href="http://Math.max">Math.max</a>(this.max17, r.getMdr17());<br>><br>> Do you agree?<br>> Gerd<br>><br>><br>><br>> ________________________________________<br>> Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag<br>> von Ticker Berkin <<a href="mailto:rwb-mkgmap@jagit.co.uk">rwb-mkgmap@jagit.co.uk</a>><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<Mdr29Record> 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>> <a href="http://writer.putNu">writer.putNu</a>(size17, record.getMdr17());<br>> Ticker<br>><br>> On Wed, <a href="tel:2018-04-25">2018-04-25</a> at 18:26 <a href="tel:+0200">+0200</a>, Arndt Röhrig wrote:<br>> > Hi Gerd,<br>> > here are the complete error-message:<br>> > Exception in thread "main" <a href="http://java.lang.AssertionError">java.lang.AssertionError</a>: <a href="tel:16735">16735</a><br>> > at<br>> > <a href="http://uk.me.parabola.imgfmt.app.FileBackedImgFileWriter.putNu">uk.me.parabola.imgfmt.app.FileBackedImgFileWriter.putNu</a>(FileBackedI<br>> > mg<br>> > <a href="http://FileWriter.java:213">FileWriter.java:213</a>)<br>> > at <a href="http://uk.me.parabola.imgfmt.app.mdr.Mdr29.writeSectData">uk.me.parabola.imgfmt.app.mdr.Mdr29.writeSectData</a>(<a href="http://Mdr29.java:96">Mdr29.java:96</a>)<br>> > at<br>> > <a href="http://uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection">uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection</a>(<a href="http://MDRFile.java:421">MDRFile.java:421</a><br>> > )<br>> > at<br>> > <a href="http://uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections">uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections</a>(<a href="http://MDRFile.java:38">MDRFile.java:38</a><br>> > 5)<br>> > at <a href="http://uk.me.parabola.imgfmt.app.mdr.MDRFile.write">uk.me.parabola.imgfmt.app.mdr.MDRFile.write</a>(<a href="http://MDRFile.java:269">MDRFile.java:269</a>)<br>> > at<br>> > <a href="http://uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice">uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice</a>(MdrBui<br>> > ld<br>> > <a href="http://er.java:355">er.java:355</a>)<br>> > at<br>> > <a href="http://uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish">uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish</a>(GmapsuppBu<br>> > il<br>> > <a href="http://der.java:178">der.java:178</a>)<br>> > at <a href="http://uk.me.parabola.mkgmap.main.Main.endOptions">uk.me.parabola.mkgmap.main.Main.endOptions</a>(<a href="http://Main.java:678">Main.java:678</a>)<br>> > at<br>> > <a href="http://uk.me.parabola.mkgmap.CommandArgsReader.readArgs">uk.me.parabola.mkgmap.CommandArgsReader.readArgs</a>(CommandArgsReader.<br>> > ja<br>> > va:128)<br>> > at <a href="http://uk.me.parabola.mkgmap.main.Main.mainStart">uk.me.parabola.mkgmap.main.Main.mainStart</a>(<a href="http://Main.java:143">Main.java:143</a>)<br>> > at <a href="http://uk.me.parabola.mkgmap.main.Main.main">uk.me.parabola.mkgmap.main.Main.main</a>(<a href="http://Main.java:114">Main.java:114</a>)<br>> ><br>> > Greets<br>> > Arndt<br>> > > 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>> > > <a href="http://FileWriter.java:213">FileWriter.java:213</a>)<br>> > > at<br>> > > <a href="http://uk.me.parabola.imgfmt.app.mdr.Mdr29.writeSectData">uk.me.parabola.imgfmt.app.mdr.Mdr29.writeSectData</a>(<a href="http://Mdr29.java:96">Mdr29.java:96</a>)<br>> > > at<br>> > > <a href="http://uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection">uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSection</a>(<a href="http://MDRFile.java:4">MDRFile.java:4</a><br>> > > 21<br>> > > )<br>> > > at<br>> > > <a href="http://uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections">uk.me.parabola.imgfmt.app.mdr.MDRFile.writeSections</a>(<a href="http://MDRFile.java">MDRFile.java</a>:<br>> > > 38<br>> > > 5)<br>> > ><br>> > > at <a href="http://uk.me.parabola.imgfmt.app.mdr.MDRFile.write">uk.me.parabola.imgfmt.app.mdr.MDRFile.write</a>(<a href="http://MDRFile.java:269">MDRFile.java:269</a>)<br>> > > at<br>> > > <a href="http://uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice">uk.me.parabola.mkgmap.combiners.MdrBuilder.onFinishForDevice</a>(MdrB<br>> > > ui<br>> > > ld<br>> > > <a href="http://er.java:355">er.java:355</a>)<br>> > > at<br>> > > <a href="http://uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish">uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish</a>(Gmapsupp<br>> > > Bu<br>> > > il<br>> > > <a href="http://der.java:178">der.java:178</a>)<br>> > > at <a href="http://uk.me.parabola.mkgmap.main.Main.endOptions">uk.me.parabola.mkgmap.main.Main.endOptions</a>(<a href="http://Main.java:678">Main.java:678</a>)<br>> > > at<br>> > > <a href="http://uk.me.parabola.mkgmap.CommandArgsReader.readArgs">uk.me.parabola.mkgmap.CommandArgsReader.readArgs</a>(CommandArgsReade<br>> > > r.<br>> > > ja<br>> > > va:128)<br>> > > at <a href="http://uk.me.parabola.mkgmap.main.Main.mainStart">uk.me.parabola.mkgmap.main.Main.mainStart</a>(<a href="http://Main.java:143">Main.java:143</a>)<br>> > > at <a href="http://uk.me.parabola.mkgmap.main.Main.main">uk.me.parabola.mkgmap.main.Main.main</a>(<a href="http://Main.java:114">Main.java:114</a>)<br>> > ><br>> > ><br>> > > Greetz<br>> > ><br>> > > Arndt<br>> > > _______________________________________________<br>> > > mkgmap-dev mailing list<br>> > > <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>> > _______________________________________________<br>> > mkgmap-dev mailing list<br>> > <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>> > <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>_______________________________________________<br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>