<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)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0mm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",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="#467886" vlink="#96607D" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>I tried <a href="https://github.com/iccaving/migovec-survey-data">iccaving/migovec-survey-data: Cave survey data for the Migovec System in Slovenia</a> to see if the three overview thconfigs might display this behaviour.<o:p></o:p></p><p class=MsoNormal>The longest compilations are about 45 km, and trialling of various colour map-fg combinations and scales as below did not trigger any cases of this error.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Back to looking at my own dataset I suppose.<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><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0mm 0mm 0mm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-NZ'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-NZ'> Therion <therion-bounces@speleo.sk> <b>On Behalf Of </b>bruce@tomo.co.nz<br><b>Sent:</b> Sunday, 19 April 2026 17:20<br><b>To:</b> 'List for Therion users' <therion@speleo.sk><br><b>Subject:</b> [Therion] th_formdef.tex runaway text error<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m exploring what might be causing this problem that I raised 3 weeks ago (copied below).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It has been affecting a project where we are migrating a lot of centrelines from On-Station to Therion.<o:p></o:p></p><p class=MsoNormal>Back in March this problem only affected exported pdf elevations that were over about 30 km in length.<o:p></o:p></p><p class=MsoNormal>Now we are closer to 63 km, it is also affecting exported pdf plans.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I drill down to subsets of the project, there is no particular atomic subset that errors out.<o:p></o:p></p><p class=MsoNormal>Seems like when the subset drops below around 30 km the problem resolves itself and everything works OK.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Paring the layout used for exports down to specify only the scale of the output and then gradually adding statements, I have narrowed the culprit down to the <b>colour map-fg</b> statement.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Specifically, <b>colour map-fg [97 86 38]</b> is what seems to trigger the error.<o:p></o:p></p><p class=MsoNormal>Similarly <b>colour map-fg scrap</b> and <b>colour map-fg map</b>.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However <b>colour map-fg 50</b> does not exhibit the problem for the 30-ish km centrelines. An example below.<o:p></o:p></p><p class=MsoNormal>Neither does <b>colour map-fg altitude</b> (a colour legend is placed in the header, but the LRUD is not coloured – don’t know if that is expected or not).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This breaks down somewhat at 60-ish km and all pdf exports fail even with only a scale specified.<o:p></o:p></p><p class=MsoNormal>I have not figured out if this affects all my large projects, as I got interrupted by the map -survey option problem reported earlier.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Stepping back in time, based on limited testing, all versions back to at least therion 6.2.1 (2024-03-20) behave similarly).<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><span style='mso-ligatures:none'><img border=0 width=1029 height=534 style='width:10.7222in;height:5.5625in' id="Picture_x0020_1" src="cid:image001.png@01DCD0B9.680CF8C0"></span><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 0mm 0mm 0mm'><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-NZ'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:EN-NZ'> Therion <<a href="mailto:therion-bounces@speleo.sk">therion-bounces@speleo.sk</a>> <b>On Behalf Of </b><a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a><br><b>Sent:</b> Monday, 30 March 2026 15:51<br><b>To:</b> 'List for Therion users' <<a href="mailto:therion@speleo.sk">therion@speleo.sk</a>><br><b>Subject:</b> [Therion] th_formdef.tex runaway text error<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’ve just created an error, due I believe to particular layout changes I’ve made to a couple of exported elevations, but I’m yet to isolate which changes are the culprits.<o:p></o:p></p><p class=MsoNormal>(It’s not related to recent posts I’ve made on <a href="https://github.com/therion/therion">therion/therion: therion – cave surveying software</a>, and it is consistent across all recent Therion versions)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Perhaps someone may know if I can use the therion log information to track down the cause?<o:p></o:p></p><p class=MsoNormal>Using the below information I checked in file thTMPDIR /th_formdef.tex<o:p></o:p></p><p class=MsoNormal>…and found the string \PL{9178.94 283.21 m}% on line 165540.<o:p></o:p></p><p class=MsoNormal>There are 220130 lines overall, and the file seems to end without obvious truncation.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>That in itself does not help much.<o:p></o:p></p><p class=MsoNormal>I’m sure I’ll be able to isolate the cause by other means, but I’m just wondering if anyone knows if I could use this information to locate a cause?<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><div style='border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt'><p class=MsoNormal style='margin-left:36.0pt'>#################### end of metapost log file ####################<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>converting scraps ... done<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>making map ... done<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>######################## pdftex log file #########################<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/W32TeX) (preloaded format=pdfetex 2023.12.2) 30 MAR 2026 14:09<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>entering extended mode<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>**data.tex<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>(./data.tex (./th_enc.tex) (./th_texts.tex) (./th_resources.tex<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>(c:/Program Files/Therion/texmf/tex/glyphtounicode.tex)) (./th_fontdef.tex{c:/P<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>rogram Files/Therion/texmf/fonts/pdftex.map})<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>(./th_formdef.tex<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:yellow;mso-highlight:yellow'>Runaway text?<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:yellow;mso-highlight:yellow'>9178.9<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:yellow;mso-highlight:yellow'>! TeX capacity exceeded, sorry [main memory size=3500000].<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:yellow;mso-highlight:yellow'>l.165540 \PL{9178.94<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:yellow;mso-highlight:yellow'> 283.21 m}%</span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>If you really absolutely need more capacity,<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>you can ask a wizard to enlarge me.<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Here is how much of TeX's memory you used:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>263 strings out of 95671<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>3772 string characters out of 1192323<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>3500001 words of memory out of 3500000<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>1667 multiletter control sequences out of 15000+50000<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>16503 words of font info for 54 fonts, out of 1000000 for 2000<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>844 hyphenation exceptions out of 5000<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>5i,1n,6p,289b,36s stack positions out of 5000i,500n,10000p,200000b,50000s<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>! ==> Fatal error occurred, no output PDF file produced!<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>##################### end of pdftex log file #####################<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>C:\Program Files\Therion\therion.exe: error -- pdftex exit code -- 1<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>writing xtherion file ... done<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>