Describe the bug
- CameraView version: 2.3.0
- Camera engine used: both
- Reproducible in official demo app: yes
- Device / Android version: OnePlus 6T, API 28
To Reproduce
Steps to reproduce the behavior, possibly in the demo app:
- Open the app.
- App Stays open for a few seconds with black camera screen
- App crashes/exits
Expected behavior
App should open and camera preview should be shown without any issue
Screenshots
https://imgur.com/a/BcZDJQ1
Logs
java.lang.IllegalStateException: Added/removed a FrameProcessor at illegal time. These operations should be done before opening the camera, or before closing it - NOT when it just opened, for example during the onCameraOpened() callback. at com.otaliastudios.cameraview.engine.Camera2Engine$14.run(Camera2Engine.java:1302) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.os.HandlerThread.run(HandlerThread.java:65)
APK
Link to a Github repo where the bug is reproducible.
The same demo application provided in this repository only