[mkgmap-dev] java.lang.StackOverflowError in length() function
From Joris Bo jorisbo at hotmail.com on Thu May 28 06:36:08 BST 2020
Thank you very much, problem is gone! Joris -----Oorspronkelijk bericht----- Van: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> Namens Gerd Petermann Verzonden: woensdag 27 mei 2020 20:51 Aan: Development list for mkgmap <mkgmap-dev at lists.mkgmap.org.uk> 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 <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Joris Bo <jorisbo at hotmail.com> 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 mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] java.lang.StackOverflowError in length() function
- Next message: [mkgmap-dev] Commit r4504: Add robustness for length style function. Nested relations may form loops like A has member B and B has member A.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list