-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
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.0
Then, specify:
- Target Platform: Android
- Development Operating System: macOS 10.12.6
- Build tools: 23.0.1
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:
- Samsung Galaxy S5
- One Plus One
- Nexus 5
- HTC One M8
- LG G2/G3
- Sony Xperia Z2/Z3
Note: the app will only crash on a real device with the mentioned GPU. Has not been reported otherwise.
Steps:
setLayoutAnimationEnabledExperimental(true)
LayoutAnimation.easeInEaseOut()
- Render view
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.