Skip to content

Demo application crashes with java.lang.IllegalStateException: Added/removed a FrameProcessor at illegal time. #628

@avinashs24

Description

@avinashs24

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:

  1. Open the app.
  2. App Stays open for a few seconds with black camera screen
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions