Setting expansion depth limit for metapost
I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth: !mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=10000]. Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 10000 in error message. texmf.cnf in texmf-local I've changed is reported by context as first one in log line starting with "mkiv lua stats : used config path" What am I missing? Michal
Michal Suszko wrote:
I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth:
!mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=10000].
Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 10000 in error message.
This is because recursion in metapost takes place on the C stack, and that does not allow growth. But do you really need 10000 expansion levels? That seems a little weird. Best wishes, Taco
* Taco Hoekwater
Michal Suszko wrote:
I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth:
!mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=10000].
Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 10000 in error message.
This is because recursion in metapost takes place on the C stack, and that does not allow growth. But do you really need 10000 expansion levels? That seems a little weird.
I don't see where this could come from. If I split document in half both parts are building fine. Michał
Michal Suszko wrote:
* Taco Hoekwater
[2010-03-17 10:27:41 +0100]: Michal Suszko wrote:
I'm preparing quite long presentation -- nearly 3000 sides, 900 figures (500 distinct PNG files). I'm using ConTeXt MkIV installed using minimals (2010.03.12 19:49). Recently I'm hitting MetaPost capacity limit on expansion depth:
!mplib : mp terminal: ! MetaPost capacity exceeded, sorry [expansion depth=10000].
Increasing expand_depth in texmf.cnf and regenerating formats with context --make doesn't help. expansion depth is still at 10000 in error message. This is because recursion in metapost takes place on the C stack, and that does not allow growth. But do you really need 10000 expansion levels? That seems a little weird.
I don't see where this could come from. If I split document in half both parts are building fine.
It could be a bug in mplib then, but I can't test that without an input example. Can you create me one? (it could consist of one massive \dorecurse call, I assume?). Best wishes, Taco
* Taco Hoekwater
It could be a bug in mplib then, but I can't test that without an input example. Can you create me one? (it could consist of one massive \dorecurse call, I assume?).
Trying to prepare minimal working example of this problem I isolated it in the process. There were 3 MP graphics each one used once on each page. After change them from \startuseMPgraphic ... \stopuseMPgraphic and \useMPgraphic to \startreusableMPgraphic ... \stopreusableMPgraphic and \useMPgraphic error messages disappeared. Michał
On 2/18/2016 11:03 PM, Michal Suszko wrote:
* Taco Hoekwater
[2010-03-17 13:10:19 +0100]: It could be a bug in mplib then, but I can't test that without an input example. Can you create me one? (it could consist of one massive \dorecurse call, I assume?).
Trying to prepare minimal working example of this problem I isolated it in the process. There were 3 MP graphics each one used once on each page. After change them from
\startuseMPgraphic ... \stopuseMPgraphic and \useMPgraphic
to
\startreusableMPgraphic ... \stopreusableMPgraphic and \useMPgraphic
error messages disappeared.
if that can be used it's always better (more efficient) but it's anyway strange so there is an issue in your graphic ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Michal Suszko
-
Taco Hoekwater