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

LinearGauge PointerRender Exception

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?




2 Replies

GE George 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.


MP Michael Prabhu M Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon