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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LinearGauge PointerRender Exception

Thread ID:

Created:

Updated:

Platform:

Replies:

140729 Nov 4,2018 10:17 PM UTC Nov 7,2018 08:35 AM UTC Xamarin.Forms 2
loading
Tags: SfLinearGauge
George
Asked On November 4, 2018 10:17 PM UTC

Hello. I'm using a LinearGauge control and it throws the following exception which crashes the app when navigating away from the page with it:

11-05 00:04:29.080 E/mono    (26709): Unhandled Exception:
11-05 00:04:29.080 E/mono    (26709): System.NotSupportedException: Unable to activate instance of type Com.Syncfusion.Gauges.SfLinearGauge.PointerRender from native handle 0xffbb8e6c (key_handle 0xb6b943). ---> System.MissingMethodException: No constructor found for Com.Syncfusion.Gauges.SfLinearGauge.PointerRender::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
11-05 00:04:29.080 E/mono    (26709):    --- End of inner exception stack trace ---
11-05 00:04:29.080 E/mono    (26709):   at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00036] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:303
11-05 00:04:29.080 E/mono    (26709):   at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:281
11-05 00:04:29.080 E/mono    (26709):    --- End of inner exception stack trace ---
11-05 00:04:29.080 E/mono    (26709):   at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00158] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:288
11-05 00:04:29.080 E/mono    (26709):   at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000c1] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:467
11-05 00:04:29.080 E/mono    (26709):   at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:438
11-05 00:04:29.080 E/mono    (26709):   at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:430
11-05 00:04:29.080 E/mono    (26709):   at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00006] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:424
11-05 00:04:29.080 E/mono    (26709):   at (wrapper dynamic-method) System.Object.dynamic_callback_0(intptr,intptr,single)
11-05 00:04:29.082 E/mono-rt (26709): [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Unable to activate instance of type Com.Syncfusion.Gauges.SfLinearGauge.PointerRender from native handle 0xffbb8e6c (key_handle 0xb6b943). ---> System.MissingMethodException: No constructor found for Com.Syncfusion.Gauges.SfLinearGauge.PointerRender::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.
11-05 00:04:29.082 E/mono-rt (26709):    --- End of inner exception stack trace ---
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Interop.TypeManager.CreateProxy (System.Type type, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00036] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:303
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00116] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:281
11-05 00:04:29.082 E/mono-rt (26709):    --- End of inner exception stack trace ---
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) [0x00158] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Interop/TypeManager.cs:288
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) [0x000c1] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:467
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Lang.Object._GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00017] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:438
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Lang.Object.GetObject[T] (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00000] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:430
11-05 00:04:29.082 E/mono-rt (26709):   at Java.Lang.Object.GetObject[T] (System.IntPtr jnienv, System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer) [0x00006] in /Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/Java.Lang/Object.cs:424
11-05 00:04:29.082 E/mono-rt (26709):   at (wrapper dynamic-method) System.Object.dynamic_callback_0(intptr,intptr,single)

The interesting part is that this only seems happens if the Back button is pressed very soon after navigating to the page with the SfLinearGauge. Any idea what this might be related to?




George
Replied On November 4, 2018 10:54 PM UTC

Forgot to mention this only happens on Android or at least I haven't been able to reproduce it in UWP (I am not able to test iOS as I don't have a Mac at the moment).

I also think I managed to find what's causing it: the crash only appears to happen when the BarPointer EnableAnimation property is set to True.

Michael Prabhu M [Syncfusion]
Replied On November 7, 2018 08:35 AM UTC

Hi George, 
  
Greetings from Syncfusion, 
  
We can able to reproduce the reported exception “No constructor found for Com.Syncfusion.Gauges.SfLinearGauge.PointerRender” when lineargauge is navigated from one page to another page if animation is enabled for pointer. We have logged the bug report regarding the same. This fix will be included in our upcoming vol 4 main release which is expected to be rolled out by the mid of December 2018. We appreciate your patience until then. 
 
Thanks, 
Michael 


CONFIRMATION

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

or the page will be automatically redirected to 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

;