Thank you very much, problem is gone! Joris
-----Oorspronkelijk bericht----- Van: mkgmap-dev <[email protected]> Namens Gerd Petermann Verzonden: woensdag 27 mei 2020 20:51 Aan: Development list for mkgmap <[email protected]> Onderwerp: Re: [mkgmap-dev] java.lang.StackOverflowError in length() function Hi Joris, did not try to reproduce. Seems that some waterway relations form a loop. Please try r4504. See http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4504 Gerd ________________________________________ Von: mkgmap-dev <[email protected]> im Auftrag von Joris Bo <[email protected]> Gesendet: Mittwoch, 27. Mai 2020 20:25 An: Development list for mkgmap Betreff: [mkgmap-dev] java.lang.StackOverflowError in length() function Hello, I got errors in the length() function When I build a europe map the error is written 2000 lines I think (I'm not 100% sure) it start happening after adding the length calculation of waterways in the relations file to decide if rivers should be visible at lower zoomlevels For a smaller country(Belgium) there are no errors type = waterway & length() >= 0 { apply role = main_stream { set jbm_waterway_length = '${mkgmap:cache_length}'; set jbm_waterway_distance = '${distance}'; set jbm_waterway_from_relation = true; } } It starts at line 5 of the logging output, the first 4 lines are warnings about drive-left/drive-right tiles The map builds oke after that (besides a couple of tiles in the alps which maybe correlated to this length issue, I can prove that later) java.lang.StackOverflowError (Next line is written 2000 lines the first java:49 then java:59) at uk.me.parabola.mkgmap.osmstyle.function.LengthFunction.calcLength(LengthFunction.java:49) at uk.me.parabola.mkgmap.osmstyle.function.LengthFunction.calcLength(LengthFunction.java:59) at uk.me.parabola.mkgmap.osmstyle.function.LengthFunction.calcLength(LengthFunction.java:59) at uk.me.parabola.mkgmap.osmstyle.function.LengthFunction.calcLength(LengthFunction.java:59) Kind regards, Joris Bo _______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
