<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks a lot Bruce, looks like a bull's eye. I was able to replicate your error and fix it. Could you pls try again, it should be fixed in<a href="https://github.com/therion/therion/commit/4e3623ea6e7f876a67ef5f116ff0edb4cd5fe65e" class="gmail-f6 gmail-link-gray gmail-text-mono gmail-ml-2 gmail-d-none gmail-d-lg-inline" style="box-sizing:border-box;background-color:rgb(241,248,255);outline:none;margin-left:8px;font-size:12px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;display:inline">4e3623e</a>.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">S.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 21 Dec 2020 at 10:23, Stacho Mudrak <<a href="mailto:lists@group-s.sk">lists@group-s.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">bruce@tomo.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div><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-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">bruce@tomo.co.nz</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;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:1pt solid windowtext;padding:1pt 4pt;margin-left:36pt"><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><span style="font-size:12pt;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" rel="noreferrer" target="_blank">Therion@speleo.sk</a><br><a href="https://mailman.speleo.sk/listinfo/therion" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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>
</blockquote></div>