2.4.5.909-pre - Exception thrown loading svg image which loads correctly in 2.4.4
See original GitHub issueDescription
When loading the attached svg file 2.4.5.909-pre throws an exception
Image loading failed: resource://FFImageLoadingMockTest.Assets.Captain_America_Shield.svg?assembly=FFImageLoadingMockTest,%20Version=1.0.0.0,%20Culture=neutral,%20PublicKeyToken=null;(size=0x500,dip=True,type=SvgDataResolver) System.MissingMethodException: Method not found: void SkiaSharp.SKPath.AddRoundRect(SkiaSharp.SKRect,single,single,SkiaSharp.SKPathDirection) at FFImageLoading.Svg.Platform.SKSvg.ReadElement (System.Xml.Linq.XElement e, SkiaSharp.SKCanvas canvas, SkiaSharp.SKPaint stroke, SkiaSharp.SKPaint fill) [0x00440] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SkSvg.cs:281 at FFImageLoading.Svg.Platform.SKSvg.LoadElements (System.Collections.Generic.IEnumerable
1[T] elements, SkiaSharp.SKCanvas canvas, SkiaSharp.SKPaint stroke, SkiaSharp.SKPaint fill) [0x00010] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SkSvg.cs:215
at FFImageLoading.Svg.Platform.SKSvg.Load (System.Xml.Linq.XDocument xdoc) [0x003f9] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SkSvg.cs:203
at FFImageLoading.Svg.Platform.SKSvg.Load (System.Xml.XmlReader reader) [0x00000] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SkSvg.cs:97
at FFImageLoading.Svg.Platform.SKSvg.Load (System.IO.Stream stream) [0x00012] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SkSvg.cs:91
at FFImageLoading.Svg.Platform.SvgDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x00198] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SvgDataResolver.cs:98
at FFImageLoading.DataResolvers.WrappedDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x00044] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\WrappedDataResolver.cs:21
at FFImageLoading.Work.ImageLoaderTask3[TDecoderContainer,TImageContainer,TImageView].RunAsync () [0x00300] in C:\projects\ffimageloading\source\FFImageLoading.Common\Work\ImageLoaderTask.cs:555 Thread finished: <Thread Pool> #5
Steps to Reproduce
Load attached image using the following code:
<ffimageloading:CachedImage Source="resource://FFImageLoadingMockTest.Assets.ironman-icon-png-8.png" WidthRequest="500" HeightRequest="500" />
Expected Behavior
The image should be rendered on the page
Actual Behavior
The image is not rendered and an expected is thrown but handled. (No crash.)
Basic Information
- Version with issue: 2.4.5.909-pre
- Last known good version: 2.4.4
- Platform: Tested on Xamarin Forms - Android
Reproduction Link / Code
https://github.com/cprice70/FFImageLoadingMockTest
The attached file was run through SVGOMG. Captain_America_Shield.svg.zip
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
@daniel-luberda Manually installing SkiaSharp worked! I’m using Visual Studio for Mac, maybe the dependency not getting installed is a bug with this VS.
Yes, I’ve seen some cases when not all dependencies were installed. I’ll close this one then. Cheers 😃