Asset generation and memory

3 views
Skip to first unread message

Sean Fitzpatrick

unread,
Jul 10, 2026, 11:36:17 AM (16 hours ago) Jul 10
to PreTeXt development
I'm trying to chase down an error with Asymptote generation on Windows. 

Two questions for those who know the build script better than me: 

1. Is it possible to capture the error message produced by an external program like Asymptote? 
Right now the CLI reports that there was an error, and then reports the contents of 'asy --version'

2. Are assets stored in memory while being built? 

Background: with older versions of Asymptote (2.85,2.87) I can run pretext generate for APEX to build all asymptote figures (about 300 of them).

In at least 3.09-3.12, there was a bug that caused out of memory errors while building 3D PDF. This was fixed in 3.13 (released yesterday) 

The whole generate script runs successfully on Linux. It fails on Windows. 

Why I'm stuck: it always fails at the same diagram on Windows, but if I build that diagram individually, using the same command as pretext, the figure builds without error. 

This makes me think that my Windows laptop might be running out of memory while generating asymptote, but I can't access the error message to confirm.

Sean Fitzpatrick

unread,
Jul 10, 2026, 5:19:29 PM (10 hours ago) Jul 10
to PreTeXt development
I can at least confirm this is a resource issue: if I build asymptote for the entire book, I always hit an error on the same figure. 

If I comment out the first two of the chapters with asymptote, generation runs without errors.

What's funny is my Windows laptop has twice as much memory as the old Linux laptop I tested on, and generation on Linux ran no problem.
Reply all
Reply to author
Forward
0 new messages