exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6.02k stars 560 forks source link

Occasional SVG parsing error. Shape Error not supported #768

Closed chajuss closed 2 years ago

chajuss commented 3 years ago

Hi,

I'm using Macaw to show and interact with SVG files in my app. We download the files from our server and store them locally in the device. Occasionally we're failing to parse files using try SVGParser.parse(fullPath: filePath). The call doesn't throw, but I can see in the debugger the following print: SVG parsing error. Shape Error not supported. This happens randomly for files that are previously being parsed correctly, and once the error occurs, it constantly occur unless the file is being deleted and fetched again from the server.

I'm attaching an example file: Main floor.svg.zip

I'd appreciate any assistance, can provide additional info as required.

Thanks!

chajuss commented 2 years ago

Our files got corrupted during parsing, which caused this issue. Nothing with the library itself ✌🏻