<div dir="ltr"><div>Hi Bruce,</div><div><br></div><div><span style="background-color:transparent">On Sun, Aug 9, 2026 at 12:43 AM <<a href="mailto:bruce@tomo.co.nz">bruce@tomo.co.nz</a>> wrote:</span></div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-65620412036111649"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="m_-65620412036111649WordSection1"><p class="MsoNormal"><span style="background-color:transparent">The guidance in texmf/web2c/texmf.cnf suggests 8000000 is the maximum, so I stopped there for a while, but then I tried 9000000.</span></p><p class="MsoNormal"><span>And success!</span></p></div></div></div></blockquote><div><span style="background-color:transparent">... </span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-65620412036111649"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="m_-65620412036111649WordSection1"><p class="MsoNormal"><span>So if the limit is not 8000000, is there a limit?<u></u><u></u></span></p><p class="MsoNormal"><span>Or are there possible problems with going over 8000000?</span></p></div></div></div></blockquote><div><br></div><div><div>Possibly some configuration defaults for pdfTeX in TeXLive were changed without updating the comments in texmf.cnf.</div><div><br></div><div>I think maybe it's time to switch from pdfTeX to LuaTeX, which uses dynamic memory allocation (so the limit is the amount of installed RAM). It's a simple configuration change briefly described in the annex of the Thbook (search for luatex). The downside is that LuaTeX is a bit slower than pdfTeX, but it would be interesting to hear about your experience with it.</div><div><span style="background-color:transparent"> </span></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-65620412036111649"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="m_-65620412036111649WordSection1"><p class="MsoNormal"><span><u></u><u></u></span></p><p class="MsoNormal"><span>Might needing so much memory allocated suggest some problem with my dataset?<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Curious that ‘maps off’ requires more memory than ‘maps on’ (this is a 70 km cave but there are scraps drawn for only 15 km)<u></u><u></u></span></p><p class="MsoNormal"><span><u></u></span></p></div></div></div></blockquote><div><br></div><div>That's weird. I could perhaps investigate it on your dataset.</div><div><br></div><div>Cheers</div><div>Martin </div><div><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 class="msg-65620412036111649"><div lang="EN-NZ" style="overflow-wrap: break-word;"><div class="m_-65620412036111649WordSection1"><p class="MsoNormal"><span>Any insights appreciated.<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Bruce<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) currentcolor currentcolor;padding:3pt 0mm 0mm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Therion <<a href="mailto:therion-bounces@speleo.sk" target="_blank">therion-bounces@speleo.sk</a>> <b>On Behalf Of </b>Martin Budaj<br><b>Sent:</b> Thursday, 21 May 2026 05:29<br><b>To:</b> List for Therion users <<a href="mailto:therion@speleo.sk" target="_blank">therion@speleo.sk</a>><br><b>Subject:</b> Re: [Therion] th_formdef.tex runaway text error<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">after testing Bruce's dataset, it seems TeX really runs out of memory in this case. <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">You can increase it in the file texmf/web2c/texmf.cnf. Set<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">extra_mem_top = 4000000 % originally 2000000 in the embedded TeX distribution in Therion for Windows<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I also updated this in the Windows installer: <a href="https://github.com/therion/therion/actions/runs/25989238617" target="_blank">https://github.com/therion/therion/actions/runs/25989238617</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Martin<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">On Sun, Apr 19, 2026 at 7:20<span style="font-family:Arial,sans-serif"> </span>AM <<a href="mailto:bruce@tomo.co.nz" target="_blank">bruce@tomo.co.nz</a>> wrote:<u></u><u></u></p><div><p class="MsoNormal">I’m exploring what might be causing this problem that I raised 3 weeks ago (copied below).<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">It has been affecting a project where we are migrating a lot of centrelines from On-Station to Therion.<u></u><u></u></p><p class="MsoNormal">Back in March this problem only affected exported pdf elevations that were over about 30 km in length.<u></u><u></u></p><p class="MsoNormal">Now we are closer to 63 km, it is also affecting exported pdf plans.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">If I drill down to subsets of the project, there is no particular atomic subset that errors out.<u></u><u></u></p><p class="MsoNormal">Seems like when the subset drops below around 30 km the problem resolves itself and everything works OK.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></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.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Specifically, <b>colour map-fg [97 86 38]</b> is what seems to trigger the error.<u></u><u></u></p><p class="MsoNormal">Similarly <b>colour map-fg scrap</b> and <b>colour map-fg map</b>.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></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.<u></u><u></u></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).<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">This breaks down somewhat at 60-ish km and all pdf exports fail even with only a scale specified.<u></u><u></u></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.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></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).<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Bruce<u></u><u></u></p></div><blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:currentcolor currentcolor currentcolor rgb(204,204,204);padding:0mm 0mm 0mm 6pt;margin-left:4.8pt;margin-right:0mm"><p class="MsoNormal"><u></u> <u></u></p></blockquote></div></div>_______________________________________________<br>
Therion mailing list<br>
<a href="mailto:Therion@speleo.sk" 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><br>
</div></blockquote></div></div>