Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashed while taking video snapshot #1278

Open
JaydeepSinroja opened this issue May 15, 2024 · 0 comments
Open

App crashed while taking video snapshot #1278

JaydeepSinroja opened this issue May 15, 2024 · 0 comments

Comments

@JaydeepSinroja
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant