-
Notifications
You must be signed in to change notification settings - Fork 1.9k
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Android.Graphics.Bitmap' #2041
Comments
if your not able to do a reproduction project, please paste the stacktrace. Othwerwise its very hard to se where this bug is happening |
As @bentmar said, without either a reproduction or a stack trace this is going to be a very long time before we get to this. |
I have same issue... Stacktrace: |
@jerry2007 this crash comes from a custom renderer (not provided by the xamarin team) |
@jerry2007 Does your custom renderer override |
This is how i generate a random hexadecimal color using random class. |
@jeevan9 can you create a repro? Or at the very least post what the code for MyIconButtonRenderer looks like? Though a repro would be more helpful |
@jeevan9 Are you able to attach a small project demonstrating the issue? Thank you |
I am also struck with the same crash, Please let me know if any solution JniPeerMembers.AssertSelf Xamarin caused by: android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object. |
The above crash happened randomly, Unfortunately, I can not re produce. But it is happened sporadically, Till not it was happened 11 times(As per hockey app report). |
Closing as we've had no reproduction provided to date, with the original report being over two months ago. Please reopen with more information and a reproduction if the issue still occurs on 3.0/3.1-pre. |
I am randomly getting this issue - can't see any custom renderer in the stack trace just platform stuff. Can you consider re-opening this. Here is the full stack trace:
It's not easy to repro on demand without sharing my entire app source code which I can't do here. |
I too am getting the same error, pretty consistently in my GooglePlay Pre-launch reports. With what I believe is an identical stack trace. Annoying part is, when I try to reproduce the exact steps, as the test recording video, it does not crash for me :( Here is a logcat trace.
06-20 09:18:58.304: E/AndroidRuntime(8313): at java.lang.reflect.Method.invoke(Native Method) |
Started to receive this issue with latest update of Xamarin Forms 3.1.0.583944 Fatal Exception: java.lang.Throwable: Cannot access a disposed object. |
I also started getting this bug after updating to XF 3.1.0.697729. I can't post my project for reproduction since it's a closed source, but here's at least a call stack: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Android.Graphics.Bitmap'. |
@pluggy this should be resolved in the latest 3.2 release |
Add in list view this parameter: Good luck! |
Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues
Description
Steps to Reproduce
Expected Behavior
Search should happen and make a rest call and listview should be populated without error
Actual Behavior
while searching , sometimes (at irregular intervals of time) i get System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Android.Graphics.Bitmap' this exception and my app gets unfortunately stopped.
Basic Information
I kept a round button in each row of a listview by using ButtonCircle.FormsPlugin.Abstractions plugin and sets background color of the button using random function.
Version with issue:
Last known good version:Visual Studio 15.5.6
IDE: Visual Studio , Xamarin.Forms
Platform Target Frameworks: Android 4.0.3 to Android 8.0
Android Support Library Version:
Nuget Packages: ButtonCircle.FormsPlugin.Abstractions
Affected Devices:
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: