Rare crash in StrongLruCache: System.NullReferenceExceptionObject reference not set to an instance of an object
2 occurrences in 30,000 sessions.
FFImageLoading.Collections.StrongLruCache.Add(TKey key, TValue value, bool overwrite) FFImageLoading.Collections.StrongLruCache .Add(TKey key, TValue value) FFImageLoading.Cache.ReuseBitmapDrawableCache.DemoteDisplayedEntryToReusePool(SelfDisposingBitmapDrawable value) FFImageLoading.Cache.ReuseBitmapDrawableCache.OnEntryNoLongerDisplayed(object sender, EventArgs args) FFImageLoading.Drawables.SelfDisposingBitmapDrawable.SetIsDisplayed(bool isDisplayed) FFImageLoading.Views.ManagedImageView.UpdateDrawableDisplayedState(Drawable drawable, bool isDisplayed) FFImageLoading.Views.ManagedImageView.Dispose(bool disposing) Java.Lang.Object.Dispose()
@patook By any chance do you know the device model and API version? Any extra information would help.
Yes, this is Android 4.2, device RCT6103W46
It is running XF2.1 and the FFImageLoading from just before you updated to XF2.2.
From: Fabien Molinet [mailto:[email protected]] Sent: Thursday, May 5, 2016 11:14 PM To: molinch/FFImageLoading [email protected] Cc: patook [email protected]; Mention [email protected] Subject: Re: [molinch/FFImageLoading] Rare crash in StrongLruCache: System.NullReferenceExceptionObject reference not set to an instance of an object (#192)
@patook https://github.com/patook By any chance do you know the device model and API version? Any extra information would help.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/molinch/FFImageLoading/issues/192#issuecomment-217355748 https://github.com/notifications/beacon/ALyQzWaz-kVJ-MEVa6zzyABsnq1sY4vBks5p-twKgaJpZM4IXaoX.gif
If you get it with 2.1 could you post the error message too? We added some arguments check so it will be easier to track it down: https://github.com/molinch/FFImageLoading/blob/017541135eba42fee001b11016556231e8524772/source/FFImageLoading.Droid/Collections/StrongLruCache.cs#L118
Yes. I will push out a build with 2.1 to Android app store as soon as XLabs is stable on Android with XF2.2. Hopefully by next week.
Thank you for your time in responding to this.
From: Fabien Molinet [mailto:[email protected]] Sent: Thursday, May 5, 2016 11:30 PM To: molinch/FFImageLoading [email protected] Cc: patook [email protected]; Mention [email protected] Subject: Re: [molinch/FFImageLoading] Rare crash in StrongLruCache: System.NullReferenceExceptionObject reference not set to an instance of an object (#192)
If you get it with 2.1 could you post the error message too? We added some arguments check so it will be easier to track it down: https://github.com/molinch/FFImageLoading/blob/017541135eba42fee001b11016556231e8524772/source/FFImageLoading.Droid/Collections/StrongLruCache.cs#L118
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/molinch/FFImageLoading/issues/192#issuecomment-217357679 https://github.com/notifications/beacon/ALyQzUorEosTTdVlKYz65tPXAU_iuq6aks5p-t_4gaJpZM4IXaoX.gif
@patook 2.1.0-alpha2 should work on any Xamarin.Forms version. You can test it as it has some fixes related to this issue.
@patook Have you received it with 2.1? By the way we just release 2.1 RC2 prelease nuget.
Closing since 2.1 is now released. Feel free to reopen if you still have the issue.