FFImageLoading
FFImageLoading copied to clipboard
FFImageLoading fail to load image on iOS on 2.4.11.982
🔙 Regression
I have a Xamarin forms application that use Shell. I take a pictures and store the path in a file. When I try to open an Image with the stored path, the first time all works fine but if I close then reopen the application this error is trigger and the image is blank.
Could not initialize an instance of the type 'UIKit.NSDataAsset': the native 'initWithName:bundle:' method returned nil.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.'
This was fixed in the version 2.2.9 here.
I have the same issue with the latest release.
I have the same issue as well
@daniel-luberda
Any idea when this issue will be solved? I am getting slightly different exception:
Image loading failed: nav_logo;(size=0x86,type=SvgDataResolver);TintTransformation,R=0,G=0,B=255,A=255,HexColor=,EnableSolidColor=True
UIKit.UIKitThreadAccessException: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.
at UIKit.UIApplication.EnsureUIThread () [0x0001a] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:96
at UIKit.NSDataAsset.get_Data () [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/ios/native/UIKit/NSDataAsset.g.cs:121
at FFImageLoading.DataResolvers.BundleDataResolver.ResolveFromAssetCatalogAsync (System.String fileName, System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x001c4] in C:\projects\ffimageloading\source\FFImageLoading.Shared.IosMac\DataResolvers\BundleDataResolver.cs:152
at FFImageLoading.DataResolvers.BundleDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x00194] in C:\projects\ffimageloading\source\FFImageLoading.Shared.IosMac\DataResolvers\BundleDataResolver.cs:43
at FFImageLoading.Svg.Platform.SvgDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x000ee] in C:\projects\ffimageloading\source\FFImageLoading.Svg.Shared\SvgDataResolver.cs:215
at FFImageLoading.DataResolvers.WrappedDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x0004e] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\WrappedDataResolver.cs:21
at FFImageLoading.Work.ImageLoaderTask`3[TDecoderContainer,TImageContainer,TImageView].RunAsync () [0x00300] in C:\projects\ffimageloading\source\FFImageLoading.Common\Work\ImageLoaderTask.cs:618
Seems generic enough and shall impact wide range of users?