Bug 64752 - xmltex memory limit too small
Summary: xmltex memory limit too small
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: tetex (Show other bugs)
(Show other bugs)
Version: 7.3
Hardware: i386 Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-05-10 14:26 UTC by Miloslav Trmac
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-10 15:50:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Miloslav Trmac 2002-05-10 14:26:12 UTC
Description of problem:
xmltex is generated with a very small memory limit, which causes it to fail 
when converting a simple 16-page document to PS using xmlto.
The need to increase memory size is also described at
(note that it can be done for {pdf,}xmltex only, without changing the 
configuration of other TeX formats). I have easily overflowed the save_size 
limit, which makes xmlto unusable.

How reproducible:

Steps to Reproduce:
1.Create a reasonably-sized docbook document (I can provide one upon
request, if it doesn't show in Bugzilla)
2.xmlto ps foo.docbook
Actual Results:  Processing aborts with 
TeX capacity exceeded, sorry [save_size=10000]
(typing from memory, may be a bit different)

Additional info:
Compared to docbook-utils and DSSSL stylesheets, xmlto is horribly slow (3 
minutes vs. 13 seconds), but this is probably what you deserve for parsing XML 
in TeX.

Comment 1 Tim Waugh 2002-05-10 14:43:36 UTC
All of the parameters mentioned on that web page are set to the recommended 
values or, in one case, higher. 
Which parameter would you increase, and to what value? 
As to the speed: I have found virtually no difference in speed when using 
DSSSL compared to XSL---the Selfdocbook, for example 
(http://cyberelk.net/tim/docbook/), takes about 47s for either method. 
I would guess, though, that the speed difference you are seeing is due to your 
document having no cross-references, and so needing only one pass.  I'll look 
at making xmlto do the right thing for that case when you attach your document 
(or a pointer to it).

Comment 2 Miloslav Trmac 2002-05-10 14:53:01 UTC
Tim, thanks for your fast reply. I'm sending the document to twaugh@redhat.com
(subject [RHL BUG 64752] Sample XML document). You can show it to whoever you 
like (it's in Czech anyway;-), but I'd rather not post it to a public place 
like Bugzilla.
As for the cross references, you're wrong at least in the case of this document.
OTOH the markup/content ratio is quite high - about half of the document 
is <procedure><step>....

Comment 3 Tim Waugh 2002-05-10 15:49:06 UTC
Gosh, it really is slow on that document! 
Increasing save_size to 15000 seems to fix it for me, and this is also that 
value that hugelatex uses.

Comment 4 Tim Waugh 2002-05-10 15:49:56 UTC
(Changing component to tetex, since this is where the value actually gets 

Comment 5 Tim Waugh 2002-05-27 15:31:41 UTC
Fixed in 1.0.7-48.

Note You need to log in before you can comment on or make changes to this bug.