Comments (10)
Do you have a custom configuration when you initialize the lib?
Also this issue occurs on iOS, android or both ?
from ffimageloading.
No custom config - this issue occurred for me on iOS, I have not set up Android for this.
I am using the CachedImage class in XF, and initializing the ImageService within the iOS appdelegate
from ffimageloading.
@patook could you please send some URL that cause this issue?
Also note that current implementation works this way:
- if server couldn't be reached or there is a network issue then the image is not cached and retry will happen immediately
- if server returned an HTTP error code then the image is not cached and retry will happen immediately
- if server did not return an error code AND we have zero bytes for the image, then the bytes are cached 5 minutes
- if server did not return an error code AND we have bytes then the bytes are cached. They are cache regardless of the data: if server returned something else like an mp3 file then it will still be cached. Then of course Retry can't work since it would get wrong data from cache
from ffimageloading.
@molinch Thanks: I suspect the error that happened is that HttpConnection limit was reached. I got a debug message saying that URL was being queued. As I mentioned, I am requesting 24 images simultaneously from the same server.
Also, I can make the change and download your code instead of using nuget but it might be nice if you have an option to never cache empty/zero bytes.
from ffimageloading.
Still even if you have simultaneous requests it should not do that. I would rather fix that.
Could you share a code sample? If it is private code you can also email me.
from ffimageloading.
@patook Any news?
from ffimageloading.
@patook I cannot reproduce so if I don't have news I will close this issue.
from ffimageloading.
Hi Fabien,
Sorry I ended up switching to a different image grabbing system since I had to push out the app urgently.
The way I had reproed it was by fetching 24 images from the same domain. One of them failed to download (which is fine) but then the empty image was cached.
Best
From: Fabien Molinet [mailto:[email protected]]
Sent: Monday, October 12, 2015 11:00 PM
To: molinch/FFImageLoading [email protected]
Cc: patook [email protected]
Subject: Re: [FFImageLoading] Xamarin Forms: FFImageLoading caches dead or failed links (#40)
@patook https://github.com/patook I cannot reproduce so if I don't have news I will close this issue.
—
Reply to this email directly or view it on GitHub #40 (comment) . https://github.com/notifications/beacon/ALyQzXv2JSm6G7AYghPgbvsn_mEmNZckks5o7JVFgaJpZM4GC_YD.gif
from ffimageloading.
I don't have this issue and there is no sample to reproduce so I close it.
from ffimageloading.
I was trying to test it too. Couldn't reproduce it. So it's safe to close it for now.
from ffimageloading.
Related Issues (20)
- Check if Image Server side has changed from Cached version
- [Bug]In Xamarin.Forms (Android) throws System.ArgumentException in ImageService.SetTaskForTarget (FFImageLoading.Work.IImageLoaderTask currentTask).
- Support for image width/height query in the URL
- Some SVG images are displaying and some are not HOT 3
- CacheKeyFactory used in a CollectionView causes incorrect images to load.
- ReplaceStringMap Question
- Images from URL don't show at all on iOS in Xamarin Forms 5 app HOT 1
- For MAUI see here.... HOT 3
- Image Adjustments in Xamarin
- [ISSUE] [Android] GIF animation weird behavior
- App crashes after calling ImageService.SetTaskForTarget HOT 1
- Guid inside URL is changed
- .Net 6 support HOT 4
- Incomplete downloaded image is cached.
- Images disappear on Android after pressing the (hardware) Back button HOT 1
- .Net 8 support HOT 2
- RotateTransformation does not rotate images on iOS 17
- Image won't load in Maui Windows app
- Inquiry about Data Collection
- On windows image download fails randomly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffimageloading.