-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Android] LayoutAnimation crashes on certain devices #15698
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
I've got this exception on RN 0.50.4
|
Today got the same issue on RN 0.51.0 it seams that only Android 6.0 is affected. |
FATAL RN 0.51 i use it in constructor as: UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true); and the crash is when dispatch: LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut) stack trace:
|
Same here +1 |
same here +1 |
Is this a bug report?
Yes.
Have you read the Contributing Guidelines?
Yes.
Environment
react-native -v
: 0.47.0node -v
: 8.4.0npm -v
: 5.3.0Then, specify:
Steps to Reproduce
Description:
App crashes on while setting
setLayoutAnimationEnabledExperimental(true)
on certain Android devices. The crash is only seen on devices with the Adreno 330 GPU on Android 5.0+. Examples of devices on which it is crashing are:Note: the app will only crash on a real device with the mentioned GPU. Has not been reported otherwise.
Steps:
setLayoutAnimationEnabledExperimental(true)
LayoutAnimation.easeInEaseOut()
Expected Behavior
Should perform Layout Animations.
Actual Behavior
Crashes with stacktrace:
Fatal Exception: java.lang.IllegalStateException: Unable to create layer for d at android.os.MessageQueue.nativePollOnce(MessageQueue.java) at android.os.MessageQueue.next(MessageQueue.java:143) at android.os.Looper.loop(Looper.java:122) at android.app.ActivityThread.main(ActivityThread.java:5569) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:931) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:726)
Note: Not using
setLayoutAnimationEnabledExperimental
fixes the crash.The text was updated successfully, but these errors were encountered: