We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

App crashes when swiping is enabled

I have used this component and implemented LeftSwipeTemplate to be Frame with Image. Swiping works, but when you swipe it a little bit then app crashes, and on AppCenter it gave me this error: "System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.FastRenderers.ImageRenderer'."
And here is Stack trace: 
  • JniPeerMembers.AssertSelf(Java.Interop.IJavaPeerable self)
  • JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod(System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
  • ImageView.get_Drawable ()
  • ImageElementManager.TryUpdateBitmap(Xamarin.Forms.Platform.Android.IImageRendererController rendererController, Android.Widget.ImageView Control, Xamarin.Forms.IImageElement newImage, Xamarin.Forms.IImageElement previous)
  • ImageElementManager.OnElementChanged(System.Object sender, Xamarin.Forms.Platform.Android.VisualElementChangedEventArgs e)
  • AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0(System.Object state)
  • SyncContext+<>c__DisplayClass2_0.<Post>b__0()
  • Thread+RunnableImplementor.Run()
  • IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this)



1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team December 11, 2019 08:40 AM UTC

Hi Ðorde, 
 
Thank you for contacting Syncfusion support. 
 
Based on the provided information, we have checked the mentioned issue “Throws exception when swiping enabled in ListView” Xamarin.Forms (Android) and we unable to replicate the issue from end. We have tested by swiping left as mentioned and it is working fine as expected. We have prepared sample for the same, 
 

Note: As per the given trace issue not occurred with ListView and it occurs in sample level with Xamarin elements. 
 
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details, 
 
·       Device configuration details 
·       Syncfusion and Xamarin.Forms update version 
 
It will be helpful for us to check on it and provide you the solution at the earliest.   
 
Regards,
Subburaj Pandian V

 


Loader.
Live Chat Icon For mobile
Up arrow icon