I suspect that there is a new failure mode in Osmarender 5 which can occur on ways that have a very large number of segments.<br><br>The symptoms are similar to infinite recursion problem that occurred in Frollo.  This was caused by trying to recursively walk the segments in a way.  It barfed at about 200 segments.
<br><br>There is a new piece of functionality in Osmarender 5 that tries to measure the length of each way by recursively walking the segments.  It uses this information to determine whether the street name will fit on the way.  The obvious solution is to limit this recursion to, say, 20 segments, and just assume that names will fit if the way has more segments than this.
<br><br>80n<br><br><div><span class="gmail_quote">On 9/22/07, <b class="gmail_sendername"><a href="mailto:Sebastian@sspaeth.de">Sebastian@sspaeth.de</a></b> <<a href="mailto:Sebastian@sspaeth.de">Sebastian@sspaeth.de</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sat, Sep 22, 2007 at 10:01:10AM +0100, Andrew Luck wrote:<br>> I'm occasionally getting an error with the 
T@H client.<br>><br>> runtime error: file osmarender/osmarender.xsl line 767 element param<br>>  | xsltApplyXSLTTemplate: A potential infinite template recursion was<br>> detected.<br>>  | You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum
<br>> number of nested template calls and variables/params (currently set to<br>> 3000).<br><br>Etienne, do you know whether the xml transformation takes loads of<br>memory? If not, we might be able to increase the --maxdepth parameter
<br>from the t@h client side which might help for some more complicated<br>tiles.<br><br>Is there anything we can do from the osmarender side to ease this?<br><br>spaetz<br><br>_______________________________________________
<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
</a><br><br><br></blockquote></div><br>