MNWE:
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={circle,draw}
[1[2[3][4]][5]]
\end{forest}
\end{document}
With Texlive 2019, I get the following error:
! Dimension too large.
<recently read> \pgf@x
l.28 \end{forest}
The code compiles fine with Texlive 2018. (Not sure whether I got the final updates for TL2018). The files forest.sty are identical in TL2018 and TL2019.
What's changed to cause the error? Is it a bug? If so, in what and where?
[4], the error is gone. – Oct 26 '19 at 02:12circle. – cfr Oct 26 '19 at 02:13draw, so the example isn't ideally minimal. – cfr Oct 26 '19 at 02:14for tree={circle,draw,rotate=1}also removes the error. Rotating a circle helps? Strange. ;-) If you rotate by45,90,180or so on, the error comes back. – Oct 26 '19 at 02:140.1removes it. – cfr Oct 26 '19 at 02:1645seems to work.... – Oct 26 '19 at 02:17foresttree and it has worked. I do not know with which MikTeX upgrade this change. – Zarko Oct 26 '19 at 02:46\divide\c@pgf@counta by 255\relax% \pgf@ya=16\pgf@ya\relax% \divide\pgf@ya by\c@pgf@counta% \pgf@xa=16\pgf@ya\relax%inpgfmoduleshapes.code.tex. – Oct 26 '19 at 03:11divideso those lines in themselves haven't changed. (Which doesn't mean that's not where the error's coming from, of course.) – cfr Oct 26 '19 at 03:30\typeouts does not reveal anything that is very different when one adds small rotation angle. The error is not necessarily in the\dividebut perhaps in the\pgf@x=\pgf@xa%that follows, but I cannot see how\pgf@xais too large. (Unfortunately I cannot do a diff because I do not have the older versions available.) – Oct 26 '19 at 03:33pgfmoduleshapes.code.texto the directory in which you compile the document? Does that help? – Oct 26 '19 at 03:48rotatein my code. Dropping that file in doesn't help. The error stays the same. – cfr Oct 26 '19 at 03:52intersections. If I add\tracingmacros=1, at the very end before the error one finds\pgf@intersect@len@awhich comes from the pgf module intersections. A bit above one finds\pgfmathresult ->{-619.9691000000000}{2904.08000000000}which become\pgfmathresult ->{119.74692000000000}{-559.422000000000}forrotate=0.1. @SašoŽivanović And it is true that right before there is\pgfmathfloattofixed@impl@pos. So maybe this is some interplay between intersections and floating point numbers? – Oct 26 '19 at 15:15