Crash opening file with filter primitive outside of filter
Migrated from https://bugs.launchpad.net/inkscape/+bug/1708100
Happens with files produced by SAS (Statistical Analysis System) 9.3 per OP
Steps to reproduce:
- open feBlend.svg in Inkscape (yes, file is inappropriately named)
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<feFlood></feFlood>
</svg>
What happened?
- Crash
- happens with all filter primitives
Doesn't happen with all filter primitives, but with most
There are two groups of crashes with similar backtraces
Those that depend on a previous filter primitive:
- feBlend: inkscape_backtrace-invalid-feBlend.txt
- feComposite: inkscape_backtrace-invalid-feComposite.txt
- feDisplacementMap: inkscape_backtrace-invalid-feDisplacementMap.txt
and those that don't (I'd only bother looking at one of these backtraces)
- feFlood: inkscape_backtrace-invalid-filter-primitive.txt
- feColorMatrix: inkscape_backtrace-invalid-feColorMatrix.txt
- feConvolveMatrix: inkscape_backtrace-invalid-feConvolveMatrix.txt
- feDiffuseLighting: inkscape_backtrace-invalid-feDiffuseLighting.txt
- feGaussianBlur: inkscape_backtrace-invalid-feGaussianBlur.txt
- feImage: inkscape_backtrace-invalid-feImage.txt
- feMerge: inkscape_backtrace-invalid-feMerge.txt
- feMorphology: inkscape_backtrace-invalid-feMorphology.txt
- feOffset: inkscape_backtrace-invalid-feOffset.txt
- feSpecularLighting: inkscape_backtrace-invalid-feSpecularLighting.txt
- feTile: inkscape_backtrace-invalid-feTile.txt
- feTurbulence: inkscape_backtrace-invalid-feTurbulence.txt
What should have happened?
- No crash
Inkscape Version and Operating System:
- Inkscape 1.2-dev (da2df6f5, 2021-07-26) Linux Mint 20
- Inkscape 0.92.1 Windows 7 64 bits
- Inkscape 0.92.1 r15371 WIndows 10
Edited by Nathan Lee