question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.4.5.909-pre - Exception thrown loading svg image which loads correctly in 2.4.4

See original GitHub issue

Description

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.IEnumerable1[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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cprice70commented, Apr 22, 2019

@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.

0reactions
daniel-luberdacommented, Apr 22, 2019

Yes, I’ve seen some cases when not all dependencies were installed. I’ll close this one then. Cheers 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Init exception with latest Xamarin.Forms 3.4 / 3.6 #1154
0.800. It throws this exception: System.TypeLoadException: Could not load list of method overrides due to Method not found: void Xamarin.Forms.
Read more >
SvgPicture image rendering error in flutter
The error means that the SVG was not exported correctly. The layer in question connected to the user might not render as intended....
Read more >
How to Use SVG Images in CSS and HTML – A Tutorial for ...
On the pop-up window, click on the Download SVG to your projects button. Download the SVG file. If you followed the steps above...
Read more >
How to improve extremely slow page load time on a 23MB ...
SVGs are highly compressible, so this is a critical step. This alone could improve loading time by over 50%, if your server is...
Read more >
Support for vector graphics - Telerik UI for WinForms
Handling Exceptions. When loading a vector image, an error may occur. The SVG exceptions will continue to be thrown in order to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found