SfCircularGauge Annotations random exception on android

hi all,
i'm using SfCircularGauge.
On Ios all works fine but on android i have this exception randomly (not always) when the binding list associated to the control raise property change.
Can you check please?
thanks

{System.NullReferenceException: Object reference not set to an instance of an object.
  at Syncfusion.SfGauge.XForms.Droid.AnnotationMapping.OnAnnotationPropertiesChanged (System.String propertyName, Syncfusion.SfGauge.XForms.GaugeAnnotation formAnnotation, Com.Syncfusion.Gauges.SfCircularGauge.GaugeAnnotation nativeAnnotation) [0x00091] in :0 
  at Syncfusion.SfGauge.XForms.Droid.SfCircularGaugeMapping.Annotation_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00043] in :0 
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:266 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:349 
  at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:31 
  at Syncfusion.SfGauge.XForms.SfCircularGauge.OnBindingContextChanged () [0x00080] in <2c048e67b2e646afbdb9e63316de89b8>:0 
 at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:247 
  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:479 
  at Xamarin.Forms.Element.b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:310 
  at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\BindableObjectExtensions.cs:28 
  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:308 
  at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:827 
  at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in D:\a\1\s\Xamarin.Forms.Core\View.cs:158 
  at Xamarin.Forms.Grid.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\Grid.cs:151 
  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:247 
  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:479 
at Xamarin.Forms.Element.b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:310 
  at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\BindableObjectExtensions.cs:28 
  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:308 
  at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:827 
  at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in D:\a\1\s\Xamarin.Forms.Core\View.cs:158 
  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:247 
  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:479 
  at Xamarin.Forms.TemplatedView.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00008] in D:\a\1\s\Xamarin.Forms.Core\TemplatedView.cs:69 
  at Xamarin.Forms.Element.b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:310 
  at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\BindableObjectExtensions.cs:28 
   at Xamarin.Forms.Element.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:308 
  at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:827 
  at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in D:\a\1\s\Xamarin.Forms.Core\View.cs:158 
  at Xamarin.Forms.ContentView.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\ContentView.cs:16 
  at Xamarin.Forms.BindableObject.BindingContextPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:550 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512 
   at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446 
 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374 
  

16 Replies

LU Luca February 14, 2021 01:58 PM UTC

here the last last part of the exception

at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:349 
  at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:31 
  at Syncfusion.ListView.XForms.ItemGenerator.UpdateRecordItem (Syncfusion.ListView.XForms.ListViewItemInfoBase itemInfo, System.Int32 rowindex, System.Object data, Xamarin.Forms.DataTemplate template) [0x0012d] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.LayoutBase.UpdateListViewItem (Syncfusion.ListView.XForms.ListViewItemInfoBase iteminfo, System.Int32 itemIndex, Syncfusion.ListView.XForms.ItemType itemType, System.Object itemData, Xamarin.Forms.DataTemplate template) [0x00071] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.LinearLayout.EnsureItems (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleLines) [0x00360] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.VisualContainer.EnsureItems () [0x00023] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x0004b] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:872 
  at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:107 
  at Syncfusion.ListView.XForms.Control.Helpers.SfListViewHelper.InvalidateForceLayout (Xamarin.Forms.Layout`1[T] view) [0x00000] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.SfListView.RefreshView (System.Boolean canResetRowHeight) [0x0003a] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.SfListView.RefreshView () [0x00000] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Syncfusion.ListView.XForms.SfListView.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00068] in <59d0a6f98a054f08b8beea44d070caab>:0 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446 
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00226] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:160 
  at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:56 
  at Xamarin.Forms.BindingExpression+BindingExpressionPart.b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:762 
  at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000cb] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:773 
  at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:666 
  at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)


using xf 5 and you last main release
the issue seems to be related at this part of xaml (in my code the image source is bounded)


i tried also with a label but i have the same issue.
how to reproduce:
- put a SfCircularGauge inside a a SFlistview or a classic listview
- go to new controller and call MessagingCenter.Send in order to  update the source of the listview
- exception
thanks!


LU Luca February 14, 2021 02:05 PM UTC

i fixed it adding in SFlistview ListViewCachingStrategy="CreateNewTemplate" and in standard listview CachingStrategy="RecycleElement"
anyway can you have a check please?
thanks


SS Sridevi Sivakumar Syncfusion Team February 15, 2021 12:22 PM UTC

Hi Alberto,

Greetings from Syncfusion.

We will try to reproduce the reported issue as per your reproducing steps and will include the fix in our volume 1, 2021 which expected to be rolled out on end of March,2021.

As of now, you can use list view different caching strategy option to resolve this.


Let us know if you need any further assistance.

Regards,
Sridevi S.
 



ET Eswaran Thirugnanasambandam Syncfusion Team March 31, 2021 04:33 PM UTC

Hi Alberto, 
 
We have fixed the reported issue “SfCircularGauge throws random exception when using Annotations on android" and the fix is included in our Volume 1 Main release. We are glad to announce that our Essential Studio 2021 Volume 1 Main release v19.1.0.54 is rolled out and is available for download under the following link. 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Eswaran   



LU Luca September 4, 2021 09:38 PM UTC

hi all,

i still have the same issue using version 19.2.0.55

here details:

{System.NullReferenceException: Object reference not set to an instance of an object.

  at Syncfusion.SfGauge.XForms.Droid.AnnotationMapping.OnAnnotationPropertiesChanged (System.String propertyName, Syncfusion.SfGauge.XForms.GaugeAnnotation formAnnotation, Com.Syncfusion.Gauges.SfCircularGauge.GaugeAnnotation nativeAnnotation) [0x00093] in <7328c8096f4c4897a5450d147b7bc516>:0

  at Syncfusion.SfGauge.XForms.Droid.SfCircularGaugeMapping.Annotation_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00043] in <7328c8096f4c4897a5450d147b7bc516>:0

  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:266

  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510

  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446

  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374

  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:349

  at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:31

  at Syncfusion.SfGauge.XForms.SfCircularGauge.OnBindingContextChanged () [0x00080] in <616512a4cb8e468eb376ec486c99fd10>:0

  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:247

  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:479

  at Xamarin.Forms.Element.<OnBindingContextChanged>b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:310

  at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\BindableObjectExtensions.cs:28

  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:308

  at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:827

  at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in D:\a\1\s\Xamarin.Forms.Core\View.cs:158

  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:247

  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:479

  at Xamarin.Forms.Element.<OnBindingContextChanged>b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:310

  at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\BindableObjectExtensions.cs:28

  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:308

  at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:827

  at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in D:\a\1\s\Xamarin.Forms.Core\View.cs:158

  at Xamarin.Forms.Grid.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\Grid.cs:151

  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:247

  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:479

  at Xamarin.Forms.TemplatedView.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00008] in D:\a\1\s\Xamarin.Forms.Core\TemplatedView.cs:69

  at Xamarin.Forms.Element.<OnBindingContextChanged>b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:310

  at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in D:\a\1\s\Xamarin.Forms.Core\BindableObjectExtensions.cs:28

  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:308

  at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:827

  at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in D:\a\1\s\Xamarin.Forms.Core\View.cs:158

  at Xamarin.Forms.ContentView.OnBindingContextChanged () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\ContentView.cs:16

  at Xamarin.Forms.BindableObject.BindingContextPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000f] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:550

  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512

  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446

  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374

  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:349

  at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:31

  at Syncfusion.ListView.XForms.ItemGenerator.UpdateRecordItem (Syncfusion.ListView.XForms.ListViewItemInfoBase itemInfo, System.Int32 rowindex, System.Object data, Xamarin.Forms.DataTemplate template) [0x0012d] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.LayoutBase.UpdateListViewItem (Syncfusion.ListView.XForms.ListViewItemInfoBase iteminfo, System.Int32 itemIndex, Syncfusion.ListView.XForms.ItemType itemType, System.Object itemData, Xamarin.Forms.DataTemplate template) [0x00071] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.GridLayout.UpdateGridViewItems (Syncfusion.ListView.XForms.GridViewRowInfo rowInfo, System.Object itemData, System.Int32 startItemIndex, System.Int32 childCount, Xamarin.Forms.DataTemplate template) [0x00166] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.GridLayout.CreateOrUpdateGridViewRowInfo (Syncfusion.ListView.XForms.GridViewRowInfo& rowInfo, System.Int32 rowIndex, Syncfusion.ListView.XForms.ItemType rowType, System.Object itemData, System.Int32 startItemIndex, System.Int32 childCount, Xamarin.Forms.DataTemplate template) [0x0001c] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.GridLayout.EnsureItems (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleLines) [0x00321] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.VisualContainer.EnsureItems () [0x00023] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x0004b] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:872

  at Xamarin.Forms.Layout.ForceLayout () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:107

  at Syncfusion.ListView.XForms.Control.Helpers.SfListViewHelper.InvalidateForceLayout (Xamarin.Forms.Layout`1[T] view) [0x00000] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.GridLayout.OnItemsCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0034e] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.SfListView.DisplayItems_CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0005d] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.DataSource.DisplayItems.RaiseCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs args) [0x00008] in <77c47722586242a5836d5702d0498e35>:0

  at Syncfusion.DataSource.DataSource.Refresh () [0x00129] in <77c47722586242a5836d5702d0498e35>:0

  at Syncfusion.DataSource.DataSource.OnSourceChanged (System.Collections.IEnumerable oldValue, System.Collections.IEnumerable newValue) [0x0016b] in <77c47722586242a5836d5702d0498e35>:0

  at Syncfusion.DataSource.DataSource.set_Source (System.Collections.IEnumerable value) [0x00012] in <77c47722586242a5836d5702d0498e35>:0

  at Syncfusion.ListView.XForms.SfListView.RefreshLayoutandView () [0x00062] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Syncfusion.ListView.XForms.SfListView.OnItemsSourceChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0005b] in <c96d2aad6b1646bdb2269fad7bc58f25>:0

  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512

  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446

  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00226] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:160

  at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:56

  at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:762

  at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000cb] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:773

  at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:666

  at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)

  at Test.ViewModels.BaseViewModel.OnPropertyChanged (System.String propertyName) [0x00012] in D:\Dev\Test\Test\Test\ViewModels\BaseViewModel.cs:407

  at Test.ViewModels.BaseViewModel.set_Items (System.Collections.ObjectModel.ObservableCollection`1[T] value) [0x00009] in D:\Dev\Test\Test\Test\ViewModels\BaseViewModel.cs:80



ET Eswaran Thirugnanasambandam Syncfusion Team September 6, 2021 07:54 AM UTC

Hi Luca, 
 
We have prepared a sample based on the previously provided replication steps and checked the reported crash in 19.2.0.55 NuGet. But we are afraid that we unable to reproduce the crash from our side. Please get the sample from the below link. 
 
 
Please check the sample. If you still face any problem, can you revert us by modifying the sample based on your scenario, this will help us to provide you a better solution at the earliest.  
 
Regards, 
Eswaran 



LU Luca September 6, 2021 08:18 AM UTC

Hi,

This happens just on android because in iOS is working well. I have a sfList and inside your circular gauge as item ( not alway displayed, depends on logic).

When I clear the items and add new ones from another tab ( the list is in on other tab) I have randomly this error.

Thanks 



ET Eswaran Thirugnanasambandam Syncfusion Team September 7, 2021 07:06 AM UTC

Hi Luca, 
 
Thanks for your update. 
 
We have checked the reported crash “SfCircularGauge Annotations random exception on android” with the provided replication steps. But we are afraid that we are unable to reproduce it from our side. However, we will include the possible fix in our source level based on the provided stack trace and include the fix in the upcoming weekly NuGet which is expected to be rolled out on September 14, 2021. Please check with it on your end and confirm whether the issue is resolved. 
 
Regards, 
Eswaran. 



LU Luca September 7, 2021 07:13 AM UTC

Hi,

Thanks!

Can you please share my version with the fix in order to test?

Thanks 



ET Eswaran Thirugnanasambandam Syncfusion Team September 8, 2021 06:11 AM UTC

Hi Luca, 
 
Thanks for your update. 
 
We will inform the version once the weekly NuGet is published on 21st September 2021. We appreciate your patience until then. 
 
Regards, 
Eswaran 



ET Eswaran Thirugnanasambandam Syncfusion Team September 14, 2021 09:15 AM UTC

Hi Luca, 
 
 We have added the possible fix for the reported problem“SfCircularGauge Annotations random exception on android. and the fix is included in our weekly NuGet of September 14, 2021.

NuGet Version: 19.2.0.62

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
 
Eswaran.   



LU Luca October 24, 2021 12:53 PM UTC

hi all,

i still have the same issue, it's frustrating.

I'm using your last version and also last version of forms.

i found some interesting things:

  1. i'm using the SFlistView with GridLayout
  2. i added you code as you wrote here (https://help.syncfusion.com/xamarin/listview/layouts?cs-save-lang=1&cs-lang=csharp#change-span-count-based-on-screen-size )
  3. the problem is this  pageWidth != width .I think you added in order to speedup and i agreee, but with this i have the issue. Removing this it works but of course is slow since every time this code is run.
thanks.

here the details.

i have circular gauge as a template in a SFList in a standard xamarin shell app.

If I change the tab and then come back to the tab where there is the list i get this error.

Can you help me? thanks a lot


android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Com.Syncfusion.Gauges.SfCircularGauge.SfCircularGauge'.

at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in :0

at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in :0

at Android.Views.ViewGroup.RemoveView (Android.Views.View view) [0x00031] in :0

at Com.Syncfusion.Gauges.SfCircularGauge.GaugeAnnotation.set_View (Android.Views.View value) [0x00026] in <42187c8deae044eb96fff6b6c4831340>:0

at Syncfusion.SfGauge.XForms.Droid.AnnotationMapping.OnAnnotationPropertiesChanged (System.String propertyName, Syncfusion.SfGauge.XForms.GaugeAnnotation formAnnotation, Com.Syncfusion.Gauges.SfCircularGauge.GaugeAnnotation nativeAnnotation) [0x000c1] in <63f010337c6645d1b8b6419ac3d998f1>:0

at Syncfusion.SfGauge.XForms.Droid.SfCircularGaugeMapping.Annotation_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00043] in <63f010337c6645d1b8b6419ac3d998f1>:0

at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)

at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0011b] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Syncfusion.SfGauge.XForms.SfCircularGauge.OnBindingContextChanged () [0x00080] in <20c0d6a7b84346b1a06aa7160c97ea36>:0

at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.OnBindingContextChanged () [0x00007] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.OnBindingContextChanged () [0x00007] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Grid.OnBindingContextChanged () [0x00006] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00062] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.TemplatedView.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00008] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.b__83_0 (Xamarin.Forms.BindableObject child, System.Object bc) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObjectExtensions.PropagateBindingContext[T] (Xamarin.Forms.BindableObject self, System.Collections.Generic.IList`1[T] children, System.Action`2[T1,T2] setChildBindingContext) [0x0002c] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Element.OnBindingContextChanged () [0x00007] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.VisualElement.OnBindingContextChanged () [0x00006] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.View.OnBindingContextChanged () [0x0000c] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.ContentView.OnBindingContextChanged () [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.BindingContextPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000f] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x0012a] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Syncfusion.ListView.XForms.ItemGenerator.UpdateRecordItem (Syncfusion.ListView.XForms.ListViewItemInfoBase itemInfo, System.Int32 rowindex, System.Object data, Xamarin.Forms.DataTemplate template) [0x0012d] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.LayoutBase.UpdateListViewItem (Syncfusion.ListView.XForms.ListViewItemInfoBase iteminfo, System.Int32 itemIndex, Syncfusion.ListView.XForms.ItemType itemType, System.Object itemData, Xamarin.Forms.DataTemplate template) [0x00071] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.GridLayout.UpdateGridViewItems (Syncfusion.ListView.XForms.GridViewRowInfo rowInfo, System.Object itemData, System.Int32 startItemIndex, System.Int32 childCount, Xamarin.Forms.DataTemplate template) [0x00166] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.GridLayout.CreateOrUpdateGridViewRowInfo (Syncfusion.ListView.XForms.GridViewRowInfo& rowInfo, System.Int32 rowIndex, Syncfusion.ListView.XForms.ItemType rowType, System.Object itemData, System.Int32 startItemIndex, System.Int32 childCount, Xamarin.Forms.DataTemplate template) [0x0001c] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.GridLayout.EnsureItems (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleLines) [0x00321] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.VisualContainer.EnsureItems () [0x00023] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.VisualContainer.OnSizeAllocated (System.Double width, System.Double height) [0x0004b] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Forms.Layout.ForceLayout () [0x0000d] in <50ad33ab204646e490d540bac86f2c73>:0

at Syncfusion.ListView.XForms.Control.Helpers.SfListViewHelper.InvalidateForceLayout (Xamarin.Forms.Layout`1[T] view) [0x00000] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.VisualContainer.set_ScrollOffset (System.Double value) [0x0008c] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Syncfusion.ListView.XForms.VisualContainer.ExtendedScrollView_Scrolled (System.Object sender, Xamarin.Forms.ScrolledEventArgs e) [0x00061] in <1b1dd1c09d9243129bf7d05da49e4a57>:0

at Xamarin.Forms.ScrollView.SetScrolledPosition (System.Double x, System.Double y) [0x00034] in <50ad33ab204646e490d540bac86f2c73>:0

at Xamarin.Fo

[TRUNCATED 2218 CHARS]

location where exception was thrown ---


at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualBooleanMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in :0

at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00063] in :0

at Android.Views.View.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00031] in :0

at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].DispatchTouchEvent (Android.Views.MotionEvent e) [0x0001f] in <78f1e278d6554267b0719153100b0838>:0

at Android.Views.View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in :0

at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.44(intptr,intptr,intptr)

--- End of stack trace from previous location where exception was thrown ---


at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualBooleanMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in :0

at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00063] in :0

at Android.Views.View.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00031] in :0

at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].DispatchTouchEvent (Android.Views.MotionEvent e) [0x0001f] in <78f1e278d6554267b0719153100b0838>:0

at Xamarin.Forms.Platform.Android.Platform+DefaultRenderer.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00007] in <78f1e278d6554267b0719153100b0838>:0

at Android.Views.View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in :0

at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.44(intptr,intptr,intptr)

--- End of stack trace from previous location where exception was thrown ---


at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualBooleanMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in :0

at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00063] in :0

at Android.Views.View.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00031] in :0

at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].DispatchTouchEvent (Android.Views.MotionEvent e) [0x0001f] in <78f1e278d6554267b0719153100b0838>:0

at Xamarin.Forms.Platform.Android.Platform+DefaultRenderer.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00007] in <78f1e278d6554267b0719153100b0838>:0

at Android.Views.View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in :0

at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.44(intptr,intptr,intptr)

--- End of stack trace from previous location where exception was thrown ---


at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualBooleanMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in :0

at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00063] in :0

at Android.Views.View.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00031] in :0

at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].DispatchTouchEvent (Android.Views.MotionEvent e) [0x0001f] in <78f1e278d6554267b0719153100b0838>:0

at Android.Views.View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in :0

at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.44(intptr,intptr,intptr)

--- End of stack trace from previous location where exception was thrown ---


at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualBooleanMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in :0

at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00063] in :0

at Android.Views.View.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00031] in :0

at Xamarin.Forms.Platform.Android.PlatformRenderer.DispatchTouchEvent (Android.Views.MotionEvent e) [0x00035] in <78f1e278d6554267b0719153100b0838>:0

at Android.Views.View.n_DispatchTouchEvent_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in :0

at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.44(intptr,intptr,intptr)

at crc643f46942d9dd1fff9.PlatformRenderer.n_dispatchTouchEvent(Native Method)

at crc643f46942d9dd1fff9.PlatformRenderer.dispatchTouchEvent(PlatformRenderer.java:55)

at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)

at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2650)

at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)

at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2650)

at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)

at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2650)

at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)

at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2650)

at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)

at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2650)

at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)

at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2650)

at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:448)

at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1828)

at android.app.Activity.dispatchTouchEvent(Activity.java:3346)

at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)

at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)

at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:410)

at android.view.View.dispatchPointerEvent(View.java:11975)

at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4836)

at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4647)

at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4183)

at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4236)

at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4202)

at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4329)

at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4210)

at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4386)

at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4183)

at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4236)

at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4202)

at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4210)

at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4183)

at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6743)

at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6717)

at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6678)

at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6849)

at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:249)

at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)

at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:211)

at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6817)

at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6872)

at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1029)

at android.view.Choreographer.doCallbacks(Choreographer.java:841)

at android.view.Choreographer.doFrame(Choreographer.java:766)

at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1015)

at android.os.Handler.handleCallback(Handler.java:793)

at android.os.Handler.dispatchMessage(Handler.java:98)

at android.os.Looper.loop(Looper.java:173)

at android.app.ActivityThread.main(ActivityThread.java:6698)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)




ET Eswaran Thirugnanasambandam Syncfusion Team October 26, 2021 04:17 PM UTC

Hi Alberto, 
 
Thanks for update. 
 
We can reproduce the reported crash “SfCircularGauge Annotations causes random exception on android” on our side. We have logged a bug report internally for this issue and we will include the fix in our upcoming weekly NuGet which is expected to be rolled out on November 2, 2021. 
 
Regards, 
Eswaran 



ET Eswaran Thirugnanasambandam Syncfusion Team November 3, 2021 12:35 PM UTC

Hi Alberto, 
 
Thanks for your patience.  
 
We have fixed the reported issue “SfCircularGauge Annotations causes random exception on android” and the fix is included in our weekly NuGet of November 3, 2021. 
 
NuGet Version: 19.3.0.48 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Eswaran 



LU Luca November 4, 2021 08:23 AM UTC

hi,

i'm trying and seems it works.

i will update you.

thanks a lot for the quick fix!



ET Eswaran Thirugnanasambandam Syncfusion Team November 8, 2021 05:15 AM UTC

Hi Alberto, 
 
Thanks for your update, 
 
Let us know, if you need further assistance. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon