CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.37k stars 879 forks source link

Exception: CameraView black when app started with locked device #511

Open gerdablum opened 5 years ago

gerdablum commented 5 years ago

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Android 9, HMD Global Nokia 7 plus

Steps to Reproduce

If the device is locked and the activity is started from the background (e.g. starting debug from IDE), an exception is thrown in the onStart method. The application is still running but the screen is black.

  1. Lock device
  2. Run app in IDE
  3. Unlock device: screen is black

Expected Behavior

Camera should be visible

Actual Behavior

When device is unlocked the screen is black and you can see the exception in logcat.

Reproducible Demo

error log Activity

Chienpt35 commented 3 years ago

Hello ! I am also facing the same problem, did you find any solution? please show me, thanks