You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed from our Sentry that one of the Android test track users with Nexus 5X / Android 6.0.1 had gotten a NullPointerException from ExoPlayer.
I have used 5 different Android devices (e.g. Galaxy A5, OnePlus 3T) to test the video playback, and it has been working just fine on them.
I don't have the Nexus 5X device myself, so I'm not able to verify the crash happening.
Here's the stacktrace:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at com.google.android.exoplayer2.util.Util.getUserAgent(Util.java:1101)
at com.brentvatne.exoplayer.DataSourceUtil.getUserAgent(DataSourceUtil.java:38)
at com.brentvatne.exoplayer.DataSourceUtil.buildHttpDataSourceFactory(DataSourceUtil.java:80)
at com.brentvatne.exoplayer.DataSourceUtil.buildDataSourceFactory(DataSourceUtil.java:72)
at com.brentvatne.exoplayer.DataSourceUtil.getDefaultDataSourceFactory(DataSourceUtil.java:57)
at com.brentvatne.exoplayer.ReactExoplayerView.buildDataSourceFactory(ReactExoplayerView.java:542)
at com.brentvatne.exoplayer.ReactExoplayerView.createViews(ReactExoplayerView.java:198)
at com.brentvatne.exoplayer.ReactExoplayerView.<init>(ReactExoplayerView.java:180)
at com.brentvatne.exoplayer.ReactExoplayerViewManager.createViewInstance(ReactExoplayerViewManager.java:70)
at com.brentvatne.exoplayer.ReactExoplayerViewManager.createViewInstance(ReactExoplayerViewManager.java:22)
at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:45)
at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:260)
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:110)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
at android.view.Choreographer.doCallbacks(Choreographer.java:670)
at android.view.Choreographer.doFrame(Choreographer.java:603)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
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:5421)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
This is the error that the Google Play Bot returns when adding a new version of the application to the Play Store.
For some reason, Google uses a rooted simulator for scanning which has a trash in its internal libraries.
@ku8ar So you are saying it is only related to their simulators? I'm also seeing these crashes in sentry from the test lab bots. Works on two devices I tested so far.
@happyfloat Yes, only bots. But I have a theory that this crash is causing the longer publishing time for app in the Play Store (but I can't prove it).
Bug
I noticed from our Sentry that one of the Android test track users with Nexus 5X / Android 6.0.1 had gotten a
NullPointerException
from ExoPlayer.I have used 5 different Android devices (e.g. Galaxy A5, OnePlus 3T) to test the video playback, and it has been working just fine on them.
I don't have the Nexus 5X device myself, so I'm not able to verify the crash happening.
Here's the stacktrace:
Environment info
React native info output:
Library version: 4.4.1
Device info from Sentry:
Steps To Reproduce
.mp4
file withreact-native-video
on Nexus 5X (MTC20F) / Android 6.0.1Reproducible sample code
The text was updated successfully, but these errors were encountered: