androidthings / doorbell

Cloud-based photo doorbell with companion app
Apache License 2.0
296 stars 133 forks source link

Error waiting for HAL to drain: Connection timed out (-110) #19

Closed shubhamgupta96 closed 6 years ago

shubhamgupta96 commented 6 years ago

i don't know what is the problem with the sample doorbell_master project or am i doing something wrong when i press the button to capture image the capture request gets created but when i try to close the session by again pressing the button the camera got stuck and logcat shows error, here is my logcat....

i guess i am facing something because of this. Camera: A new CameraCaptureSession cannot be created with more than one target output surface. Camera: The first request in any CameraCaptureSession always queues two images. This can cause each subsequent CaptureRequest in the same session to return a buffered frame from a previous capture.

04-02 13:31:12.867 1645-1645/? E/MainActivity: Doorbell Activity created. 04-02 13:31:12.990 1645-1645/? E/DoorbellCamera: Using camera id 0 04-02 13:31:13.010 1645-1683/? E/DoorbellCamera: Opened camera. 04-02 13:31:13.183 1645-1645/? E/MainActivity: Doorbell Activity created. 04-02 13:31:13.204 1645-1645/? E/MainActivity: Could not open GPIO pins com.google.android.things.pio.PioException: android.os.ServiceSpecificException: BCM21 is already in use (code 16) at com.google.android.things.pio.GpioImpl.(GpioImpl.java:53) at com.google.android.things.pio.PeripheralManager.openGpio(PeripheralManager.java:189) at com.google.android.things.contrib.driver.button.Button.(Button.java:72) at com.google.android.things.contrib.driver.button.ButtonInputDriver.(ButtonInputDriver.java:48) at com.example.shubham.doorbell_project.MainActivity.initPIO(MainActivity.java:140) at com.example.shubham.doorbell_project.MainActivity.onCreate(MainActivity.java:130) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Activity.performCreate(Activity.java:6991) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by: android.os.ServiceSpecificException: BCM21 is already in use (code 16) at android.os.Parcel.readException(Parcel.java:2018) at android.os.Parcel.readException(Parcel.java:1950) at com.google.android.things.pio.IPeripheralManagerClient$Stub$Proxy.OpenGpio(IPeripheralManagerClient.java:776) at com.google.android.things.pio.GpioImpl.(GpioImpl.java:51) at com.google.android.things.pio.PeripheralManager.openGpio(PeripheralManager.java:189)  at com.google.android.things.contrib.driver.button.Button.(Button.java:72)  at com.google.android.things.contrib.driver.button.ButtonInputDriver.(ButtonInputDriver.java:48)  at com.example.shubham.doorbell_project.MainActivity.initPIO(MainActivity.java:140)  at com.example.shubham.doorbell_project.MainActivity.onCreate(MainActivity.java:130)  at android.app.Activity.performCreate(Activity.java:7000)  at android.app.Activity.performCreate(Activity.java:6991)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)  at android.app.ActivityThread.-wrap11(Unknown Source:0)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:164)  at android.app.ActivityThread.main(ActivityThread.java:6494)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)  04-02 13:31:13.212 1645-1645/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.shubham.doorbell_project, PID: 1645 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.shubham.doorbell_project/com.example.shubham.doorbell_project.MainActivity}: java.lang.IllegalStateException: CameraHandler is already initialized or is initializing at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by: java.lang.IllegalStateException: CameraHandler is already initialized or is initializing at com.example.shubham.doorbell_project.DoorbellCamera.initializeCamera(DoorbellCamera.java:61) at com.example.shubham.doorbell_project.MainActivity.onCreate(MainActivity.java:134) at android.app.Activity.performCreate(Activity.java:7000) at android.app.Activity.performCreate(Activity.java:6991) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)  at android.app.ActivityThread.-wrap11(Unknown Source:0)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:164)  at android.app.ActivityThread.main(ActivityThread.java:6494)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)  04-02 13:31:13.235 169-169/? E/lowmemorykiller: Error writing /proc/1645/oom_score_adj; errno=22 04-02 13:31:13.358 298-360/system_process E/InputDispatcher: channel '7ca5e29 com.example.shubham.doorbell_project/com.example.shubham.doorbell_project.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 04-02 13:31:13.359 192-192/? E//system/bin/userinputdriverservice: [ERROR:real_binder_wrapper.cc(107)] Failed to unregister for death notifications on 0xb23311c0 04-02 13:31:13.370 177-1406/? E/CameraService: binderDied: Java client's binder died, removing it from the list of active clients 04-02 13:31:16.319 298-414/system_process E/TaskPersister: File error accessing recents directory (directory doesn't exist?). 04-02 13:31:16.779 1695-1695/com.example.shubham.doorbell_project E/MainActivity: Doorbell Activity created. 04-02 13:31:16.871 1695-1695/com.example.shubham.doorbell_project E/DoorbellCamera: Using camera id 0 04-02 13:31:16.891 1695-1715/com.example.shubham.doorbell_project E/DoorbellCamera: Opened camera. 04-02 13:31:27.971 1695-1695/com.example.shubham.doorbell_project E/MainActivity: button pressed 04-02 13:31:27.984 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.985 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.986 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.987 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.988 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.989 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.990 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.991 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.992 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.993 1695-1695/com.example.shubham.doorbell_project E/DoorbellCamera: Capture request created. 04-02 13:31:27.999 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:27.999 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.000 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.004 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.005 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.005 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.005 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.005 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:31:28.006 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:32:03.182 1695-1695/com.example.shubham.doorbell_project E/MainActivity: button pressed 04-02 13:32:08.183 177-243/? E/Camera3-Device: Camera 0: waitUntilDrainedLocked: Error waiting for HAL to drain: Connection timed out (-110) 04-02 13:32:08.339 1695-1695/com.example.shubham.doorbell_project E/CameraCaptureSession: Session 1: Failed to create capture session; configuration failed 04-02 13:32:08.341 1695-1715/com.example.shubham.doorbell_project E/DoorbellCamera: Camera device error, closing. 04-02 13:32:08.343 177-177/? E/Camera3-Device: Camera 0: clearStreamingRequest: Device has encountered a serious error 04-02 13:32:08.343 177-177/? E/Camera3-Device: Camera 0: disconnect: Shutting down in an error state 04-02 13:32:08.344 177-177/? E/CamDevSession@3.2-impl: close: trying to close while there are still 1 inflight buffers! 04-02 13:32:08.359 1695-1695/com.example.shubham.doorbell_project E/DoorbellCamera: Cannot create camera capture session android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): waitUntilIdle:1032: Camera 0: Error waiting to drain: Connection timed out (-110) at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:658) at android.hardware.camera2.impl.ICameraDeviceUserWrapper.waitUntilIdle(ICameraDeviceUserWrapper.java:177) at android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle(CameraDeviceImpl.java:1019) at android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(CameraDeviceImpl.java:431) at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(CameraDeviceImpl.java:632) at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSession(CameraDeviceImpl.java:501) at com.example.shubham.doorbell_project.DoorbellCamera.takePicture(DoorbellCamera.java:103) at com.example.shubham.doorbell_project.MainActivity.onKeyUp(MainActivity.java:169) at android.view.KeyEvent.dispatch(KeyEvent.java:2715) at android.app.Activity.dispatchKeyEvent(Activity.java:3273) at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:354) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4733) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4605) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4293) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4350) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4326) at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4487) at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2435) at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1998) at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1989) at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2412) at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:325) at android.os.Looper.loop(Looper.java:142) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by: android.os.ServiceSpecificException: waitUntilIdle:1032: Camera 0: Error waiting to drain: Connection timed out (-110) (code 10) at android.os.Parcel.readException(Parcel.java:2018) at android.os.Parcel.readException(Parcel.java:1950) at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.waitUntilIdle(ICameraDeviceUser.java:564) at android.hardware.camera2.impl.ICameraDeviceUserWrapper.waitUntilIdle(ICameraDeviceUserWrapper.java:175) at android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle(CameraDeviceImpl.java:1019)  at android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(CameraDeviceImpl.java:431)  at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(CameraDeviceImpl.java:632)  at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSession(CameraDeviceImpl.java:501)  at com.example.shubham.doorbell_project.DoorbellCamera.takePicture(DoorbellCamera.java:103)  at com.example.shubham.doorbell_project.MainActivity.onKeyUp(MainActivity.java:169)  at android.view.KeyEvent.dispatch(KeyEvent.java:2715)  at android.app.Activity.dispatchKeyEvent(Activity.java:3273)  at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:354)  at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4733)  at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4605)  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147)  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200)  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166)  at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4293)  at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174)  at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4350)  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147)  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200)  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166)  at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174)  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147)  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200)  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166)  at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4326)  at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4487)  at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2435)  at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1998)  at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1989)  at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2412)  at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)  at android.os.MessageQueue.nativePollOnce(Native Method)  at android.os.MessageQueue.next(MessageQueue.java:325)  at android.os.Looper.loop(Looper.java:142)  at android.app.ActivityThread.main(ActivityThread.java:6494)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)  04-02 13:32:08.360 1695-1695/com.example.shubham.doorbell_project E/DoorbellCamera: Failed to configure camera 04-02 13:32:09.853 177-828/? E/V4L2CameraHAL: DequeueRequest:668: DQBUF fails: Invalid argument 04-02 13:32:09.860 1695-1715/com.example.shubham.doorbell_project E/BufferItemConsumer: [ImageReader-360x240f100m1-1695-0] Failed to release buffer: Unknown error -1 (1) 04-02 13:32:10.058 1695-1715/com.example.shubham.doorbell_project E/DoorbellCamera: Closed camera, releasing 04-02 13:32:10.098 1695-1736/com.example.shubham.doorbell_project E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseApiNotAvailableException: firebase-auth is not linked, please fall back to unauthenticated mode. 04-02 13:32:11.103 1695-1736/com.example.shubham.doorbell_project E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseApiNotAvailableException: firebase-auth is not linked, please fall back to unauthenticated mode. 04-02 13:32:11.660 1695-1736/com.example.shubham.doorbell_project E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.firebase.FirebaseApiNotAvailableException: firebase-auth is not linked, please fall back to unauthenticated mode. 04-02 13:32:13.242 1695-1695/com.example.shubham.doorbell_project E/MainActivity: Image upload successful 04-02 13:32:13.252 1695-1716/com.example.shubham.doorbell_project E/MainActivity: sending image to cloud vision 04-02 13:32:38.364 1695-1716/com.example.shubham.doorbell_project E/MainActivity: Cloud Vison API error: com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request { "code": 400, "errors": [ { "domain": "global", "message": "API key not valid. Please pass a valid API key.", "reason": "badRequest" } ], "message": "API key not valid. Please pass a valid API key.", "status": "INVALID_ARGUMENT" } at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) at com.example.shubham.doorbell_project.CloudVisionUtils.annotateImage(CloudVisionUtils.java:71) at com.example.shubham.doorbell_project.MainActivity$4.run(MainActivity.java:236) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.os.HandlerThread.run(HandlerThread.java:65) 04-02 13:32:43.625 298-965/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 108) 04-02 13:32:43.625 298-965/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 108) 04-02 13:32:43.638 192-192/? E//system/bin/userinputdriverservice: [ERROR:real_binder_wrapper.cc(107)] Failed to unregister for death notifications on 0xb2331200 04-02 13:32:44.667 1749-1749/? E/MainActivity: Doorbell Activity created. 04-02 13:32:44.776 1749-1749/? E/DoorbellCamera: Using camera id 0 04-02 13:32:44.790 1749-1770/? E/DoorbellCamera: Opened camera. 04-02 13:32:47.709 298-414/system_process E/TaskPersister: File error accessing recents directory (directory doesn't exist?). 04-02 13:54:52.579 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: com.google.android.gms.auth_cryptauth java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:54:59.227 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: com.google.android.gms java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:55:04.139 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: com.google.android.gms.autofill java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:55:05.668 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: com.google.android.gms.mdns java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:55:06.028 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: com.google.android.gms.devicedoctor java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:55:06.402 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: alt.com.google.android.gms.devicedoctor java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:55:12.457 707-1882/com.google.android.gms.persistent E/GcmPushIntentOperation: Failed to subscribe to GCM: com.google.android.gms.icing.mdd java.io.IOException: TOO_MANY_SUBSCRIBERS at pxr.b(:com.google.android.gms@11973330:39) at pxr.a(:com.google.android.gms@11973330:46) at pxo.b(:com.google.android.gms@11973330:11) at pxo.a(:com.google.android.gms@11973330:29) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:19) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.a(:com.google.android.gms@11973330:4) at com.google.android.gms.phenotype.gcmpush.GcmPushIntentOperation.onHandleIntent(:com.google.android.gms@11973330:18) at com.google.android.chimera.IntentOperation.onHandleIntent(:com.google.android.gms@11973330:2) at cnu.run(:com.google.android.gms@11973330:10) at cnr.run(:com.google.android.gms@11973330:9) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 04-02 13:56:27.562 298-316/system_process E/BatteryExternalStatsWorker: no controller energy info supplied for wifi 04-02 13:56:27.562 298-316/system_process E/BatteryExternalStatsWorker: no controller energy info supplied for bluetooth 04-02 13:56:27.563 298-316/system_process E/BatteryExternalStatsWorker: no controller energy info supplied for telephony 04-02 13:56:27.565 298-316/system_process E/KernelUidCpuFreqTimeReader: Failed to read /proc/uid_time_in_state: java.io.FileNotFoundException: /proc/uid_time_in_state (No such file or directory) 04-02 13:56:27.566 298-316/system_process E/KernelWakelockReader: neither /proc/wakelocks nor /d/wakeup_sources exists

mangini commented 6 years ago

The doorbell sample uses the Cloud Vision API, and requires a valid API key with a cloud project that has the Vision API enabled. Based on your logcat, it seems that's not the case with your project: 04-02 13:32:13.252 1695-1716/com.example.shubham.doorbell_project E/MainActivity: sending image to cloud vision 04-02 13:32:38.364 1695-1716/com.example.shubham.doorbell_project E/MainActivity: Cloud Vison API error: com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request { "code": 400, "errors": [ { "domain": "global", "message": "API key not valid. Please pass a valid API key.", "reason": "badRequest" } ], "message": "API key not valid. Please pass a valid API key.", "status": "INVALID_ARGUMENT" }

shubhamgupta96 commented 6 years ago

Thanks for your help @mangini but see i don't want even want that part although i have added a valid key still i will check that but the issue is with camera i dont know what's wrong with the code but it is uploading an image on the firebase storage but when i try to open that on firebase it shows error loading the picture.. and why i am getting this HAL error because there is a camera exception

shubhamgupta96 commented 6 years ago

@mangini i am more concerned abut the image and not about the annotation part. Thank you so much for the help

shubhamgupta96 commented 6 years ago

image none of the image is loading

shubhamgupta96 commented 6 years ago

i have fixed the Cloud Key issue but i am still facing the problem. Can anyone help me with this. now the logcat shows me these errors

04-03 09:09:15.321 1529-1529/com.example.shubham.doorbell_project2 D/Doorbell_Activity: button pressed 04-03 09:09:20.322 177-243/? E/Camera3-Device: Camera 0: waitUntilDrainedLocked: Error waiting for HAL to drain: Connection timed out (-110) 04-03 09:09:20.483 177-243/? D/CameraTraces: Process trace saved. Use dumpsys media.camera to view. 04-03 09:09:20.488 1529-1529/com.example.shubham.doorbell_project2 E/CameraCaptureSession: Session 1: Failed to create capture session; configuration failed 04-03 09:09:20.489 1529-1567/com.example.shubham.doorbell_project2 W/zygote: Long monitor contention with owner main (1529) at void android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(android.hardware.camera2.params.InputConfiguration, java.util.List, android.hardware.camera2.CameraCaptureSession$StateCallback, android.os.Handler, int)(CameraDeviceImpl.java:606) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$4.run() for 5.166s 04-03 09:09:20.490 1529-1567/com.example.shubham.doorbell_project2 D/DoorbellCamera: Camera device error, closing. 04-03 09:09:20.495 177-177/? E/Camera3-Device: Camera 0: clearStreamingRequest: Device has encountered a serious error 04-03 09:09:20.495 177-177/? I/Camera3-Device: disconnect: E 04-03 09:09:20.496 177-177/? E/Camera3-Device: Camera 0: disconnect: Shutting down in an error state 04-03 09:09:20.496 177-177/? I/CameraLatencyHistogram: ProcessCaptureRequest latency histogram (1) samples: 04-03 09:09:20.496 177-177/? I/CameraLatencyHistogram: 40 80 120 160 200 240 280 320 360 inf (max ms) 04-03 09:09:20.496 177-177/? I/CameraLatencyHistogram: 100.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 (%) 04-03 09:09:20.496 177-177/? E/CamDevSession@3.2-impl: close: trying to close while there are still 1 inflight buffers! 04-03 09:09:20.496 177-177/? I/Camera: close:0: Closing camera device 04-03 09:09:20.496 177-177/? W/Camera3-Device: notify: received notify message in error state. 04-03 09:09:20.496 177-177/? W/Camera3-Device: processCaptureResult: received capture result in error state. 04-03 09:09:20.503 1529-1529/com.example.shubham.doorbell_project2 E/DoorbellCamera: access exception while preparing pic android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): waitUntilIdle:1032: Camera 0: Error waiting to drain: Connection timed out (-110) at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:658) at android.hardware.camera2.impl.ICameraDeviceUserWrapper.waitUntilIdle(ICameraDeviceUserWrapper.java:177) at android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle(CameraDeviceImpl.java:1019) at android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(CameraDeviceImpl.java:431) at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(CameraDeviceImpl.java:632) at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSession(CameraDeviceImpl.java:501) at com.example.shubham.doorbell_project2.DoorbellCamera.takePicture(DoorbellCamera.java:133) at com.example.shubham.doorbell_project2.Doorbell_Activity.onKeyUp(Doorbell_Activity.java:134) at android.view.KeyEvent.dispatch(KeyEvent.java:2715) at android.app.Activity.dispatchKeyEvent(Activity.java:3273) at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:354) at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4733) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4605) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4293) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4350) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4326) at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4487) at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2435) at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1998) at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1989) at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2412) at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:325) at android.os.Looper.loop(Looper.java:142) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by: android.os.ServiceSpecificException: waitUntilIdle:1032: Camera 0: Error waiting to drain: Connection timed out (-110) (code 10) at android.os.Parcel.readException(Parcel.java:2018) at android.os.Parcel.readException(Parcel.java:1950) at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.waitUntilIdle(ICameraDeviceUser.java:564) at android.hardware.camera2.impl.ICameraDeviceUserWrapper.waitUntilIdle(ICameraDeviceUserWrapper.java:175) at android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle(CameraDeviceImpl.java:1019)  at android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(CameraDeviceImpl.java:431)  at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(CameraDeviceImpl.java:632)  at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSession(CameraDeviceImpl.java:501)  at com.example.shubham.doorbell_project2.DoorbellCamera.takePicture(DoorbellCamera.java:133)  at com.example.shubham.doorbell_project2.Doorbell_Activity.onKeyUp(Doorbell_Activity.java:134)  at android.view.KeyEvent.dispatch(KeyEvent.java:2715)  at android.app.Activity.dispatchKeyEvent(Activity.java:3273)  at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:354)  at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4733)  at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4605)  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147)  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200)  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166)  at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4293)  at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174)  at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4350)  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147)  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200)  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166)  at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4174)  at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4147)  at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4200)  at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4166)  at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4326)  at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4487)  at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2435)  at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1998)  at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1989)  at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2412)  at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)  at android.os.MessageQueue.nativePollOnce(Native Method)  at android.os.MessageQueue.next(MessageQueue.java:325)  at android.os.Looper.loop(Looper.java:142)  at android.app.ActivityThread.main(ActivityThread.java:6494)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)  04-03 09:09:20.504 298-361/system_process I/InputDispatcher: Window 'Window{19ba90f u0 com.example.shubham.doorbell_project2/com.example.shubham.doorbell_project2.Doorbell_Activity}' spent 5184.1ms processing the last input event: KeyEvent(deviceId=2, source=0x00000101, action=1, flags=0x00000008, keyCode=66, scanCode=28, metaState=0x00000000, repeatCount=0), policyFlags=0x62000000 04-03 09:09:20.504 1529-1529/com.example.shubham.doorbell_project2 E/DoorbellCamera: Failed to configure camera 04-03 09:09:22.010 177-177/? I/CameraLatencyHistogram: Stream 0 dequeueBuffer latency histogram (1) samples: 04-03 09:09:22.010 177-177/? I/CameraLatencyHistogram: 5 10 15 20 25 30 35 40 45 inf (max ms) 04-03 09:09:22.010 177-177/? I/CameraLatencyHistogram: 0.00 0.00 100.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 (%) 04-03 09:09:22.010 177-177/? I/Camera3-Device: disconnect: X 04-03 09:09:22.010 177-177/? I/Camera3-Device: disconnect: E 04-03 09:09:22.011 177-844/? E/V4L2CameraHAL: IoctlLocked:134: Device /dev/video0 not connected. 04-03 09:09:22.013 177-177/? I/CameraService: disconnect: Disconnected client for camera 0 for PID 1529 04-03 09:09:22.014 1529-1567/com.example.shubham.doorbell_project2 W/AndroidMediaUtils: Image_getJpegSize: No JPEG header detected, defaulting to size=width=381690 04-03 09:09:22.014 1529-1542/com.example.shubham.doorbell_project2 W/zygote: Long monitor contention with owner CameraBackground (1567) at void android.hardware.camera2.impl.CameraDeviceImpl.close()(CameraDeviceImpl.java:1046) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(int, android.hardware.camera2.impl.CaptureResultExtras) for 1.516s 04-03 09:09:22.016 1529-1567/com.example.shubham.doorbell_project2 E/BufferItemConsumer: [ImageReader-320x240f100m1-1529-1] Failed to release buffer: Unknown error -1 (1)

daedroza commented 6 years ago

Obviously there is a issue with Camera. It clearly says to use

adb shell dumpsys media.camera

For logging process back trace for debugging.

mangini commented 6 years ago

Your camera hardware or connection most likely have an issue. Can you try other samples that work with the camera, like the https://github.com/androidthings/sample-tensorflow-imageclassifier ?

I will close this bug for now, but if you check your hardware and it seems that the problem is indeed the sample, please reopen with which board and which camera module you're using, and the output of "adb shell dumpsys media.camera".