<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: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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@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>Good morning<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve just started getting metapost exit code – 3 errors.<o:p></o:p></p><p class=MsoNormal>It looks like this is happening due to some statements in data.mp that have no beginfig – endfig wrappers.  But this is not the root cause.<o:p></o:p></p><p class=MsoNormal>The calling thconfig used to work, and I’ve tried compiling with Therion versions created prior to creating this thconfig.  Other thconfig files in the dataset continue to work without error.  So this points to a problem I have created in my dataset somewhere.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This problem occurs when any type of pdf output attempts to export (plan, extended or elevation), but not otherwise.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Based on the highlighted statements below, does anyone have any clues as to where I should start looking?<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><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>therion 6.3.4+999e03f9 (2026-02-21), but same with therion… -df4b6741 and therion… -df4b6741.exe<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Therion.log extract…<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>####################### metapost log file ########################<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>This is MetaPost, version 2.01 (TeX Live 2021/W32TeX) (kpathsea version 6.3.3)  15 MAR 2026 07:40<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>**data.mp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>(c:/Program Files/Therion/texmf/mpost/mpost.mp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>(c:/Program Files/Therion/texmf/mpost/plain.mp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Preloading the plain mem file, version 1.005) ) (./data.mp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>{randomseed:=42}<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> [1] [2] [3] [4]<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>[5] [6] [7] [8] [9] [10] [11] [12] [13] [14]<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>[15] [16] [17] [18] [19] [20] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>[12] [13] [14] [15] [16] [17] [18] [19] [20] (./mptextmp.mp) (./mptextmp.mp)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>(./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp)<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>[21]<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 MetaPost's memory you used:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> 13373 strings using 349495 characters<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> 3994720 bytes of node memory<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> 1945 symbolic tokens<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> 37077928i,82n,16p,312b,5f stack positions out of 37077928i,98n,20p,312b,6f<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>41 output files written: data-patt.1 .. data.21<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'>#################### end of metapost log file ####################<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>C:\Program Files\Therion\therion.exe: error -- metapost exit code -- 3<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>writing xtherion file ... done<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Data.mp extract…<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>beginfig(20);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>s_northarrow(90);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>endfig;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>beginfig(21);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>s_scalebar(100, 1, "\thfb\char109 \mainfont{}");<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:lime;mso-highlight:lime'>endfig</span>;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:fuchsia;mso-highlight:fuchsia'>background:=(0.00000,0.00000,0.00000,0.00000);</span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:fuchsia;mso-highlight:fuchsia'>transparency:=false;<o:p></o:p></span></p><p class=MsoNormal style='margin-left:36.0pt'><span style='background:lime;mso-highlight:lime'>beginfig</span>(22);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>clean_legend_box;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>drawoptions(withcolor (0.10000,0.88333,0.00000,0.40000));<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>p_station_natural((0.5,0.5) inscale);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>draw_legend_box;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>endfig;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>beginfig(23);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>clean_legend_box;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>drawoptions(withcolor (0.10000,0.88333,0.00000,0.40000));<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>p_station_fixed((0.5,0.5) inscale);<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>draw_legend_box;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>endfig;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><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><o:p> </o:p></p></div></body></html>