memoize
just rolls a die to see whether to abort or not. I can't reproduce it reliably. I can't make a minimal example. I can't even identify a particular extern, though some seem more susceptible than others. Even when it happens, the number aborted seems arbitrary. Sometimes 12. Sometimes 3. And when I manage to catch it, the tracing info looks identical except that one aborts and the other completes. The closest message seems to be 05:36
I think
1 hour later…
2 hours later…
08:55
@cfr This is the culprit, for sure. The ultimate source of abortion is some
remember picture
, but specifically, memoization is in your case aborted when encountering \pgfsys@getposition
, which retrieves the position of the picture on the page saved in the .aux
(which contains a \pgfsyspdfmark
).
If I remember correctly, I have introduced this hack of aborting upon
\pgfsys@getposition
to solve the problem of "remembering the wrong picture": in v1.0.0, once a picture was memoized, \pgfpictureid
of subsequent pictures was changed, leading to problems. However, in response to Qrrbrbirlbel's trouble, the new version of Memoize (the one on GitHub) increases \pgfpictureid
when utilizing a TikZ-extern, so — I realize now — the \pgfsys@getposition
might have become obsolete.
7 hours later…
16:27
@SašoŽivanović So what happens differently when it isn't aborted? The same outer handler gets called. Does
\pgfsys@getposition
contain something different? Memoization is disabled for the tikzpicture
s which use remember picture
. Is the issue that it is finding \pgfpictureid
for different pictures i.e. it thinks this is picture ID 3, say, and the aux says the picture with that ID uses \pgfsyspdfmark
?
4 hours later…
20:13
@cfr The latter, i.e. the
.aux
contains \pgfsyspdfmark
with a wrong \pgfpictureid
. But if there is no mismatch, \pgfsys@getposition
doesn't get executed and memoization isn't aborted. (As I said, these mismatches should be gone in the new version, but I still have to test whether that's true myself.) « first day (33 days earlier) ← previous day next day → last day (21 days later) »
Transcript for
Nov28
Nov '2329
Nov30
Discussion between Sašo Živanović and…
Imported from a comment discussion on tex.stackexchange.com/qu...