<div dir="ltr">Hiya,<div><br></div><div>Line 218 of the Therion TODO.S file (see <a href="https://github.com/therion/therion/blob/master/TODO.S">https://github.com/therion/therion/blob/master/TODO.S</a>) says:</div><div><br></div><div>+ add support for multiple metapost files (more than 4096 scraps)</div><div><br></div><div>So there was a known limit of 4,096 scraps at some point. Note that the TODO.S file hasn't been updated for many years, so that limitation might have been addressed at some point.</div><div><br></div><div>Cheers,</div><div>James </div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, 8 Oct 2025 at 14:39, Benedikt Hallinger via Therion <<a href="mailto:therion@speleo.sk">therion@speleo.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">Good questionQ<br>
in the hirlatz project, we "just" reach: "[3106]".<br>
<br>
<br>
Am 2025-10-08 15:23, schrieb Xavier Robert via Therion:<br>
> Hi all,<br>
> <br>
> I am maintaining a quite big structured Therion database with more<br>
> than 700 caves<br>
> (<a href="https://github.com/robertxa/Topographies-Samoens_Folly" rel="noreferrer" target="_blank">https://github.com/robertxa/Topographies-Samoens_Folly</a>). I am using<br>
> Therion 6.3.3 (2025-01-06), TeX Live 2015 (MetaPost 1.999).<br>
> Following a new session of exploration and surveys, I added some<br>
> scraps in this database. I have no problem to run any compilation of<br>
> separate caves.<br>
> <br>
> But since my last update, when I try to run a Therion compilation for<br>
> the whole database to build the 3D view of the system<br>
> (<a href="https://groupe-speleo-vulcain.com/wp-content/themes/custom_theme/3d/JB.html" rel="noreferrer" target="_blank">https://groupe-speleo-vulcain.com/wp-content/themes/custom_theme/3d/JB.html</a>),<br>
> I get an error during the « Preloading the plain mem file » :<br>
> <br>
> [...]<br>
> [4090] [4091] [4092] [4093] [4094] [4095]<br>
> ! Number is too large (4096).<br>
> l.296920 beginfig(4096<br>
>                       );<br>
> [4096]<br>
> ! Number is too large (4097).<br>
> l.296923 beginfig(4097<br>
>                       );<br>
> [4097]<br>
> … and so on…<br>
> <br>
> therion: error -- metapost exit code -- 512<br>
> <br>
> I a m not sure, but I think that I have a total of 4102 objects (this<br>
> is the last number with a similar error ; with a total of 4117 files<br>
> written in thTMPDIR/).<br>
> If I run Therion with the -d option, I see all the data.xxxx from 1 to<br>
> 4102 in thTMPDIR/. The compressed log file is in attachement.<br>
> <br>
> I tried to recompile my database after commenting a small part of the<br>
> database that I did not change recently. The compilation run well.<br>
> <br>
> So, I suspect that there is a limit in the number of objects (scraps<br>
> ?) Therion (or mpost ?) can handle. Am I right ?<br>
> <br>
> Is there a way to get rid off this limitation ?<br>
> <br>
> Cheers,<br>
> <br>
> Xavier<br>
> _______________________________________________<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>
_______________________________________________<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>
</blockquote></div>