- Home
- Forum
- Xamarin.Forms
- Issue with Onboarding from Essentials UI Kit!!
Issue with Onboarding from Essentials UI Kit!!
The OnBoardingAnimationPage is really beautifull and I would like to use it on android. The problem is tha if someone scrolls horizontally very quickly it crashes with:
Java.Lang.IllegalArgumentException: 'Cannot set 'scaleX' to Float.NaN'
Note: This happens even in the application Essential UI Kit from PlayStore!
Any fix would be really appreciated!
Greetings from Syncfusion.
We have analyzed your query. We have prepared a sample using SfRotator with Onboarding from Essentials UI Kit, but we were unable to reproduce the same. Sample we tried that can be download from below.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/UIKit_OnBoardingPageTemplate1482002268
Since we are not aware of your exact application scenario, so we request you to check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the sample. It will help us to provide better solution at the earliest.
Regards,
Suganya Sethuraman.
Greetings! Thank you for the response.. I just checked and the problem persists :
I am testing with Android 9.0. To reproduce the problem you need to scroll very fast (before the image shows up).
I am hoping for your response!
We could not be able to reproduce the issue in our side. Could you please provide the following details?
1. Please provide the complete stack trace of the issue.
2. whether the issue was only present in Android version 9? If so, please provide the device details.
This will be helpful for us to provide better solution at the earliest.
Regards,
Suganya Sethuraman.
I can reproduce this issue:
- With the Essential UI Kit downloaded from Play Store running on Android 11 API 30
- With the Essential Ui Kit source code running in the emulator on 9.0 API 28 and on 11 API 30
- With the sample provided above running in the emulator (as above)
Java.Lang.IllegalArgumentException Message=Cannot set 'scaleX' to Float.NaN
This doesn't occur when using the buttons, but happens when swiping between views. I do not have to scroll fast to reproduce this.
The offending line is 102 in SfRotatorBehavior.cs:
previousChildElement[1].ScaleTo(1, 0);
Set the second parameter (uint length) to something other than 0, and the issue goes away.
I have a video of your app being downloaded from Play Store and crashing when using the onboarding rotator. I can't upload it here, but I can send it to you if you tell me how.
- 9 Replies
- 4 Participants
-
SF STRATOS FEZANS
- Jul 1, 2021 12:37 PM UTC
- Nov 3, 2021 12:58 PM UTC