FFImageLoading
FFImageLoading copied to clipboard
iOS crash with SVGs and SkiaSharp
🐛 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 SkSvg
classes.
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
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
Hi !
We went through the same issue.
Adding this fixed the issue:
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
Hope it helps
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