SfRating is throwing exception on UWP desktop

If I have sfRating throwing exception on uwp desktop if i resize the page with sfrating. 
"id": "0f1e70b9093f4295bc52d5790c654d7c-1", "startAddress": "0x00007ff928450000", "endAddress": "0x00007ff92911d000", "name": "SharedLibrary", "path": "SharedLibrary.pdb" } ], "exception": { "type": "System.NullReferenceException", "message": "Object reference not set to an instance of an object.", "stackTrace": " at Syncfusion.SfRating.XForms.UWP.SfRatingMapping.RefreshItemcolors(SfRating) + 0x112\r\n
at Syncfusion.SfRating.XForms.UWP.SfRatingMapping.OnSfRatingPropertiesChanged(String, SfRating, SfRating, SfRatingSettings) +
0x2e0\r\n at Syncfusion.SfRating.XForms.UWP.SfRatingRenderer.OnElementChanged(ElementChangedEventArgs`1) +
0x101\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement) + 0x224\r\n
at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n at
Xamarin.Forms.Platform.UWP.VisualElementPackager.SetupVisualElement(VisualElement) + 0x16\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.Load() + 0x154\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement)
+ 0x1d1\r\n at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.SetupVisualElement(VisualElement) + 0x16\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.Load() + 0x154\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement)
+ 0x1d1\r\n at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.SetupVisualElement(VisualElement) + 0x16\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.Load() + 0x154\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement)
+ 0x1d1\r\n at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n
at Xamarin.Forms.Platform.UWP.VisualElementExtensions.GetOrCreateRenderer(VisualElement) + 0x4d\r\n at
Xamarin.Forms.Platform.UWP.ScrollViewRenderer.UpdateContent() + 0x184\r\n at
Xamarin.Forms.Platform.UWP.ScrollViewRenderer.OnElementChanged(ElementChangedEventArgs`1) + 0x24c\r\n
at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement) + 0x224\r\n
at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n at
Xamarin.Forms.Platform.UWP.VisualElementPackager.SetupVisualElement(VisualElement) + 0x16\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.Load() + 0x154\r\n
at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement) + 0x1d1\r\n
at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n
at Xamarin.Forms.Platform.UWP.VisualElementExtensions.GetOrCreateRenderer(VisualElement) + 0x4d\r\n
at Xamarin.Forms.Platform.UWP.FrameRenderer.PackChild() + 0x74\r\n at Xamarin.Forms.Platform.UWP.FrameRenderer.OnElementChanged(ElementChangedEventArgs`1)
+ 0x4c\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement) + 0x224\r\n at
Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n at
Xamarin.Forms.Platform.UWP.VisualElementPackager.SetupVisualElement(VisualElement) + 0x16\r\n
at Xamarin.Forms.Platform.UWP.VisualElementPackager.Load() + 0x154\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.SetElement(VisualElement)
+ 0x1d1\r\n at Xamarin.Forms.Platform.UWP.Platform.CreateRenderer(VisualElement) + 0x7c\r\n
at Xamarin.Forms.Platform.UWP.VisualElementExtensions.GetOrCreateRenderer(VisualElement) + 0x4d\r\n
at Rg.Plugins.Popup.WinPhone.Impl.PopupPlatformWinPhone.<RemoveAsync>d__12.MoveNext() + 0x2e\r\n---
End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
+ 0x21\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38\r\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task)
+ 0x17\r\n at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb\r\n at
Rg.Plugins.Popup.Services.PopupNavigationImpl.<RemoveAsync>d__12.MoveNext() + 0xa5\r\n---
End of stack trace from previous location where exception was thrown ---\r\n
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21\r\n
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70\r\n
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38\r\n
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17\r\n at
System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb\r\n
at Rg.Plugins.Popup.Services.PopupNavigationImpl.<>c__DisplayClass10_0.<<RemovePageAsync>b__0>d.MoveNext()
+ 0x161\r\n--- End of stack trace from previous location where exception was thrown ---\r\n a
t System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70\r\n
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38\r\n
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17\r\n at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb\r\n
at Rg.Plugins.Popup.Services.PopupNavigationImpl.<>c__DisplayClass15_0.<<InvokeThreadSafe>b__0>d.MoveNext() + 0xb0\r\n---
End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
+ 0x21\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70\r\n
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38\r\n at S
ystem.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17\r\n at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb\r\n
 

2 Replies

EM Emil March 17, 2020 11:54 PM UTC

Sorry above error is something else. I have found above error message in my appcenter logs.

Another error on size changed is thrown on UWP. Both errors are on UWP. 

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Syncfusion.SfRating.XForms.UWP
  StackTrace:
   at Syncfusion.SfRating.XForms.UWP.SfRatingRenderer.Rating_SizeChanged(Object sender, EventArgs e)



SP Sakthivel Palaniyappan Syncfusion Team March 18, 2020 03:00 PM UTC

Hi Emil,

Greetings from Syncfusion.

We have analyzed your query and checked the reported issue of “SfRating is throwing exception on UWP”, but we are unable to replicate the reported issue. Please find sample from below for your reference

Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/RatingSample1148804957.zip

Since we are not aware of your exact application scenario, could you please update modified sample with reported issue or simple sample. It will help us to provide better solution at the earliest.

Regards,
Sakthivel P.


Loader.
Up arrow icon