Closed Akuli closed 5 years ago
Thanks for the report, I'm almost certain the problem is in 918415335, where the condition if r != 0
is probably missing before the new introduced line. @ajbrock, maybe you could have a look?
I think I agree that adding if r!=0
before computing r = 1 / r -1
is a good idea to prevent divide by zero, but I'm not sure I see the error path that would lead to the divide-by-zero in reportlab. If the line in question were computing "1/0 -1" then wouldn't it be outputting an inf
or a nan
to reportlab? It looks like reportlab is dealing with a transform whose determinant is zero. I don't quite follow the trace logic from the ellipse code to reportlab though, so please feel free to enlighten me =)
Sorry for wrongly accusing the commit 9184153 for that regression. In fact, the problem arises after 82860fa54f8a2b.
@Akuli with 0.9.0 do you obtain anything else than a blank page?
I seem to be getting blank page only with 0.9.0 so I think this is a good as it ever was, lol
Download https://upload.wikimedia.org/wikipedia/commons/6/67/Firefox_Logo%2C_2017.svg to
firefox.svg
After
pip install svglib==0.9.0
running this producesout.gif
as expected, but after installing0.9.1
it raises an errorHere is the error