Fatal error when reset

when I reset the image, the control generates a fatal error.

System.ObjectDisposedException: 'Cannot access a disposed object. Object name: 'Android.Graphics.Bitmap'.'


attached image used


Attachment: Image20211116213945286_b7a2befd.zip

13 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team November 17, 2021 03:49 PM UTC

Hi Marco Salvatori. 
 
Greetings from Syncfusion. 
 
We can reproduce the reported problem with the provided image. But it is not occurring with other images that we have used in sample browsers, etc. Currently, we are validating the issue with our source and update you with further details on or before November 19, 2021. We appreciate your patience until then. 
 
Regards, 
Eswaran. 



MS Marco Salvatori November 18, 2021 08:06 AM UTC

true, it happens to me only with images of that type (white image), previously generated by the same control.



ET Eswaran Thirugnanasambandam Syncfusion Team November 19, 2021 03:42 PM UTC

Hi Marco Salvatori, 
 
Thanks for your patience. 
 
As mentioned earlier the issue occurs only when using the given image and currently, we are validating the issue with our source and update you with further details on or before November 22, 2021. We appreciate your patience until then. 
 
Regards, 
Eswaran. 



VR Vignesh Ramesh Syncfusion Team November 23, 2021 03:37 PM UTC

Hi Marco Salvatori,  

Sorry for the delay. 

We have checked the reported problem “[Android] System.ObjectDisposedException occurs with some images when reset after applied any effects” in our source and confirmed it as a defect. So, logged a bug report for this. You can keep track of the bug from the feedback portal below.  
  
  
NOTE: The provided feedback link is private, and you need to login to view this feedback.  
  
We will include the fix in our next weekly NuGet which is expected to be rolled out on December 7th, 2021. We appreciate your patience until then. If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.  
  
Regards,   
Vignesh Ramesh.  



MS Marco Salvatori November 24, 2021 11:33 AM UTC

thanks...



ET Eswaran Thirugnanasambandam Syncfusion Team November 25, 2021 06:59 AM UTC

Hi Marco Salvatori,   
 
You are welcome. As promised, we will include the fix in our next weekly NuGet which is expected to be rolled out on December 7th, 2021. We appreciate your patience until then. 
 
Regards, 
Eswaran 



VR Vignesh Ramesh Syncfusion Team December 7, 2021 06:44 AM UTC

Hi Marco Salvatori, 

Thanks for your patience. 

We have fixed the reported issue “[Android] System.ObjectDisposedException occurs with some images when reset after applied any effects” and the fix is included in our weekly NuGet of December 7, 2021. 
  
NuGet Version: 19.3.0.57 
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  

Regards, 
Vignesh Ramesh.


MS Marco Salvatori December 9, 2021 10:55 AM UTC

I installed version 57 but the problem persists ...



RS Ragul Subramani Syncfusion Team December 10, 2021 07:15 AM UTC

Hi Marco Salvatori,


We have prepared a sample with the provided image and checked the reported problem with Syncfusion version 19.3.0.57. But we are not able to reproduce the reported problem on our side. Can you please check with the sample from the attachment? If still, you face the problem, please revert us by modifying the sample based on your application along with the replication procedure. This would be helpful for us to give a better solution to this. Also, clear the NuGet cache as per below KB.


KB Link: https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache


Note: We have tested the sample in Android versions 8 and 11.


Regards,

Ragul S V.


Attachment: DemoIE_fd79d69e.zip


MS Marco Salvatori December 10, 2021 10:03 AM UTC

we replicated the code within our APP and the error occurs.

Android 11

at this point, could it be some incompatibility with other nuget packages?

xamarin forms is up to date.

problem that occurs only with images created with your control.



MS Marco Salvatori December 10, 2021 11:29 AM UTC

if it can help..


if i insert this istruction


        private void PhotoEditor_BeginReset(object sender, BeginResetEventArgs args)

        {

            args.Cancel = true; //It restricts resetting image to initial loaded image.

        }

error disappear but 'reset' not work...



MS Marco Salvatori December 10, 2021 11:54 AM UTC

my actual workaround is insert this code:


        private void PhotoEditor_BeginReset(object sender, BeginResetEventArgs args)

        {

            args.Cancel = true; //It restricts resetting image to initial loaded image.

            PhotoEditor.Source = null;

            PhotoEditor.Source = imageSource;

        }



ET Eswaran Thirugnanasambandam Syncfusion Team December 13, 2021 11:43 AM UTC

Hi Marco Salvatori,

Thanks for your update.

As we have mentioned earlier, the reported crash has been resolved in our 19.3.0.57 NuGet release itself. Also, we have tested the fix with the most recent version of Xamarin Forms, and it works perfectly. Could you please confirm whether the reported crash happens in the sample that we provided earlier or only in your application?

If the problem reproduces only in your application, we recommend trying to clear your system cache. So, please follow the below hide lines to remove the old cache NuGet and check your application with the latest NuGet version.

1.Uninstall the syncfusion NuGets and Xamarin.Forms NuGet installed in your application.
2.Clear your application NuGet cache using the KB https://www.syncfusion.com/kb/6987  
3.Clean your application.
4.Install the required syncfusion latest nugets and Xamarin.Forms NuGet to your application.
5.Check the reported problem.

Regards,
Eswaran.


Loader.
Up arrow icon