FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Rare crash in StrongLruCache: System.NullReferenceExceptionObject reference not set to an instance of an object

Open patook opened this issue 10 years ago • 7 comments

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 avatar May 04 '16 18:05 patook

@patook By any chance do you know the device model and API version? Any extra information would help.

molinch avatar May 06 '16 06:05 molinch

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

patook avatar May 06 '16 06:05 patook

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

molinch avatar May 06 '16 06:05 molinch

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 avatar May 06 '16 19:05 patook

@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.

daniel-luberda avatar May 08 '16 23:05 daniel-luberda

@patook Have you received it with 2.1? By the way we just release 2.1 RC2 prelease nuget.

molinch avatar May 15 '16 15:05 molinch

Closing since 2.1 is now released. Feel free to reopen if you still have the issue.

molinch avatar May 19 '16 06:05 molinch