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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

App crashes when swiping is enabled

Thread ID:





149814 Dec 10,2019 02:08 PM UTC Dec 11,2019 08:40 AM UTC Xamarin.Forms 1
Tags: SfListView
Ðorde Milanovic
Asked On December 10, 2019 02:08 PM UTC

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)

Subburaj Pandian Veluchamy [Syncfusion]
Replied On 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.   
Subburaj Pandian V



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon