FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

iOS crash with SVGs and SkiaSharp

Open gmoney494 opened this issue 4 years ago • 3 comments

🐛 Bug Report

We have a crash reported on App Center with the title gr_backendrendertarget_get_gl_framebufferinfo. The crash is usually during start-up, but some reports have it crashing minutes or hours after start. I have not been able to consistently reproduce it myself. It doesnt always crash in the exact same lines but always related to the SvgDataResolver and SkSvgclasses.

Expected behavior

The app to run and not crash.

Reproduction steps

None, most crashes seem related to start up.

Configuration

Linker mode is enabled: 'Link Framework SDKs only`.

FFImageLoading.Forms - 2.4.11.982 FFImageLoading.Svg.Forms - 2.4.11.982 FFImageLoading.Transformations - 2.4.11.982 Xamarin.Forms - 4.6.0.726 for both the .net standard shared logic project and ios project.

Platform:

  • [x] :iphone: iOS
  • [ ] :robot: Android
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [x] :monkey: Xamarin.Forms

App Center FFImage Crash .txt

gmoney494 avatar Jun 23 '20 19:06 gmoney494

After reading the documentation here. It says to add references to a few other nugets for all projects. I was specifically missing:

  • Xamarin.FFImageLoading
  • Xamarin.FFImageLoading.Svg
  • SkiaSharp

I dont see how some missing references would cause the crash but i added them in case, hoping anyone has any other suggestions on how to proceed past this.

Found other issues that look similar to mine but no real solutions: #791 https://github.com/mono/SkiaSharp/issues/476

gmoney494 avatar Jun 23 '20 19:06 gmoney494

Hi ! We went through the same issue. Adding this fixed the issue: [assembly: XamlCompilation(XamlCompilationOptions.Compile)]

Hope it helps

Antho29406 avatar Jan 14 '21 12:01 Antho29406

I know this is an old post, but I face the same problem. I get it solve by adding those package:

  • Xamarin.FFImageLoading 2.4.11.982
  • Xamarin.FFImageLoading.Svg 2.4.11.982
  • SkiaSharp 2.80.3
  • SkiaSharp.Svg 1.60.0
  • SkiaSharp.Extended 1.60.0

ooikengsiang avatar Dec 18 '21 16:12 ooikengsiang