luberda-molinet / FFImageLoading

Image loading, caching & transforming library for Xamarin and Windows
MIT License
1.42k stars 377 forks source link

FFImageLoading works on Emulater but not on actual device? IOS project #290

Closed tfahie-pe closed 8 years ago

tfahie-pe commented 8 years ago

Hello all I'm loading several images from a HTTPS server. Testing on an emulator works fine with the place holder loading first then the image. When testing on an actual device i get the error image.

Sometime the placeholder image would display for a split second then jump back to the error image - but the actual image never displays. Any ideas what i'm doing wrong?

tfahie-pe commented 8 years ago

Here is the log i get with the error if it helps -

Unable to retrieve image data from source: System.ExecutionEngineException: Attempting to JIT compile method '(wrapper delegate-invoke) :invoke_callvirt_void_HttpWebRequest_bool (System.Net.HttpWebRequest,bool)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:185 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0xf34728 + 0x00023> in :0 at FFImageLoading.Cache.DownloadCache+d__9.MoveNext () [0x0022d] in :0

tfahie-pe commented 8 years ago

I was able to fix this issue- I had the wrong system.http.net file

Thsnks