Simple.iOS.Sample Loading Placeholder is broken
I downloaded the code cause I was seeing this is my own project. But the same issue is here. Run the sample and view the output.
System.IO.FileNotFoundException: placeholder
at FFImageLoading.DataResolvers.BundleDataResolver+1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.123/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:535
at FFImageLoading.Work.ImageLoaderTask2+
I have essentially the exact same setup in my code. Had to roll back from 2.2.8.
updated to 2.2.9 from 2.1.8 and got the same. Placeholder on iOS from bundled resource is not working:
2017-03-11 17:36:27.106 FoodsageiOS[306:95014] Setting placeholder failed
System.IO.FileNotFoundException: Perfil_Placeholder
at FFImageLoading.DataResolvers.BundleDataResolver+1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <54e129cad3ee4c61a6b46c3680ddc69a>:0
at FFImageLoading.Work.ImageLoaderTask2+
I'm having the same issue. It happens to ErrorPlaceholder as well.
I think the error is related to Asset Catalogs. In the past this AssetCatalogDataResolver existed but it was deleted and now CompiledResources are handled by BundleDataResolver.
This is the stacktrace I'm getting:
Setting placeholder failed
System.IO.FileNotFoundException: ic_calendar
at FFImageLoading.DataResolvers.BundleDataResolver+<Resolve>d__1.MoveNext () [0x00517] in <8242b6346c404272a5f37bad37b4ee65>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.128/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.128/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.128/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.128/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.4.0.128/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:535
at FFImageLoading.Work.ImageLoaderTask`2+<ShowPlaceholder>d__108[TImageContainer,TImageView].MoveNext () [0x001bb] in <2d17e89ae1144fbc85484e7be1030866>:0
Was this DataResolver intentionally deleted? Are AssetCatalogs really supported by BundleDataResolver?
Resolver is now here: https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Touch/DataResolvers/BundleDataResolver.cs#L18
Also sample project was some broken code (legacy code), i fixed it but it still doesn't show placeholder. Do you have any idea why?
It should be fixed (newest prerelease), please reopen if you still experience it.