<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>OK, found it.  It was as I suspected a missing endcentreline in the file called by an input statement immediately preceding the statement ‘input 11-DeerPlan.th2’.<o:p></o:p></p><p class=MsoNormal>So my mistake, I did not check as well as I thought I had.<o:p></o:p></p><p class=MsoNormal>I wonder if Therion could check for endcentreline statements (where they might normally be expected) and if not found by the end of a file, then issue a warning “missing endcentreline in file xxx.th”.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='mso-ligatures:none'>From:</span></b><span lang=EN-US style='mso-ligatures:none'> Therion <therion-bounces@speleo.sk> <b>On Behalf Of </b>Bruce Mutton<br><b>Sent:</b> Monday, 7 August 2023 15:36<br><b>To:</b> 'List for Therion users' <therion@speleo.sk><br><b>Subject:</b> [Therion] Invalid length reading error reported due to (valid) scrap definition<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal>I have a perplexing error, this time around after a complicated git merge, and I have had similar on one occasion a while back.<o:p></o:p></p><p class=MsoNormal>I think I resolved by omitting the file, which is not really a resolution.  This time I need a better solution!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On compiling a thconfig I get an error:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>C:\Program Files (x86)\Therion\therion.exe: error -- <span style='color:red'>11-DeerPlan.th2 [8] </span>-- invalid length reading -- -projection<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The start of file 11-DeerPlan.th2 is like this:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt'><p class=MsoNormal>encoding  utf-8<o:p></o:p></p><p class=MsoNormal>##XTHERION## xth_me_area_adjust -160.83 -127.28 965.01 763.65<o:p></o:p></p><p class=MsoNormal>##XTHERION## xth_me_area_zoom_to 200<o:p></o:p></p><p class=MsoNormal>##XTHERION## xth_me_image_insert {502.386220472 1 1.0} {626.342677165 11.8} ptopoDeer/11-Deer_p.xvi 0 {}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='background:yellow;mso-highlight:yellow'>scrap 11-DeerPlan-s1 -projection plan</span> -station-names []@11 -author 2023.02.26 "B Mutton" -copyright 2023 NZSS -scale [0 0 787.4 787.4 0 0 10 10 m]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>point 10.25 711.5 label -text "Deer Pot" -align l -scale xl<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>point 186.25 712.5 anchor -align r<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This is a well established scrap in a well established file in a well established project and both of the parent branches compiled without issue through many editing and versioning iterations.  Comparison with both of the parent git branches do not suggest any changes that should trigger such an error – at least I have not found it yet. <o:p></o:p></p><p class=MsoNormal>I have checked this file and all calling it for closed blocks (scrap endscrap, map endmap, centreline endcentreline, survey end survey etc) because long ago Therion used to complain in a similar manner if such blocks were not closed (reporting survey data type error due to a drawing file error – illogical).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Since this is the second time in a month I’ve experienced this type of ‘illogical’ error after nothing like it for years, I’m wondering if anyone else has, or has a clue as to what might be happening?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Bruce<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Using:<o:p></o:p></p><p class=MsoNormal>therion 6.1.8 (2023-06-14)<o:p></o:p></p><p class=MsoNormal>Windows 10 Home 22H2<o:p></o:p></p><p class=MsoNormal>GitHub desktop 3.2.7 (x64)<o:p></o:p></p><p class=MsoNormal><span lang=EN>TortoiseGit 2.14.0</span><o:p></o:p></p></div></body></html>