Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException Cannot set 'scaleX' to Float.NaN #370

Open
chim0380 opened this issue Jan 21, 2023 · 1 comment
Open

Comments

@chim0380
Copy link

Sometimes exceptions exist:
Fatal Exception: java.lang.IllegalArgumentException
Cannot set 'scaleX' to Float.NaN

Latest version of library

Last device: TECNO SPARK Go 2022 on Android 11

Orientation: Landscape

Stack Trace:
android.view.View.sanitizeFloatPropertyValue (View.java:17545)
android.view.View.sanitizeFloatPropertyValue (View.java:17519)
android.view.View.setScaleX (View.java:16888)
com.yuyakaido.android.cardstackview.CardStackLayoutManager.updateScale (CardStackLayoutManager.java:417)
com.yuyakaido.android.cardstackview.CardStackLayoutManager.update (CardStackLayoutManager.java:348)
com.yuyakaido.android.cardstackview.CardStackLayoutManager.onLayoutChildren (CardStackLayoutManager.java:51)
androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:4309)
androidx.recyclerview.widget.RecyclerView.dispatchLayout (RecyclerView.java:4012)
androidx.recyclerview.widget.RecyclerView.onLayout (RecyclerView.java:4578)
CardStackViewEdge.onLayout (CardStackViewEdge.java:40)

@KamiNoYuki
Copy link

Me too:
java.lang.IllegalArgumentException: Cannot set 'scaleX' to Float.NaN at android.view.View.sanitizeFloatPropertyValue(View.java:18259) at android.view.View.sanitizeFloatPropertyValue(View.java:18233) at android.view.View.setScaleX(View.java:17598) at com.yuyakaido.android.cardstackview.CardStackLayoutManager.updateScale(CardStackLayoutManager.java:417) at com.yuyakaido.android.cardstackview.CardStackLayoutManager.update(CardStackLayoutManager.java:348) at com.yuyakaido.android.cardstackview.CardStackLayoutManager.onLayoutChildren(CardStackLayoutManager.java:51) at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4604) at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4307) at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4873) at android.view.View.layout(View.java:23798) at android.view.ViewGroup.layout(ViewGroup.java:6413)
How to fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants