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

Crash while loading SfRotator

This started in the version

Exception Message: Object reference not set to an instance of an object.
Stack trace:
at Syncfusion.SfRotator.XForms.Droid.SfRotatorRenderer.ConvertFormsToNativeMainItem (Xamarin.Forms.View view, Xamarin.Forms.Rectangle size, Syncfusion.SfRotator.XForms.SfRotator formsRotator) [0x000b6] in <50c5046caf1d47749298421e9efcd1e4>:0 
  at Syncfusion.SfRotator.XForms.Droid.SfRotatorItemMapping.OnRotatorItemPropertiesChanged (System.String propertyName, Syncfusion.SfRotator.XForms.SfRotatorItem formsItem, Com.Syncfusion.Rotator.SfRotatorItem nativeItem) [0x00079] in <50c5046caf1d47749298421e9efcd1e4>:0 
  at Syncfusion.SfRotator.XForms.Droid.SfRotatorItemMapping.GetNativeItem (Syncfusion.SfRotator.XForms.SfRotatorItem item, Syncfusion.SfRotator.XForms.SfRotator rotator) [0x00034] in <50c5046caf1d47749298421e9efcd1e4>:0 
  at Syncfusion.SfRotator.XForms.Droid.SfRotatorMapping.OnRotatorPropertiesChanged (System.String propertyName, Syncfusion.SfRotator.XForms.SfRotator formsRotator, Com.Syncfusion.Rotator.SfRotator nativeRotator) [0x00576] in <50c5046caf1d47749298421e9efcd1e4>:0 
  at Syncfusion.SfRotator.XForms.Droid.SfRotatorRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00013] in <50c5046caf1d47749298421e9efcd1e4>:0 
  at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:211 
  at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:353 
  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:443 
  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:379 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:316 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:293 
  at Syncfusion.SfRotator.XForms.SfRotator.set_ItemsSource (System.Collections.Generic.IEnumerable`1[T] value) [0x00001] in <14c451dc6bd4433e90f78691636d7d81>:0 
  at WiseMarket.Sales.ProductContentPage+<>c__DisplayClass7_0.b__0 () [0x00153] in /Users/wallacesantos/Documents/Acanto/Projects/Temp/Hanwell/Source/WiseMarket/WiseMarket/Product/ProductContentPage.xaml.cs:207 
  at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <788a34f7a7b84486905dfde786529d42>:0 
  at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <788a34f7a7b84486905dfde786529d42>:0 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.29(intptr,intptr)

Code implemented:
List<SfRotatorItem> items = new List<SfRotatorItem>(); 
items.Add(new SfRotatorItem()
    ItemContent = new Image() {
         Source = "https://www.acanto.ca/wiseimageh/tempProduct.png",
          Opacity = 0.5
this.rotatorProduct.ItemsSource = items;

The crash happens when set items to rotator.ItemsSource property.

5 Replies

MK Muneesh Kumar G Syncfusion Team June 12, 2019 10:50 AM UTC

Hi Wallace, 
Greeting from Syncfusion.  
We have checked the reported issue “Crash while loading SfRotator”. We were able to reproduce the reported issue, we already fixed this issue and please find the patch setup from the below location.   
Please find the patch assemblies from the below location.   
Please find the NuGet from the below location.   
Assembly Version: v17.1.0.47   
Please note that we have created this patch for the version17.1.0.47 specifically to resolve the issue reported in this incident.   
This fix will be included in our Volume 2 beta release which will be available on end of June 2019.  
Muneesh Kumar G 

WS Wallace Santos June 12, 2019 01:47 PM UTC

Hi Muneesh, good morning

I applied this patch but unfortunately still not work. Can you check if there is some relation with the last version of Xamarin Forms (

Best regards


MK Muneesh Kumar G Syncfusion Team June 13, 2019 06:12 AM UTC

Hi Wallace, 
We have checked the provided patch with the last version of Xamarin Forms ( This works fine.  
We request you to clear the Nuget cache before replacing the NuGet, please follow the below steps to clear the NuGet cache,  
For Windows  
Follow the below link to clear cache,  
For Mac  
• ~/.local/share/NuGet/Cache  
• ~/.nuget/package  
We have prepared a simple sample with provided patch. The reported issue is resolved in that patch please get the sample from below link. 
Please let us know, if you still face any issues. 
Muneesh Kumar G 

WS Wallace Santos June 13, 2019 12:19 PM UTC

Hi Muneesh, good morning

Sure! How could I forget this step. Thanks to reminder me... I did and now it's working fine, thanks!

Best regards


PR Padmini Ramamurthy Syncfusion Team June 14, 2019 09:45 AM UTC

Hi Wallace, 
Glad that the provided solution works and please get back to us if you need any other assistance. Have a great day!!!!! 

Live Chat Icon For mobile
Up arrow icon