<div dir="auto"><div>Thanks a lot Bruce, untrapped error should never occur. I will try to investigate your findings with greater numbers then surveyors and let you know.</div><div dir="auto"><br></div><div dir="auto">S.<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Dec 21, 2020, 08:38 Bruce Mutton <<a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-NZ" link="blue" vlink="purple" style="word-wrap:break-word"><div class="m_6989180458691897221WordSection1"><p class="MsoNormal">Stacho<u></u><u></u></p><p class="MsoNormal">Sorry for the delay. Looks like version 5.5.4 and 647dcea both manifest the same problem at my end.<u></u><u></u></p><p class="MsoNormal">It occurs for both plan and extended elevation pdf outputs.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">For these ‘failures’ I have the number set to 10, and in some cases the number of explorers, surveyors or cartographers is less than 10.<u></u><u></u></p><p class="MsoNormal">Trial and error with some variations suggests that the syntax ‘statistics explo|topo|carto|copyright <number>’ will always fail if <number> is greater than the actual number of any one of those properties. The failure appears to be untrapped and stops processing unceremoniously.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I think that if there are only 3 surveyors, but <number> is >= 3, then there should not be any error condition, and the output should be produced listing the 3 properties. So it seems like a bug to me.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Bruce<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Therion <<a href="mailto:therion-bounces@speleo.sk" target="_blank" rel="noreferrer">therion-bounces@speleo.sk</a>> <b>On Behalf Of </b>Stacho Mudrak<br><b>Sent:</b> Sunday, 13 December 2020 21:15<br><b>To:</b> List for Therion users <<a href="mailto:therion@speleo.sk" target="_blank" rel="noreferrer">therion@speleo.sk</a>><br><b>Subject:</b> Re: [Therion] statistics <explo/topo/carto/copyright> number untrapped error<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Thanks Bruce for this feedback. In the latest snapshot, I have tried to fix this error by refactoring the whole problematic code. Could you please try, whether it still fails?<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">S.<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, 29 Nov 2020 at 06:14, Bruce Mutton <<a href="mailto:bruce@tomo.co.nz" target="_blank" rel="noreferrer">bruce@tomo.co.nz</a>> wrote:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span lang="EN-US">Stacho</span><u></u><u></u></p><p class="MsoNormal"><span lang="EN-US">Further to the untrapped error I mentioned last week…</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><div style="border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;margin-left:36.0pt"><p class="MsoNormal">Looks like it is counting scraps correctly. The following statements…<u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif"> statistics carto all</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif"> statistics carto-count hide (or on or off)</span><u></u><u></u></p><p class="MsoNormal">… work perfectly.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">One thing that does seem to be a problem however. The syntax…<u></u><u></u></p><p class="MsoNormal"><span class="m_6989180458691897221gmail-m6984044857699884666gmail-m7853353679874126546fontstyle21"><span style="font-size:12.0pt;font-family:"Calibri Light",sans-serif">statistics <explo/topo/carto/copyright> number </span></span><u></u><u></u></p><p class="MsoNormal">… is giving me problems. They all seem to result in what seems to be an untrapped error, and truncating the therion.log file in random locations.<u></u><u></u></p><p class="MsoNormal">For example this is what I have been trying…<u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif"> statistics topo 10</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif"> statistics topo-length hide</span><u></u><u></u></p><p class="MsoNormal">I checked with the previous recent version, 552f923 and after removing all the <span style="font-family:"Calibri Light",sans-serif">carto-count</span> statements, I get the same behaviour, an untrapped error. So I think the <span style="font-family:"Calibri Light",sans-serif">carto-count</span> is working perfectly and I have just unearthed a different problem.<u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Having left the problem for a few days (and rebooting a number of times) I thought I’d try my ‘top 10’ statistics layout (as in the attached LayoutStatisticsReporting.thc file).<u></u><u></u></p><p class="MsoNormal">I ran my thconfig a number of times. For a given input, the point at which the log file truncates seems to be consistent.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">The file log5 is what I get with a successful compile with all of the statistics.<u></u><u></u></p><p class="MsoNormal">The file log1 is what <span style="font-family:"Calibri Light",sans-serif">statistics <whatever> 10</span> gives me.<u></u><u></u></p><p class="MsoNormal">Thinking that the scraps reported near either side of the log file truncation might be associated, I commented them out of the map.<u></u><u></u></p><p class="MsoNormal">The file log04 shows what happens then – the truncation just occurs a few more characters along the file.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Bruce<u></u><u></u></p></div></div><p class="MsoNormal">_______________________________________________<br>Therion mailing list<br><a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br><a href="https://mailman.speleo.sk/listinfo/therion" target="_blank" rel="noreferrer">https://mailman.speleo.sk/listinfo/therion</a><u></u><u></u></p></blockquote></div></div></div>_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" target="_blank" rel="noreferrer">Therion@speleo.sk</a><br>
<a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer noreferrer" target="_blank">https://mailman.speleo.sk/listinfo/therion</a><br>
</blockquote></div></div></div>