FFImageLoading
FFImageLoading copied to clipboard
Image loading failed : FFImageLoading.Exceptions.DownloadHttpStatusCodeException
Description
App gets crashed when the image retrieved from a URL is not found (404 error)
Steps to Reproduce
App gets crashed when the source of the image is retrieved from a URL, where the resource is not found (404 error)
Expected Behavior
Not get crashed
Actual Behavior
App gets crashed
Basic Information
-
Version with issue: Xamarin.FFImageLoading v2.4.9.961 Xamarin.FFImageLoading.Forms v2.4.4.859
-
Platform: iOS
Reproduction Link / Code
<ffimageloading:CachedImage Aspect="Fill" Source="{Binding ImgURL}" LoadingDelay="0" CacheDuration="59999" HorizontalOptions="Fill" />
Stack Trace
Image loading failed: http://xyz.com/blah.png?;160x0
FFImageLoading.Exceptions.DownloadHttpStatusCodeException: NotFound <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr>
</body>
</html>
at FFImageLoading.Cache.DownloadCache+<DownloadAsync>d__16.MoveNext () [0x00266] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:119
--- End of stack trace from previous location where exception was thrown ---
at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass15_0+<<DownloadAndCacheIfNeededAsync>b__0>d.MoveNext () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:58
--- End of stack trace from previous location where exception was thrown ---
at FFImageLoading.Retry+<DoAsync>d__0`1[T].MoveNext () [0x00189] in <eb932715e03b4269a2939e4cee76e949>:0
--- End of st
ack trace from previous location where exception was thrown ---
at FFImageLoading.Cache.DownloadCache+<DownloadAndCacheIfNeededAsync>d__15.MoveNext () [0x00401] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:57
--- End of stack trace from previous location where exception was thrown ---
at FFImageLoading.DataResolvers.UrlDataResolver+<Resolve>d__7.MoveNext () [0x00045] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\UrlDataResolver.cs:22
--- End of stack trace from previous location where exception was thrown ---
at FFImageLoading.DataResolvers.WrappedDataResolver+<Resolve>d__2.MoveNext () [0x00044] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\WrappedDataResolver.cs:21
--- End of stack trace from previous location where exception was thrown ---
at FFImageLoading.Work.ImageLoaderTask`3+<RunAsync>d__109[TDecoderContainer,TImageContainer,TImageView].MoveNext () [0x0032d] in <eb932715e03b4269a2939e4cee76e949>:0
Kindly provide a solution. Thanks!
I can see one or two similar issues with this title, but the stack trace and the image source are different in those cases...
Same issue here. App getting slower.
Is there any update on this issue? I am having the same issue trying to load from unsplash
Same issue here. App getting slower.