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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Crash while loading SfRotator

Thread ID:

Created:

Updated:

Platform:

Replies:

145189 Jun 11,2019 09:22 PM UTC Jun 14,2019 09:45 AM UTC Xamarin.Forms 5
loading
Tags: SfRotator
Wallace Santos
Asked On June 11, 2019 09:26 PM UTC

This started in the version 17.1.0.50

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.

Muneesh Kumar G [Syncfusion]
Replied On 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.   
 
 
or   
   
Please find the patch assemblies from the below location.   
   
 
or  
   
Please find the NuGet from the below location.   
 
 
Assembly Version: v17.1.0.47   
   
Disclaimer:    
  
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.  
 
Regards,
Muneesh Kumar G 
 


Wallace Santos
Replied On 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 (4.0.0.482894)?

Best regards

Wallace

Muneesh Kumar G [Syncfusion]
Replied On June 13, 2019 06:12 AM UTC

Hi Wallace, 
 
We have checked the provided patch with the last version of Xamarin Forms (4.0.0.482894). 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. 
 
Regards,
Muneesh Kumar G 
 


Wallace Santos
Replied On 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

Wallace

Padmini Ramamurthy [Syncfusion]
Replied On 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!!!!! 
  
Regards, 
Padmini 


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

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

Live Chat Icon For mobile
Live Chat Icon