Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Crashed when pressing 'Picture' for second time #8

@thiyagab

Description

@thiyagab

The sample worked flawlessly except for one small bug,

When I am trying to multiple pictures, and while pressing 'picture' it crashed in the second attempt,

The error was,

java.lang.IllegalStateException: maxImages (2) has already been acquired, call #close before acquiring more.
at android.media.ImageReader.acquireNextImage(ImageReader.java:501)
at com.example.ezequiel.camera2.others.Camera2Source$PictureDoneCallback.onImageAvailable(Camera2Source.java:1446)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions