<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Thank god, it was so wonky, I was afraid that it might not work</p>
<p>As I said, I have a map for the holidays on my device, no rush<br>
</p>
<br>
<div class="moz-cite-prefix">Am 19.12.2016 um 19:55 schrieb Gerd
Petermann:<br>
</div>
<blockquote
cite="mid:HE1PR0802MB2442FA7A6D9D62C29EAB87859E910@HE1PR0802MB2442.eurprd08.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi Jakob,</p>
<p><br>
</p>
<p>I can reproduce the problem. I hope I can reduce it to a few
files tomorrow.<br>
</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>Von:</b>
mkgmap-dev <a class="moz-txt-link-rfc2396E" href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk"><mkgmap-dev-bounces@lists.mkgmap.org.uk></a> im
Auftrag von Jakob Mühldorfer <a class="moz-txt-link-rfc2396E" href="mailto:mail@jmuehldorfer.de"><mail@jmuehldorfer.de></a><br>
<b>Gesendet:</b> Montag, 19. Dezember 2016 19:05:06<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Crash "Illegal Capacity" when
converting map</font>
<div> </div>
</div>
<div>
<p>Yes, sorry for the europe-latest thing, but I have a crop
polygon that includes many countries and sadly I could not
narrow it down.<br>
I wondered if resolution and max nodes does not contradict a
bit, thanks for letting me know it really does</p>
<p>Will use a lower resolution<br>
</p>
<br>
<div class="moz-cite-prefix">Am 19.12.2016 um 18:58 schrieb Gerd
Petermann:<br>
</div>
<blockquote
cite="mid:HE1PR0802MB2442A6F2357EA7BC2D3A67499E910@HE1PR0802MB2442.eurprd08.prod.outlook.com"
type="cite">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi Jakob,</p>
<p><br>
</p>
<p>okay, that will take a while. Did not expect
europe-latest as input file ;-)</p>
<p>BTW: Why do you use resolution=15 in combination with
max-nodes=<span>2500000</span>? This seems to require lots
of memory and CPU without much benefit.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>Von:</b>
mkgmap-dev
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">
<mkgmap-dev-bounces@lists.mkgmap.org.uk></a> im
Auftrag von Jakob Mühldorfer <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mail@jmuehldorfer.de">
<mail@jmuehldorfer.de></a><br>
<b>Gesendet:</b> Montag, 19. Dezember 2016 18:43:24<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Crash "Illegal Capacity"
when converting map</font>
<div> </div>
</div>
<div>
<p>Hi Gerd,</p>
<p><br>
</p>
<p>you can find the workfolder and script here:</p>
<p><a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://www.jmuehldorfer.de/owncloud/index.php/s/yAKF6E47Y9pyxAd">https://www.jmuehldorfer.de/owncloud/index.php/s/yAKF6E47Y9pyxAd</a></p>
<p>Sorry for the chaos in the options, the script was
created piece by piece, they are not in logical order<br>
</p>
You also need to add a copy of bounds.zip and sea.zip into
the preload folder, I did not include that because you
likely already have them on your machine<br>
<p>And you might need to adjust java ram settings in the
script</p>
<p><br>
</p>
<p>Hope you can trigger the bug, thanks for looking into
this!<br>
Luckily one recent map converted just fine, and I don't
need mkgmap again until end of January
<br>
</p>
<p><br>
</p>
<p>Jakob<br>
</p>
<br>
<br>
<div class="moz-cite-prefix">Am 19.12.2016 um 18:33 schrieb
Gerd Petermann:<br>
</div>
<blockquote
cite="mid:HE1PR0802MB2442651DF2BFAEAE35F52E4E9E910@HE1PR0802MB2442.eurprd08.prod.outlook.com"
type="cite">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi Jakob,</p>
<p><br>
</p>
<p>that sound like we have a field which is not properly
initiated <img class="EmojiInsert"
id="OWAEmoji809368" alt="☹" style="vertical-align:
bottom;"
src="cid:part4.965A8C93.7CE05EA3@jmuehldorfer.de"></p>
<p>Please post your scripts etc., maybe I can reproduce
the problem.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" color="#000000" face="Calibri,
sans-serif"><b>Von:</b> mkgmap-dev
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">
<mkgmap-dev-bounces@lists.mkgmap.org.uk></a>
im Auftrag von Jakob Mühldorfer <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:mail@jmuehldorfer.de">
<mail@jmuehldorfer.de></a><br>
<b>Gesendet:</b> Montag, 19. Dezember 2016 18:27:30<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Crash "Illegal
Capacity" when converting map</font>
<div> </div>
</div>
<div>
<p>It is not that simple</p>
<p>I do get an empty tile, the way you recommended, but
when i manually start conversion of just that tile, it
works and outputs a 3.5MB img file for this tile</p>
<p>It is some kind of effect where you need to convert
multiple tiles at once to trigger the bug<br>
</p>
<br>
<div class="moz-cite-prefix">Am 19.12.2016 um 16:31
schrieb Gerd Petermann:<br>
</div>
<blockquote
cite="mid:HE1PR0802MB24423F3A4C53003B2FB81D4C9E910@HE1PR0802MB2442.eurprd08.prod.outlook.com"
type="cite">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi Jakob,</p>
<p><br>
</p>
<p>yes, send the scripts. You should be able to find
the problem tile if you add option
<br>
</p>
<p><span>--keep-going </span><br>
</p>
<p>to mkgmap. When it finishes you should see an
empty *.img file, the corresponding input file</p>
<p>is probably the cause.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
</div>
<hr style="display:inline-block;width:98%"
tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" color="#000000"
face="Calibri, sans-serif"><b>Von:</b> mkgmap-dev
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">
<mkgmap-dev-bounces@lists.mkgmap.org.uk></a>
im Auftrag von Jakob Mühldorfer <a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mail@jmuehldorfer.de">
<mail@jmuehldorfer.de></a><br>
<b>Gesendet:</b> Montag, 19. Dezember 2016
16:18:48<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Crash "Illegal
Capacity" when converting map</font>
<div> </div>
</div>
<div>
<p>Hi Gerd,</p>
<p><br>
</p>
<p>I am trying to reproduce it, but not getting very
far</p>
<p>Different splitter parameters, that did nothing<br>
Deleting 2 tiles that need to be converted, still
the same, delete just one other tile, and the bug
was gone.<br>
Unfortunately I am leaving this PC over christmas
and can't try much more, can I send you the folder
with the script used to convert the maps maybe?<br>
<br>
Jakob<br>
<br>
</p>
<br>
<div class="moz-cite-prefix">Am 19.12.2016 um 06:41
schrieb Gerd Petermann:<br>
</div>
<blockquote
cite="mid:HE1PR0802MB24426AE7C973FA71452FBA679E910@HE1PR0802MB2442.eurprd08.prod.outlook.com"
type="cite">
<meta name="Generator" content="Microsoft Exchange
Server">
<!-- converted from text -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<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 Jakob,</p>
<p><br>
</p>
<p>this seems to be a special case in the
(OSM) data. I can probably add a check to
avoid the crash</p>
<p>but I'd like to know what happens and I was
not yet able to reproduce it.<br>
</p>
<p>I assume it happens only for one input
file?<br>
</p>
<p>Please post a link to that file and maybe
your style and options if needed.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block;
width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" color="#000000"
face="Calibri, sans-serif"><b>Von:</b>
mkgmap-dev
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">
<mkgmap-dev-bounces@lists.mkgmap.org.uk></a> im Auftrag von Jakob
Mühldorfer <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:mail@jmuehldorfer.de">
<mail@jmuehldorfer.de></a><br>
<b>Gesendet:</b> Montag, 19. Dezember 2016
02:17:20<br>
<b>An:</b> <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:mkgmap-dev@lists.mkgmap.org.uk">
mkgmap-dev@lists.mkgmap.org.uk</a><br>
<b>Betreff:</b> [mkgmap-dev] Crash "Illegal
Capacity" when converting map</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
<br>
currently I am getting a ton of crashes like
this:<br>
<br>
> java.lang.IllegalArgumentException:
Illegal Capacity: -1<br>
> at
java.util.ArrayList.<init>(ArrayList.java:156)<br>
> at <br>
>
uk.me.parabola.mkgmap.filters.ShapeMergeFilter.mergeLongestSequence(ShapeMergeFilter.java:363)<br>
> at <br>
>
uk.me.parabola.mkgmap.filters.ShapeMergeFilter.tryMerge(ShapeMergeFilter.java:226)<br>
> at <br>
>
uk.me.parabola.mkgmap.filters.ShapeMergeFilter.addWithConnectedHoles(ShapeMergeFilter.java:167)<br>
> at <br>
>
uk.me.parabola.mkgmap.filters.ShapeMergeFilter.merge(ShapeMergeFilter.java:98)<br>
> at <br>
>
uk.me.parabola.mkgmap.build.MapBuilder.processShapes(MapBuilder.java:1124)<br>
> at <br>
>
uk.me.parabola.mkgmap.build.MapBuilder.makeSubdivision(MapBuilder.java:791)<br>
> at <br>
>
uk.me.parabola.mkgmap.build.MapBuilder.makeMapAreas(MapBuilder.java:701)<br>
> at
uk.me.parabola.mkgmap.build.MapBuilder.makeMap(MapBuilder.java:232)<br>
> at
uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:107)<br>
> at
uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:69)<br>
> at
uk.me.parabola.mkgmap.main.Main$1.call(Main.java:256)<br>
> at
uk.me.parabola.mkgmap.main.Main$1.call(Main.java:252)<br>
> at
java.util.concurrent.FutureTask.run(FutureTask.java:266)<br>
> at <br>
>
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>
> at <br>
>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>
> at
java.lang.Thread.run(Thread.java:745)<br>
> Exiting - if you want to carry on
regardless, use the --keep-going option<br>
<br>
Any idea what might be wrong?<br>
<br>
It happened in 3706 to 3730<br>
Sometimes the exact same conversion process
(splitting+mkgmap) on the <br>
exact same OSM file works, but that is
rarely the case<br>
If you need any more information, or an
upload of the style and split <br>
tiles that cause the crash, let me know.<br>
<br>
Hope you can help<br>
Jakob<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a moz-do-not-send="true"
href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</div>
</span></font><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" 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>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" 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>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" 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>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" 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>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
</body>
</html>