Open fahmi-f7 opened 4 years ago
The same problem only happened on Android 6.0.1, Other phones do not have this error
react-native: 0.61
Android
java.lang.NullPointerException: Attempt to write to field 'java.util.ArrayList android.animation.AnimatorSet$Node.nodeDependents' on a null object reference
at android.animation.AnimatorSet.clone(AnimatorSet.java:700)
at android.animation.AnimatorSet.clone(AnimatorSet.java:51)
at android.animation.Animator$AnimatorConstantState.newInstance(Animator.java:562)
at android.animation.Animator$AnimatorConstantState.newInstance(Animator.java:543)
at android.content.res.ConstantState.newInstance(ConstantState.java:51)
at android.content.res.ConstantState.newInstance(ConstantState.java:59)
at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:133)
at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState$PendingAnimator.newInstance(AnimatedVectorDrawable.java:567)
at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState.inflatePendingAnimators(AnimatedVectorDrawable.java:545)
at android.graphics.drawable.AnimatedVectorDrawable.applyTheme(AnimatedVectorDrawable.java:377)
at android.graphics.drawable.DrawableContainer$DrawableContainerState.applyTheme(DrawableContainer.java:865)
at android.graphics.drawable.DrawableContainer.applyTheme(DrawableContainer.java:577)
at android.graphics.drawable.StateListDrawable.applyTheme(StateListDrawable.java:370)
at android.graphics.drawable.AnimatedStateListDrawable.applyTheme(AnimatedStateListDrawable.java:391)
at android.content.res.Resources.loadDrawable(Resources.java:2615)
at android.content.res.VivoResources.loadDrawable(VivoResources.java:220)
at android.content.res.TypedArray.getDrawable(TypedArray.java:870)
at android.widget.AbsSeekBar.<init>(AbsSeekBar.java:95)
at android.widget.SeekBar.<init>(SeekBar.java:85)
at android.widget.SeekBar.<init>(SeekBar.java:81)
at androidx.appcompat.widget.AppCompatSeekBar.<init>(AppCompatSeekBar.java:47)
at com.reactnativecommunity.slider.ReactSlider.<init>(ReactSlider.java:68)
at com.reactnativecommunity.slider.ReactSliderManager.createViewInstance(ReactSliderManager.java:129)
at com.reactnativecommunity.slider.ReactSliderManager.createViewInstance(ReactSliderManager.java:40)
at com.facebook.react.uimanager.ViewManager.createViewInstance(ViewManager.java:139)
at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:82)
at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:269)
at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute(UIViewOperationQueue.java:179)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.dispatchPendingNonBatchedOperations(UIViewOperationQueue.java:972)
at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:943)
at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:28)
at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:174)
at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:84)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:890)
at android.view.Choreographer.doCallbacks(Choreographer.java:704)
at android.view.Choreographer.doFrame(Choreographer.java:637)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:878)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5619)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:737)
Hello, I would like to report an issue on Android. Please find below for the details:
react-native-af-video-player version: 0.2.1
React Native version: 0.59.10
OS: Android
Has this issue already been raised? No
Have you clearly read and understood the Readme? Yes
Code and explanation to replicate this issue: Random crash on Android release version only (debug is fine, iOS is fine on both debug and release). https://github.com/facebook/react-native/issues/9979 It is suggested to use react-native-community/react-native-slider instead of React Native Slider. It would be great if this module is updated too.
Are there any console logs?
java.lang.NullPointerException: Attempt to write to field 'java.util.ArrayList android.animation.AnimatorSet$Node.nodeDependents' on a null object reference at android.animation.AnimatorSet.clone(AnimatorSet.java:700) at android.animation.AnimatorSet.clone(AnimatorSet.java:51) at android.animation.Animator$AnimatorConstantState.newInstance(Animator.java:562) at android.animation.Animator$AnimatorConstantState.newInstance(Animator.java:543) at android.content.res.ConstantState.newInstance(ConstantState.java:51) at android.content.res.ConstantState.newInstance(ConstantState.java:59) at android.content.res.ConfigurationBoundResourceCache.getInstance(ConfigurationBoundResourceCache.java:48) at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:111) at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState$PendingAnimator.newInstance(AnimatedVectorDrawable.java:567) at android.graphics.drawable.AnimatedVectorDrawable$AnimatedVectorDrawableState.inflatePendingAnimators(AnimatedVectorDrawable.java:545) at android.graphics.drawable.AnimatedVectorDrawable.applyTheme(AnimatedVectorDrawable.java:377) at android.graphics.drawable.DrawableContainer$DrawableContainerState.applyTheme(DrawableContainer.java:865) at android.graphics.drawable.DrawableContainer.applyTheme(DrawableContainer.java:577) at android.graphics.drawable.StateListDrawable.applyTheme(StateListDrawable.java:370) at android.graphics.drawable.AnimatedStateListDrawable.applyTheme(AnimatedStateListDrawable.java:391) at android.content.res.Resources.loadDrawable(Resources.java:4094) at android.content.res.Resources.loadDrawable(Resources.java:3935) at android.content.res.TypedArray.getDrawable(TypedArray.java:886) at android.widget.AbsSeekBar.<init>(AbsSeekBar.java:189) at android.widget.SeekBar.<init>(SeekBar.java:85) at android.widget.SeekBar.<init>(SeekBar.java:81) at android.support.v7.widget.AppCompatSeekBar.<init>(AppCompatSeekBar.java:47) at com.facebook.react.views.slider.ReactSlider.<init>(ReactSlider.java:51) at com.facebook.react.views.slider.ReactSliderManager.createViewInstance(ReactSliderManager.java:123) at com.facebook.react.views.slider.ReactSliderManager.createViewInstance(ReactSliderManager.java:37) at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:47) at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:256) at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute(UIViewOperationQueue.java:200) at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.dispatchPendingNonBatchedOperations(UIViewOperationQueue.java:1109) at com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:1080) at com.facebook.react.uimanager.GuardedFrameCallback.doFrame(GuardedFrameCallback.java:29) at com.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:166) at com.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1.doFrame(ChoreographerCompat.java:84) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:918) at android.view.Choreographer.doCallbacks(Choreographer.java:695) at android.view.Choreographer.doFrame(Choreographer.java:628) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Include Screeshots / Video: Not available
Thanks.