-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Object name: 'Android.Graphics.Bitmap' System.ObjectDisposedException: Cannot access a disposed object. #2317
Comments
Unfortunately without even a reproduction using the nuget it will be pretty hard to work this out. This appears to be something unfriendly happening with fragments and that carouselview causing disposed objects to be requested back to life. |
While trying to create a simple reproduction, I decided to try updating the version of the carousel package (from 4.4.6 to 5.2). The problem seemed to go away so I'm happy to accept this as a old bug in the carousel. |
I realise that this doesn't really make the bug any more actionable, but I figured I might as well gather the information in one place in case it becomes useful to someone. I just got the I think the |
@GalaxiaGuy I am getting same crash report but I can't guess what is the issue, please help me to fix it if you can. Thanks. Here is the error what I got from app center.
|
@bastianbecker21 I can tell you what I have found so far. I am experiencing the same error and so far have tracked it down to a binding I have on the button's I have to do more testing to be 100% sure this is the cause, but thought it may help. |
Description
Bugzilla bug https://bugzilla.xamarin.com/show_bug.cgi?id=57789. I didn't submit the original bug, but it has just started happening to me (although with newer versions of Xamarin Forms).
Tapping a button sometimes triggers an
ObjectDisposedException
in eitherButtonDrawable.Draw
orButtonDrawable.Reset
. This is on Android AppCompat with fast renderers enabled. The buttons in question trigger navigation.Steps to Reproduce
Unclear. The only significant change between it not happening and it happening (for me at least) was moving the content with the buttons inside a CarouselViewControl. This is the one by alexrainman, and I'm still referencing his Nuget package.
Sadly, I cannot as yet produce a small reproducible sample, but I will see what I can come up with.
Expected Behavior
No exception.
Actual Behavior
Object name: 'Android.Graphics.Bitmap' System.ObjectDisposedException: Cannot access a disposed object.
Basic Information
Stack trace for ButtonDrawable.Draw case
Stack trace for ButtonDrawable.Reset case
The text was updated successfully, but these errors were encountered: