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

SfRating throws exception on Android 9

Thread ID:

Created:

Updated:

Platform:

Replies:

140881 Nov 13,2018 12:53 AM UTC Nov 14,2018 05:19 AM UTC Xamarin.Forms 3
loading
Tags: SfRating
Emil
Asked On November 13, 2018 12:53 AM UTC

Hi,

SfRating throws below exception on Android devices. can you please check it? I cant reproduce it because i dont have android 9 device but i can see in my app center logs


Android: 9
Android Build: PD1A.180720.031
Manufacturer: ZUK
Model: Z2 Plus
 

Xamarin Exception Stack:
Java.Lang.IllegalArgumentException: Invalid Layer Save Flag - only ALL_SAVE_FLAGS is allowed
  at Java.Interop.JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <9a8eb9d499e74a1ba867ffa8f2871f01>:0
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualInt32Method (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) <0xc5d88ff0 + 0x0009b> in <9a8eb9d499e74a1ba867ffa8f2871f01>:0
  at Android.Graphics.Canvas.SaveLayer (System.Single left, System.Single top, System.Single right, System.Single bottom, Android.Graphics.Paint paint, Android.Graphics.SaveFlags saveFlags) <0xc6116900 + 0x0020f> in <e1819a75a6d74e3bbb21bea2c7690db8>:0
  at Com.Syncfusion.Rating.SfRatingItem.OnDraw (Android.Graphics.Canvas canvas) [0x000fd] in <af56d7575c8c4ce787b522ae1a63d45b>:0
  at Android.Views.View.n_OnDraw_Landroid_graphics_Canvas_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_canvas) <0xc60afe3c + 0x0006f> in <e1819a75a6d74e3bbb21bea2c7690db8>:0
  at (wrapper dynamic-method) System.Object.122(intptr,intptr,intptr)
  at java.lang.IllegalArgumentException: Invalid Layer Save Flag - only ALL_SAVE_FLAGS is allowed
  at android.graphics.Canvas.checkValidSaveFlags(Canvas.java:378)
  at android.graphics.Canvas.saveLayer(Canvas.java:507)
  at md5ae25172f2afba05f97bf9f7772c54c7a.SfRatingItem.n_onDraw(Native Method)
  at md5ae25172f2afba05f97bf9f7772c54c7a.SfRatingItem.onDraw(SfRatingItem.java:53)
  at android.view.View.draw(View.java:20211)
  at android.view.View.updateDisplayListIfDirty(View.java:19086)
  at android.view.View.draw(View.java:19939)
  at android.view.ViewGroup.drawChild(ViewGroup.java:4333)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
  at android.view.View.draw(View.java:20214)
  at android.view.View.updateDisplayListIfDirty(View.java:19086)
  at android.view.View.draw(View.java:19939)
  at android.view.ViewGroup.drawChild(ViewGroup.java:4333)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
  at android.view.View.updateDisplayListIfDirty(View.java:19077)
  at android.view.View.draw(View.java:19939)
  at android.view.ViewGroup.drawChild(ViewGroup.java:4333)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
  at android.view.View.draw(View.java:20214)
  at android.view.View.updateDisplayListIfDirty(View.java:19086)
  at android.view.View.draw(View.java:19939)
  at android.view.ViewGroup.drawChild(ViewGroup.java:4333)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4112)
  at android.view.View.updateDisplayListIfDirty(View.java:19077)
  at android.view.View.draw(View.java:19939)


Paul Anderson S [Syncfusion]
Replied On November 13, 2018 06:08 AM UTC

Hi Emil, 
 
Greetings from Syncfusion. 
 
We have already faced a similar issue in the SfRating control in Android 9 version and we have already logged a bug report for the reported issue “SfRating control crashes on Android 9 devices”. We have fixed this issue and the fix will be available in the upcoming Volume 4 2018 release which is expected to be rolled out at the mid of December 2018. 
 
Regards, 
Paul Anderson 


Emil
Replied On November 13, 2018 12:14 PM UTC

Hi, 

is it possible to get some custom assemblies before the release?

thanks,

Emil

Paul Anderson S [Syncfusion]
Replied On November 14, 2018 05:19 AM UTC

Hi Emil, 
 
We have created a new support incident to have further followups as you per your request to share custom assemblies for the fix. We will assist you through incident under your Direct Trac account.  
 
Our Direct Trac support system can be accessed from the following link:  
                                
 
Regards, 
Paul Anderson 


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

;