Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

SfLinearGauge 17.4.0.55 on Android crashes sometimes when changing Header text property. This it the exception:


03-22 01:43:56.736 E/mono-rt (32547): [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.
03-22 01:43:56.736 E/mono-rt (32547):   at Syncfusion.SfGauge.XForms.Droid.LinearHeaderMapping.OnGaugeHeaderPropertiesChanged (System.String propertyName, Syncfusion.SfGauge.XForms.LinearHeader formHeader, Com.Syncfusion.Gauges.SfLinearGauge.LinearLabel nativeHeader) [0x000c3] in <e799a4474c1d492db45717f6f7d1406b>:0 
03-22 01:43:56.736 E/mono-rt (32547):   at Syncfusion.SfGauge.XForms.Droid.SfLinearGaugeMapping.Header_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00025] in <e799a4474c1d492db45717f6f7d1406b>:0 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:229 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:353 
03-22 01:43:56.736 E/mono-rt (32547):   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:461 
03-22 01:43:56.736 E/mono-rt (32547):   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:397 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00214] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:155 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:53 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:738 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000be] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:749 
03-22 01:43:56.736 E/mono-rt (32547):   at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:642 
03-22 01:43:56.736 E/mono-rt (32547):   at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
03-22 01:43:56.736 E/mono-rt (32547):   at DietAndFitness.Core.ViewModelBase.OnPropertyChanged (System.String PropertyName) [0x00012] in C:\Users\TGeorge\Source\Repos\DietAndFitness\DietAndFitness\DietAndFitness\Core\ViewModelBase.cs:32 
03-22 01:43:56.736 E/mono-rt (32547):   at DietAndFitness.ViewModels.DailyFoodListViewModel.set_CaloriesValuesInfo (System.String value) [0x0001a] in C:\Users\TGeorge\Source\Repos\DietAndFitness\DietAndFitness\DietAndFitness\ViewModels\DailyFoodListViewModel.cs:50 
03-22 01:43:56.736 E/mono-rt (32547):   at DietAndFitness.ViewModels.DailyFoodListViewModel.LoadList () [0x00238] in C:\Users\TGeorge\Source\Repos\DietAndFitness\DietAndFitness\DietAndFitness\ViewModels\DailyFoodListViewModel.cs:215 
03-22 01:43:56.736 E/mono-rt (32547):   at DietAndFitness.Views.DailyFoodListPage.OnAppearing () [0x00036] in C:\Users\TGeorge\Source\Repos\DietAndFitness\DietAndFitness\DietAndFitness\Views\DailyFoodListPage.xaml.cs:20 
03-22 01:43:56.736 E/mono-rt (32547):   at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.63(intptr,intptr)
03-22 01:43:56.736 E/mono-rt (32547):   at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.63(intptr,intptr)
It doesn't seem to happen every time though. It has been working fine so far, the only thing changed recently is that the page is no longer recreated every time something from the menu is selected (using MasterDetail) but is instead cached and the data in the ViewModel reloaded. It works fine on UWP.