My application cycles through various videos on a continuous loop. Occasionally the videoplayer plugin causes the application to crash. According to crashlytics this has caused 55 crashes in the last 7 days. I'm not sure whats's causing this and I haven't been able to spot any patterns or learn anything useful through debugging.
Do you know what might be causing this issue?
This is running on Android 4.4.2
Fatal Exception: java.lang.IllegalStateException
at android.media.MediaPlayer._setVideoSurface(MediaPlayer.java)
at android.media.MediaPlayer.setDisplay(MediaPlayer.java:715)
at com.moust.cordova.videoplayer.VideoPlayer$2.surfaceCreated(VideoPlayer.java:216)
at android.view.SurfaceView.updateWindow(SurfaceView.java:601)
at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:237)
at android.view.View.dispatchWindowVisibilityChanged(View.java:8004)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1237)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5672)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:772)
at android.view.Choreographer.doCallbacks(Choreographer.java:585)
at android.view.Choreographer.doFrame(Choreographer.java:555)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:758)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
at dalvik.system.NativeStart.main(NativeStart.java)
My application cycles through various videos on a continuous loop. Occasionally the videoplayer plugin causes the application to crash. According to crashlytics this has caused 55 crashes in the last 7 days. I'm not sure whats's causing this and I haven't been able to spot any patterns or learn anything useful through debugging.
Do you know what might be causing this issue?
This is running on Android 4.4.2