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 use orientationEventListener and on change orientation i rotate the layout and change gravity
whenever i start video snapshots and change orientation simultaneously then getting this crashed
Exception VideoEncoder
Process: com.video.timestamp, PID: 9234
java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:434)
at android.view.ViewGroup.getAndVerifyPreorderedView(ViewGroup.java:3816)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4362)
at android.view.View.draw(View.java:23469)
at android.view.View.draw(View.java:23323)
at android.view.ViewGroup.drawChild(ViewGroup.java:4615)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4368)
at android.view.View.draw(View.java:23469)
at android.view.View.draw(View.java:23323)
at android.view.ViewGroup.drawChild(ViewGroup.java:4615)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4368)
at android.view.View.draw(View.java:23321)
at android.view.ViewGroup.drawChild(ViewGroup.java:4615)
at com.otaliastudios.cameraview.overlay.OverlayLayout.doDrawChild(OverlayLayout.java:180)
at com.otaliastudios.cameraview.overlay.OverlayLayout.drawChild(OverlayLayout.java:169)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4368)
at com.otaliastudios.cameraview.overlay.OverlayLayout.drawOn(OverlayLayout.java:151)
at com.otaliastudios.cameraview.overlay.OverlayDrawer.draw(OverlayDrawer.java:74)
at com.otaliastudios.cameraview.video.encoding.TextureMediaEncoder.onFrame(TextureMediaEncoder.java:218)
at com.otaliastudios.cameraview.video.encoding.TextureMediaEncoder.onEvent(TextureMediaEncoder.java:146)
at com.otaliastudios.cameraview.video.encoding.MediaEncoder$3.run(MediaEncoder.java:244)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.os.HandlerThread.run(HandlerThread.java:67)
The text was updated successfully, but these errors were encountered:
I use orientationEventListener and on change orientation i rotate the layout and change gravity
whenever i start video snapshots and change orientation simultaneously then getting this crashed
Exception VideoEncoder
Process: com.video.timestamp, PID: 9234
java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:434)
at android.view.ViewGroup.getAndVerifyPreorderedView(ViewGroup.java:3816)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4362)
at android.view.View.draw(View.java:23469)
at android.view.View.draw(View.java:23323)
at android.view.ViewGroup.drawChild(ViewGroup.java:4615)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4368)
at android.view.View.draw(View.java:23469)
at android.view.View.draw(View.java:23323)
at android.view.ViewGroup.drawChild(ViewGroup.java:4615)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4368)
at android.view.View.draw(View.java:23321)
at android.view.ViewGroup.drawChild(ViewGroup.java:4615)
at com.otaliastudios.cameraview.overlay.OverlayLayout.doDrawChild(OverlayLayout.java:180)
at com.otaliastudios.cameraview.overlay.OverlayLayout.drawChild(OverlayLayout.java:169)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4368)
at com.otaliastudios.cameraview.overlay.OverlayLayout.drawOn(OverlayLayout.java:151)
at com.otaliastudios.cameraview.overlay.OverlayDrawer.draw(OverlayDrawer.java:74)
at com.otaliastudios.cameraview.video.encoding.TextureMediaEncoder.onFrame(TextureMediaEncoder.java:218)
at com.otaliastudios.cameraview.video.encoding.TextureMediaEncoder.onEvent(TextureMediaEncoder.java:146)
at com.otaliastudios.cameraview.video.encoding.MediaEncoder$3.run(MediaEncoder.java:244)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.os.HandlerThread.run(HandlerThread.java:67)
The text was updated successfully, but these errors were encountered: