You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling FFImageLoading.ImageService.Instance.InvalidateCacheEntryAsync(url, FFImageLoading.Cache.CacheType.All) and then later trying to show the same url results in an exception "The LinkedList node does not belong to current LinkedList."
Expected behavior
No exception.
It appears that the issue is in the implementation of Remove in LRUCache.cs:
public void Remove(TKey key)
{
LinkedListNode<LRUCacheItem<TKey, TValue>> node;
if (_cacheMap.TryGetValue(key, out node))
{
_lruList.Remove(node);
}
}
The call '_lruList.Remove(node)' should probably 'this.RemoveNode(node)'. The code as it stands removes the item from the lru list, but not the dictionary.
Version: 2.4.11.982
Platform:
📱 iOS
🤖 Android
🏁 WPF
[X ] 🌎 UWP
🍎 MacOS
📺 tvOS
🐒 Xamarin.Forms
The text was updated successfully, but these errors were encountered:
craigwi
added a commit
to craigwi/FFImageLoading
that referenced
this issue
Dec 19, 2021
🐛 Bug Report
Calling FFImageLoading.ImageService.Instance.InvalidateCacheEntryAsync(url, FFImageLoading.Cache.CacheType.All) and then later trying to show the same url results in an exception "The LinkedList node does not belong to current LinkedList."
Expected behavior
No exception.
It appears that the issue is in the implementation of Remove in LRUCache.cs:
The call '_lruList.Remove(node)' should probably 'this.RemoveNode(node)'. The code as it stands removes the item from the lru list, but not the dictionary.
Version: 2.4.11.982
Platform:
The text was updated successfully, but these errors were encountered: