You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got this error today trying to read a huge (33MiB) SVG Inkscape export.
File "/home/bcwhite/.local/lib/python3.9/site-packages/svgpathtools/svg_to_paths.py", line 253, in svg2paths2
return svg2paths(svg_file_location=svg_file_location,
File "/home/bcwhite/.local/lib/python3.9/site-packages/svgpathtools/svg_to_paths.py", line 207, in svg2paths
d_strings += [polygon2pathd(pg) for pg in pgons]
File "/home/bcwhite/.local/lib/python3.9/site-packages/svgpathtools/svg_to_paths.py", line 207, in <listcomp>
d_strings += [polygon2pathd(pg) for pg in pgons]
File "/home/bcwhite/.local/lib/python3.9/site-packages/svgpathtools/svg_to_paths.py", line 86, in polygon2pathd
return polyline2pathd(polyline, True)
File "/home/bcwhite/.local/lib/python3.9/site-packages/svgpathtools/svg_to_paths.py", line 65, in polyline2pathd
closed = (float(points[0][0]) == float(points[-1][0]) and
IndexError: list index out of range
I've no idea on what path it choked but you might want to consider putting a guard on the points array that is returned to make sure that it actually contains something.
The text was updated successfully, but these errors were encountered:
Got this error today trying to read a huge (33MiB) SVG Inkscape export.
I've no idea on what path it choked but you might want to consider putting a guard on the
points
array that is returned to make sure that it actually contains something.The text was updated successfully, but these errors were encountered: