<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Ticker,</p>
<p><br>
</p>
<p>thanks, I'll have a look later. Maybe it is related to one of my recent changes where
<br>
</p>
<p>I changed some of those constraints.<br>
</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Ticker Berkin <rwb-mkgmap@jagit.co.uk><br>
<b>Gesendet:</b> Mittwoch, 7. Dezember 2016 16:08:22<br>
<b>An:</b> mkgmap-dev@lists.mkgmap.org.uk<br>
<b>Betreff:</b> Re: [mkgmap-dev] Problem with r3706</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Gerd<br>
<br>
I've been tearing my hair out over this one.<br>
<br>
With the test data supplied, the SubDivision structure in the main<br>
output .img file is incorrect. Just changing how areas are split (ie<br>
relaxing the constraint that bounds are exactly representable at the<br>
zoom/shift level) stops the crash, so this is what I've done in the<br>
attached patch.<br>
<br>
Sometime soon I'll try and work out when/where it goes wrong but I've<br>
been looking in so many places, thinking I'd tracked down the problem,<br>
only to find no difference, that I want to give up for a while.<br>
<br>
Best wishes<br>
Ticker<br>
<br>
<br>
On Fri, 2016-12-02 at 15:49 +0100, Arndt Röhrig wrote:<br>
> Hi,<br>
> Thank you all for the support!<br>
> <br>
> Best regaards<br>
> <br>
> Ticker Berkin <rwb-mkgmap@jagit.co.uk> hat am 2. Dezember 2016 um<br>
> 15:22 geschrieben:<br>
> <br>
> <br>
> I'll have a look. I didn't intentionally change extended type<br>
> behaviour, but shapes will end up in different subdivisions with the<br>
> option applied<br>
> <br>
> Ticker<br>
> <br>
> <br>
> On Fri, 2016-12-02 at 07:09 -0700, Gerd Petermann wrote:<br>
> I've got some more test data from Arndt, I've reproduced the<br>
> assertion, here<br>
> is the test data:<br>
> <a href="http://files.mkgmap.org.uk/download/316/test.zip">http://files.mkgmap.org.uk/download/316/test.zip</a><br>
> <br>
> The problem seems to be caused by the new <br>
> --order-by-decreasing-area option, if I remove that from the options<br>
> file<br>
> the problem is gone.<br>
> <br>
> @Ticker: Do you have time to analyse it? I assume the problem is that<br>
> we set<br>
> a flag like "extended type points exist" and later remove the<br>
> corresponding<br>
> data. Does that ring a bell?<br>
> <br>
> Gerd<br>
> <br>
> Arndt Röhrig wrote<br>
> <!DOCTYPE html><br>
> <br>
> <br>
> Hello everybody, i use mkgmap r3706. It run 2 times. The first one<br>
> makes<br>
> the img-files. The second one makes the mdr/mdrx files. The first<br>
> step<br>
> works fine, without error-messages, but the second step produces an<br>
> error<br>
> message and crashes: "Exception in thread "main"<br>
> java.lang.AssertionError: Invalid label offset found 1315595<br>
>         at<br>
> uk.me.parabola.imgfmt.app.lbl.LBLFileReader.fetchLabel(LBLFileReade<br>
> r.<br>
> java:87)         at<br>
> uk.me.parabola.imgfmt.app.trergn.RGNFileReader.fetchPointsCommon(RG<br>
> NF<br>
> ileReader.java:123)         at<br>
> uk.me.parabola.imgfmt.app.trergn.RGNFileReader.pointsForSubdiv(RGNF<br>
> il<br>
> eReader.java:84)         at<br>
> uk.me.parabola.imgfmt.app.map.MapReader.pointsForLevel(MapReader.ja<br>
> va<br>
> :119)         at<br>
> uk.me.parabola.mkgmap.combiners.MdrBuilder.addPoints(MdrBuilder.jav<br>
> a: 273)<br>
>         at<br>
> uk.me.parabola.mkgmap.combiners.MdrBuilder.onMapEnd(MdrBuilder.java<br>
> :1 78)<br>
>         at<br>
> uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:600)<br>
>         at<br>
> uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.<br>
> ja<br>
> va:128)         at<br>
> uk.me.parabola.mkgmap.main.Main.mainStart(Main.java:135)<br>
>         at<br>
> uk.me.parabola.mkgmap.main.Main.main(Main.java:106)"<br>
>   <br>
>               <br>
>          When i use mkgmap 3702 an<br>
> error<br>
> message at the first step appears, the second step works fine:<br>
> "SCHWERWIEGEND (ShapeMergeFilter):<br>
> ..\Splitter\88000004.osm.pbf:<br>
> ignoring shape w ith id 364926659 and type 0x13 at resolution 24,<br>
> it has 4<br>
> points and has an empt y area" The OSM-Data is<br>
> "nordrhein-westfalen.osm.pbf". An other map<br>
> "Kanaran"<br>
> works fine, without error. Whats the reason for this and what can i<br>
> do?<br>
> Best regards Arndt <br>
> <br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
> mkgmap-dev@.org<br>
> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
> <br>
> <br>
> <br>
> <br>
> --<br>
> View this message in context: <a href="http://gis.19327.n8.nabble.com/Problem-">
http://gis.19327.n8.nabble.com/Problem-</a><br>
> with-r3706-tp5886790p5886799.html<br>
> Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
> mkgmap-dev@lists.mkgmap.org.uk<br>
> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
> _______________________________________________mkgmap-dev mailing<br>
> list<br>
> mkgmap-dev@lists.mkgmap.org.uk<br>
> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</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>
> mkgmap-dev@lists.mkgmap.org.uk<br>
> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
</span></font>
</body>
</html>