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
Getting an exception while parsing the following SVG.
{System.Collections.Generic.KeyNotFoundException: The given key 'offset' was not present in the dictionary. at SkiaSharp.Extended.Svg.SKSvg.ReadStops(XElement e) at SkiaSharp.Extended.Svg.SKSvg.ReadLinearGradient(XElement e) at SkiaSharp.Extended.Svg.SKSvg.ReadPaints(Dictionary2 style, SKPaint& strokePaint, SKPaint& fillPaint, Boolean isGroup) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.LoadElements(IEnumerable1 elements, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.Load(XDocument xdoc) at SkiaSharp.Extended.Svg.SKSvg.Load(Stream stream) at SkiaSharp.Extended.Svg.SKSvg.Load(String filename) at DesignTokensParser.Parsers.IconsI…
Code
var svgDocument = new SKSvg();
svgDocument.Load(imageFile.FullName);
Expected Behavior
The svg should be loaded normally
Actual Behavior
Getting exception
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (macOS)
Platform / Operating System
macOS
Platform / Operating System Version
MacOS Ventura 13.1 (22C65)
Devices
Mac with Apple M1 Max
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Description
Getting an exception while parsing the following SVG.

{System.Collections.Generic.KeyNotFoundException: The given key 'offset' was not present in the dictionary. at SkiaSharp.Extended.Svg.SKSvg.ReadStops(XElement e) at SkiaSharp.Extended.Svg.SKSvg.ReadLinearGradient(XElement e) at SkiaSharp.Extended.Svg.SKSvg.ReadPaints(Dictionary
2 style, SKPaint& strokePaint, SKPaint& fillPaint, Boolean isGroup) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.ReadElement(XElement e, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.LoadElements(IEnumerable
1 elements, SKCanvas canvas, SKPaint stroke, SKPaint fill) at SkiaSharp.Extended.Svg.SKSvg.Load(XDocument xdoc) at SkiaSharp.Extended.Svg.SKSvg.Load(Stream stream) at SkiaSharp.Extended.Svg.SKSvg.Load(String filename) at DesignTokensParser.Parsers.IconsI…Code
var svgDocument = new SKSvg();
svgDocument.Load(imageFile.FullName);
Expected Behavior
The svg should be loaded normally
Actual Behavior
Getting exception
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (macOS)
Platform / Operating System
macOS
Platform / Operating System Version
MacOS Ventura 13.1 (22C65)
Devices
Mac with Apple M1 Max
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: