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

SFChart - Donut Chart - SelectionChangedListener crashing in newest version - Forms/Android

We just updated to version 15.1.0.41. Since this update our android build of the application crashes when selecting a section of a donut chart. The chart appears correctly, but crashes when a section is selected.

On selection of the donut chart section, we navigate to another page. This worked fine up until the update.

Any ideas?

Stack trace message below:
"Unable to activate instance of type Syncfusion.SfChart.XForms.Droid.SfChartExt from native handle 0xbe9f15d0 (key_handle 0x15da033c)."
  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00186] in /Users/builder/data/lanes/4009/3a62f1ea/source/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:289 
  at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000e5] in /Users/builder/data/lanes/4009/3a62f1ea/source/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:459 
  at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x0001a] in /Users/builder/data/lanes/4009/3a62f1ea/source/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:430 
  at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in /Users/builder/data/lanes/4009/3a62f1ea/source/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:422 
  at Com.Syncfusion.Charts.SfChart+IOnSelectionChangedListenerInvoker.n_OnSelectionChanged_Lcom_syncfusion_charts_SfChart_Lcom_syncfusion_charts_ChartSelectionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_p0, System.IntPtr native_p1) [0x00008] in <f73f9acaf6044af3b05d6bd5592a7956>:0 
  at (wrapper dynamic-method) System.Object:36757968-07f3-4053-ae64-9ac8c634d575 (intptr,intptr,intptr,intptr)


No constructor found for Syncfusion.SfChart.XForms.Droid.SfChartExt::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership)
at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00039] in /Users/builder/data/lanes/4468/b16fb820/source/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:304  at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00138] in /Users/builder/data/lanes/4468/b16fb820/source/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:282 

Exception of type 'Java.Interop.JavaLocationException' was thrown.
Java.Lang.Error: Exception of type 'Java.Lang.Error' was thrown.
  --- End of managed Java.Lang.Error stack trace ---
java.lang.Error: Java callstack:
at mono.com.syncfusion.charts.SfChart_OnSelectionChangedListenerImplementor.n_onSelectionChanged(Native Method)
at mono.com.syncfusion.charts.SfChart_OnSelectionChangedListenerImplementor.onSelectionChanged(SfChart_OnSelectionChangedListenerImplementor.java:30)
at com.syncfusion.charts.SfChart.raiseOnSelectionChangedListener(SfChart.java:435)
at com.syncfusion.charts.ChartSelectionBehavior.raiseSelectionChangedListener(ChartSelectionBehavior.java:131)
at com.syncfusion.charts.ChartSelectionBehavior.onPointerClicked(ChartSelectionBehavior.java:51)
at com.syncfusion.charts.ChartSelectionBehavior.onTouchUp(ChartSelectionBehavior.java:41)
at com.syncfusion.charts.ChartBehavior.onTouchEvent(ChartBehavior.java:68)
at com.syncfusion.charts.SfChart.onTouchEvent(SfChart.java:1542)
at android.view.View.dispatchTouchEvent(View.java:8388)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2424)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2158)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2172)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2430)




1 Reply

SP Saravana Pandian Murugan Syncfusion Team April 7, 2017 05:38 PM UTC

Hi Nick,

Thanks for contacting Syncfusion support.

We were unable to reproduce the reported issue at our end and we have prepared a sample for this. Please update us the modified sample to reproduce the issue which will be helpful for providing further assistance on this.

Sample: http://www.syncfusion.com/downloads/support/forum/129873/ze/DoughnutSelection-541524291
 
Regards,
Saravana Pandian M.


Loader.
Live Chat Icon For mobile
Up arrow icon