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
Describe the bug
This specific SVG causes a crash to happen specifically when floatPrecision: 2 is set. Only this SVG, only this value.
Might be related to the note in #1927 and seems to be a rather rare occurrence indeed.
SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/plugins/convertPathData.js:1160
return [2 * base[0] - controlPoint[0], 2 * base[1] - controlPoint[1]];
^
TypeError: Cannot read properties of undefined (reading '0')
at reflectPoint (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/plugins/convertPathData.js:1160:37)
at SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/plugins/convertPathData.js:802:43
at Array.filter (<anonymous>)
at filters (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/plugins/convertPathData.js:397:15)
at Object.enter (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/plugins/convertPathData.js:183:20)
at visit (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/lib/xast.js:52:30)
at visit (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/lib/xast.js:68:9)
at visit (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/lib/xast.js:61:7)
at invokePlugins (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/lib/svgo/plugins.js:25:7)
at Object.fn (SNIP/svgo/node_modules/.pnpm/[email protected]/node_modules/svgo/lib/svgo/plugins.js:57:7)
Describe the bug
This specific SVG causes a crash to happen specifically when
floatPrecision: 2
is set. Only this SVG, only this value.Might be related to the note in #1927 and seems to be a rather rare occurrence indeed.
To Reproduce
or
Expected behavior
SVG is optimized.
Desktop (please complete the following information):
Additional context
The SVG itself is output of
pdf2svg
on a PDF, I believe.The text was updated successfully, but these errors were encountered: