Giter Club home page Giter Club logo

doorbell's People

Contributors

abattery avatar atn832 avatar irataxy avatar jdkoren avatar mangini avatar proppy avatar shawngit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doorbell's Issues

Does AndroidThings support USB camera instead of the Camera Module?

Hi,

I am trying to use a USB camera instead of the camera module. But I am getting below error

Is it supported by AndroidThings?

03-17 14:00:41.559 5554-5554/net.sourceforge.opencamera I/CameraManagerGlobal: Connecting to camera service
03-17 14:00:42.208 5554-5554/net.sourceforge.opencamera E/SensorManager: sensor or listener is null
03-17 14:00:42.208 5554-5554/net.sourceforge.opencamera E/SensorManager: sensor or listener is null
03-17 14:00:42.208 5554-5554/net.sourceforge.opencamera W/OrientationEventListener: Cannot detect sensors. Not enabled
03-17 14:00:42.222 5554-5644/net.sourceforge.opencamera E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found
.....
.....
03-17 14:00:42.973 154-154/? I/CameraService: CameraService::connect call (PID -1 "net.sourceforge.opencamera", camera ID 0) for HAL version default and Camera API version 1
03-17 14:00:42.973 154-154/? E/CameraService: CameraService::connect X (PID 5554) rejected (invalid camera ID 0)
03-17 14:00:42.974 5554-5554/net.sourceforge.opencamera W/CameraBase: An error occurred while connecting to camera 0: Service not available
03-17 14:00:42.975 5554-5554/net.sourceforge.opencamera W/System.err: java.lang.RuntimeException: Fail to connect to camera service
03-17 14:00:42.976 5554-5554/net.sourceforge.opencamera W/System.err: at android.hardware.Camera.(Camera.java:496)
03-17 14:00:42.976 5554-5554/net.sourceforge.opencamera W/System.err: at android.hardware.Camera.open(Camera.java:345)
03-17 14:00:42.977 5554-5554/net.sourceforge.opencamera W/System.err: at net.sourceforge.opencamera.CameraController.CameraController1.(CameraController1.java:46)
Thanks

Manually grant camera permissions

Hi there,
I am running this sample, but I had to manually grant the camera permission as I was getting the "No Permission" error on DoorbellActivity.

adb shell pm grant com.example.androidthings.doorbell android.permission.CAMERA

Do you perhaps know why permission was not granted at install time? After granting the permission the sample worked for me.

Take Video/Audio from Camera/MIC and create hangout call ?

Hello,

I am working on this code, I want to know if its possible to capture Video/Audio from Camera/MIC and create hangout/Duo call, so if someone rings the bell, owner gets the call directly on his hangout/Duo from pi ?

is it possible with Android-things ?

Companion App OutOfMemoryException

Hi,

@jdkoren as you advised here is the full error log.

Error happens when taken pictures increased on firebase.

Device : Nexus 10
OS : 5.1.1 (LMY49J)

firebaseView.png

12-28 08:55:21.179 24037-24078/com.example.androidthings.doorbell E/art: Throwing OutOfMemoryError "Failed to allocate a 28701016 byte allocation with 16777216 free bytes and 23MB until OOM"
12-28 08:55:21.191 24037-24078/com.example.androidthings.doorbell E/RunLoop: Uncaught exception in Firebase runloop (3.0.0). Please report to support@firebase.com
                                                                             java.lang.OutOfMemoryError: Failed to allocate a 28701016 byte allocation with 16777216 free bytes and 23MB until OOM
                                                                                 at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
                                                                                 at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:146)
                                                                                 at java.lang.StringBuilder.append(StringBuilder.java:216)
                                                                                 at bqf.toString(:com.google.android.gms.DynamiteModulesC:46)
                                                                                 at bok.b(:com.google.android.gms.DynamiteModulesC:222)
                                                                                 at bok.a(:com.google.android.gms.DynamiteModulesC:266)
                                                                                 at bor.run(:com.google.android.gms.DynamiteModulesC:1021)
                                                                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
                                                                                 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
                                                                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
                                                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                 at java.lang.Thread.run(Thread.java:818)
12-28 08:55:21.192 24037-24078/com.example.androidthings.doorbell E/RunLoop: Uncaught exception in Firebase runloop (3.0.0). Please report to support@firebase.com
                                                                             java.lang.IllegalStateException: Trying to add string after reading
                                                                                 at bok.b(:com.google.android.gms.DynamiteModulesC:8028)
                                                                                 at bok.a(:com.google.android.gms.DynamiteModulesC:266)
                                                                                 at bor.run(:com.google.android.gms.DynamiteModulesC:1021)
                                                                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
                                                                                 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
                                                                                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
                                                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                 at java.lang.Thread.run(Thread.java:818)
12-28 08:55:21.192 24037-24037/com.example.androidthings.doorbell D/AndroidRuntime: Shutting down VM
12-28 08:55:21.194 24037-24037/com.example.androidthings.doorbell E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                    Process: com.example.androidthings.doorbell, PID: 24037
                                                                                    java.lang.RuntimeException: Uncaught exception in Firebase runloop (3.0.0). Please report to support@firebase.com
                                                                                        at com.google.android.gms.internal.zzagc$1$1.run(Unknown Source)
                                                                                        at android.os.Handler.handleCallback(Handler.java:739)
                                                                                        at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                        at android.os.Looper.loop(Looper.java:135)
                                                                                        at android.app.ActivityThread.main(ActivityThread.java:5254)
                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                        at java.lang.reflect.Method.invoke(Method.java:372)
                                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
                                                                                     Caused by: java.lang.OutOfMemoryError: Failed to allocate a 28701016 byte allocation with 16777216 free bytes and 23MB until OOM
                                                                                        at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
                                                                                        at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:146)
                                                                                        at java.lang.StringBuilder.append(StringBuilder.java:216)
                                                                                        at bqf.toString(:com.google.android.gms.DynamiteModulesC:46)
                                                                                        at bok.b(:com.google.android.gms.DynamiteModulesC:222)
                                                                                        at bok.a(:com.google.android.gms.DynamiteModulesC:266)
                                                                                        at bor.run(:com.google.android.gms.DynamiteModulesC:1021)
                                                                                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
                                                                                        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
                                                                                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
                                                                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                        at java.lang.Thread.run(Thread.java:818)```

Facing some errors while trying to run the project!

Below is the error that I get when I try to run the app through adb on Raspberry Pi. I have setup Firebase Storage and Database and have linked with valid Cloud Vision API Please help!

05-05 02:56:24.863 2011-2011/? I/main: type=1400 audit(0.0:302): avc: denied { write } for name="trace_marker" dev="tracefs" ino=47 scontext=u:r:zygote:s0 tcontext=u:object_r:debugfs_tracing:s0 tclass=file permissive=1
05-05 02:56:24.863 2011-2011/? I/main: type=1400 audit(0.0:303): avc: denied { open } for path="/sys/kernel/debug/tracing/trace_marker" dev="tracefs" ino=47 scontext=u:r:zygote:s0 tcontext=u:object_r:debugfs_tracing:s0 tclass=file permissive=1
05-05 02:56:24.929 2011-2011/? I/zygote: Late-enabling -Xcheck:jni
05-05 02:56:25.469 2011-2011/com.example.androidthings.doorbell D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-05 02:56:25.472 2011-2011/com.example.androidthings.doorbell D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
05-05 02:56:25.524 2011-2011/com.example.androidthings.doorbell V/FA: Registered activity lifecycle callback
05-05 02:56:25.528 2011-2011/com.example.androidthings.doorbell I/FirebaseInitProvider: FirebaseApp initialization successful
05-05 02:56:25.588 2011-2011/com.example.androidthings.doorbell V/FA: onActivityCreated
05-05 02:56:25.588 2011-2029/com.example.androidthings.doorbell V/FA: Collection enabled
05-05 02:56:25.588 2011-2011/com.example.androidthings.doorbell D/DoorbellActivity: Doorbell Activity created.
05-05 02:56:25.589 2011-2029/com.example.androidthings.doorbell V/FA: App package, google app id: com.example.androidthings.doorbell, 1:177234919081:android:4f07b2fb8c4ffde8
05-05 02:56:25.591 2011-2029/com.example.androidthings.doorbell I/FA: App measurement is starting up, version: 12451
05-05 02:56:25.591 2011-2029/com.example.androidthings.doorbell I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
05-05 02:56:25.592 2011-2029/com.example.androidthings.doorbell I/FA: Faster debug mode event logging enabled. To disable, run:
                                                                        adb shell setprop debug.firebase.analytics.app .none.
05-05 02:56:25.592 2011-2029/com.example.androidthings.doorbell D/FA: Debug-level message logging enabled
05-05 02:56:25.602 2011-2029/com.example.androidthings.doorbell V/FA: Cancelling job. JobID: -1475060296
05-05 02:56:25.716 2011-2011/com.example.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service
05-05 02:56:25.720 2011-2011/com.example.androidthings.doorbell D/DoorbellCamera: Using camera id 0
05-05 02:56:25.757 2011-2032/com.example.androidthings.doorbell D/DoorbellCamera: Opened camera.
05-05 02:56:25.904 2011-2029/com.example.androidthings.doorbell V/FA: Connecting to remote service
05-05 02:56:25.941 2011-2029/com.example.androidthings.doorbell V/FA: Connection attempt already in progress
05-05 02:56:25.988 2011-2029/com.example.androidthings.doorbell I/FA: Tag Manager is not found and thus will not be used
05-05 02:56:26.007 2011-2029/com.example.androidthings.doorbell D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=DoorbellActivity, firebase_screen_id(_si)=3740369590222416192}]
05-05 02:56:26.120 2011-2029/com.example.androidthings.doorbell V/FA: Connection attempt already in progress
05-05 02:56:26.122 2011-2029/com.example.androidthings.doorbell V/FA: Connection attempt already in progress
05-05 02:56:26.126 2011-2029/com.example.androidthings.doorbell V/FA: Activity resumed, time: 4780424
05-05 02:56:26.172 2011-2011/com.example.androidthings.doorbell D/vndksupport: Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
05-05 02:56:26.237 2011-2029/com.example.androidthings.doorbell D/FA: Connected to remote service
05-05 02:56:26.238 2011-2029/com.example.androidthings.doorbell V/FA: Processing queued up service tasks: 4
05-05 02:56:31.506 2011-2029/com.example.androidthings.doorbell V/FA: Inactivity, disconnecting from the service
05-05 02:56:36.136 2011-2029/com.example.androidthings.doorbell V/FA: Session started, time: 4790576
05-05 02:56:36.150 2011-2029/com.example.androidthings.doorbell D/FA: Logging event (FE): session_start(_s), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=DoorbellActivity, firebase_screen_id(_si)=3740369590222416192}]
05-05 02:56:36.198 2011-2029/com.example.androidthings.doorbell V/FA: Connecting to remote service
05-05 02:56:36.207 2011-2029/com.example.androidthings.doorbell D/FA: Connected to remote service
05-05 02:56:36.209 2011-2029/com.example.androidthings.doorbell V/FA: Processing queued up service tasks: 1
05-05 02:56:41.267 2011-2029/com.example.androidthings.doorbell V/FA: Inactivity, disconnecting from the service

Version and Error:Failed to resolve: org.apache.httpcomponents:httpclient:4.0.1

Hi,
I add patch for this project. solved problem for:

Error:Failed to resolve: org.apache.httpcomponents:httpclient:4.0.1
`
diff --git a/app/build.gradle b/app/build.gradle
index 75f550f..e20c8d8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -2,11 +2,11 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 25

  • buildToolsVersion '25.0.2'
  • buildToolsVersion '25.0.3'

    defaultConfig {
    applicationId "com.example.androidthings.doorbell"

  •    minSdkVersion 24
    
  •    minSdkVersion 25
       targetSdkVersion 25
       versionCode 1
       versionName "1.0"
    

@@ -17,12 +17,16 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
+

  • configurations {
  •    compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
    
  • }
    }

dependencies {
provided 'com.google.android.things:androidthings:0.4-devpreview'

  • compile 'com.google.firebase:firebase-core:9.4.0'
  • compile 'com.google.firebase:firebase-database:9.4.0'
  • compile 'com.google.firebase:firebase-core:11.0.2'

  • compile 'com.google.firebase:firebase-database:11.0.2'
    compile 'com.google.android.things.contrib:driver-button:0.3'

    compile 'com.google.apis:google-api-services-vision:v1-rev22-1.22.0'
    diff --git a/build.gradle b/build.gradle
    index 5df58af..099e901 100644
    --- a/build.gradle
    +++ b/build.gradle
    @@ -5,8 +5,8 @@ buildscript {
    jcenter()
    }
    dependencies {

  •    classpath 'com.android.tools.build:gradle:2.3.0'
    
  •    classpath 'com.google.gms:google-services:3.0.0'
    
  •    classpath 'com.android.tools.build:gradle:3.0.0-alpha5'
    
  •    classpath 'com.google.gms:google-services:3.1.0'
    
       // NOTE: Do not place your application dependencies here; they belong
       // in the individual module build.gradle files
    

@@ -16,6 +16,9 @@ buildscript {
allprojects {
repositories {
jcenter()

  •    maven {
    
  •        url "https://maven.google.com"
    
  •    }
    
    }
    }

diff --git a/companionApp/build.gradle b/companionApp/build.gradle
index 39a52f1..4f29eb9 100644
--- a/companionApp/build.gradle
+++ b/companionApp/build.gradle
@@ -21,11 +21,11 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

  • compile 'com.google.firebase:firebase-core:9.4.0'
  • compile 'com.google.firebase:firebase-database:9.4.0'
  • compile 'com.firebaseui:firebase-ui-database:0.5.3'
  • compile 'com.android.support:recyclerview-v7:25.0.1'
  • compile 'com.android.support:appcompat-v7:25.0.1'
  • compile 'com.google.firebase:firebase-core:11.0.2'
  • compile 'com.google.firebase:firebase-database:11.0.2'
  • compile 'com.firebaseui:firebase-ui-database:1.2.0'
  • compile 'com.android.support:recyclerview-v7:25.4.0'
  • compile 'com.android.support:appcompat-v7:25.4.0'
    }

apply plugin: 'com.google.gms.google-services'
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 9bf7a5d..4cb1561 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Thu Sep 08 16:22:16 PDT 2016
+#Wed Jul 19 22:21:05 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
+distributionUrl=https://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
`

Unable to get advertising id

Hello Mangini,

While running this demo on my respberry PI, I run into error like the following:

01-01 00:11:00.830 5672-5672/com.harman.androidthings.doorbell I/CameraManagerGlobal: Connecting to camera service
01-01 00:11:00.835 5672-5672/com.harman.androidthings.doorbell D/DoorbellCamera: Using camera id 0
01-01 00:11:00.853 5672-5723/com.harman.androidthings.doorbell D/DoorbellCamera: Opened camera.
01-01 00:11:00.995 5672-5715/com.harman.androidthings.doorbell I/FA: This instance being marked as an uploader
01-01 00:11:01.122 5672-5715/com.harman.androidthings.doorbell D/FA: Unable to get advertising id: com.google.android.gms.common.GooglePlayServicesNotAvailableException: com.google.android.gms.measurement.internal.zzt.zzlx(Unknown Source)
01-01 00:11:01.253 5672-5732/com.harman.androidthings.doorbell D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 10s

I did some research and find the following relevant post:
adjust/unity_sdk#88

Following the instruction to install play service with android SDK manage tool (using android studio). Clear the project. Rebuild. Install the new apk into respberry PI but still have the same error log.

I also checked on the firebase console, no picture was updated. Even from the android monitor, it was confirmed that button was pushed camera works as expected.

Any suggestion?

Unable to upload to Firebase Storage.

Having this issue: "Local module descriptor class for com.google.android.gms.firebasestorage not found." Using Pico iMX7 with android things dev preview 7.

My Logcat:
03-26 14:48:28.969 1652-1679/com.example.androidthings.doorbell I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:0
03-26 14:48:28.970 1652-1679/com.example.androidthings.doorbell I/DynamiteModule: Selected local version of com.google.android.gms.firebase_database
03-26 14:48:29.159 1652-1692/com.example.androidthings.doorbell W/DynamiteModule: Local module descriptor class for com.google.android.gms.firebasestorage not found.
03-26 14:48:29.160 1652-1692/com.example.androidthings.doorbell I/DynamiteModule: Considering local module com.google.android.gms.firebasestorage:0 and remote module com.google.android.gms.firebasestorage:0
03-26 14:48:29.168 1652-1692/com.example.androidthings.doorbell E/NetworkRqFactoryProxy: NetworkRequestFactoryProxy failed with a RemoteException:
com.google.android.gms.dynamite.DynamiteModule$zzc: No acceptable module found. Local version is 0 and remote version is 0.
at com.google.android.gms.dynamite.DynamiteModule.zza(Unknown Source:176)
at com.google.android.gms.internal.zzewy.(Unknown Source:18)
at com.google.android.gms.internal.zzewy.zzh(Unknown Source:13)
at com.google.firebase.storage.StorageReference.zzcjq(Unknown Source:8)
at com.google.firebase.storage.UploadTask.run(Unknown Source:105)
at com.google.firebase.storage.zzr.run(Unknown Source:2)
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)
03-26 14:48:29.171 1652-1692/com.example.androidthings.doorbell E/UploadTask: Unable to create a network request from metadata
android.os.RemoteException
at com.google.android.gms.internal.zzewy.(Unknown Source:85)
at com.google.android.gms.internal.zzewy.zzh(Unknown Source:13)
at com.google.firebase.storage.StorageReference.zzcjq(Unknown Source:8)
at com.google.firebase.storage.UploadTask.run(Unknown Source:105)
at com.google.firebase.storage.zzr.run(Unknown Source:2)
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)
03-26 14:48:29.171 1652-1692/com.example.androidthings.doorbell E/StorageException: StorageException has occurred.
An unknown error occurred, please check the HTTP result code and inner exception for server response.
Code: -13000 HttpResult: 0
03-26 14:48:29.174 1652-1692/com.example.androidthings.doorbell E/StorageException: null
android.os.RemoteException
at com.google.android.gms.internal.zzewy.(Unknown Source:85)
at com.google.android.gms.internal.zzewy.zzh(Unknown Source:13)
at com.google.firebase.storage.StorageReference.zzcjq(Unknown Source:8)
at com.google.firebase.storage.UploadTask.run(Unknown Source:105)
at com.google.firebase.storage.zzr.run(Unknown Source:2)
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)
03-26 14:48:29.174 1652-1692/com.example.androidthings.doorbell E/StorageException: StorageException has occurred.
An unknown error occurred, please check the HTTP result code and inner exception for server response.
Code: -13000 HttpResult: 0
03-26 14:48:29.175 1652-1652/com.example.androidthings.doorbell W/DoorbellActivity: Unable to upload image to Firebase
03-26 14:48:29.176 1652-1692/com.example.androidthings.doorbell E/StorageException: null
android.os.RemoteException
at com.google.android.gms.internal.zzewy.(Unknown Source:85)
at com.google.android.gms.internal.zzewy.zzh(Unknown Source:13)
at com.google.firebase.storage.StorageReference.zzcjq(Unknown Source:8)
at com.google.firebase.storage.UploadTask.run(Unknown Source:105)
at com.google.firebase.storage.zzr.run(Unknown Source:2)
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)
03-26 14:48:29.239 1652-1693/com.example.androidthings.doorbell D/NetworkSecurityConfig: No Network Security Config specified, using platform default

No cameras found error

Im getting this error

03-05 09:49:29.691 2034-2034/? D/DoorbellActivity: Doorbell Activity created.
03-05 09:49:29.695 2034-2034/? I/CameraManagerGlobal: Connecting to camera service
03-05 09:49:29.698 2034-2034/? D/DoorbellCamera: No cameras found
Im not using breadboard or GPIO just using raspberry pi with android things
Im running this app using raspberry pi3 model B and attached camera to it.
If camera is not getting detected then what is the way to configure it?

will you please help.

Compile error when using android studio 3.0

I create patch for compile this project with android studio 3.0

update library to latest version.
Fix error:failed to resolve: org.apache.httpcomponents:httpclient:4.0.1

diff --git a/app/build.gradle b/app/build.gradle
index 75f550f..e20c8d8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -2,11 +2,11 @@ apply plugin: 'com.android.application'
 
 android {
     compileSdkVersion 25
-    buildToolsVersion '25.0.2'
+    buildToolsVersion '25.0.3'
 
     defaultConfig {
         applicationId "com.example.androidthings.doorbell"
-        minSdkVersion 24
+        minSdkVersion 25
         targetSdkVersion 25
         versionCode 1
         versionName "1.0"
@@ -17,12 +17,16 @@ android {
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         }
     }
+
+    configurations {
+        compile.exclude group: "org.apache.httpcomponents", module: "httpclient"
+    }
 }
 
 dependencies {
     provided 'com.google.android.things:androidthings:0.4-devpreview'
-    compile 'com.google.firebase:firebase-core:9.4.0'
-    compile 'com.google.firebase:firebase-database:9.4.0'
+    compile 'com.google.firebase:firebase-core:11.0.2'
+    compile 'com.google.firebase:firebase-database:11.0.2'
     compile 'com.google.android.things.contrib:driver-button:0.3'
 
     compile 'com.google.apis:google-api-services-vision:v1-rev22-1.22.0'
diff --git a/build.gradle b/build.gradle
index 5df58af..099e901 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,8 +5,8 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:2.3.0'
-        classpath 'com.google.gms:google-services:3.0.0'
+        classpath 'com.android.tools.build:gradle:3.0.0-alpha5'
+        classpath 'com.google.gms:google-services:3.1.0'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
@@ -16,6 +16,9 @@ buildscript {
 allprojects {
     repositories {
         jcenter()
+        maven {
+            url "https://maven.google.com"
+        }
     }
 }
 
diff --git a/companionApp/build.gradle b/companionApp/build.gradle
index 39a52f1..4f29eb9 100644
--- a/companionApp/build.gradle
+++ b/companionApp/build.gradle
@@ -21,11 +21,11 @@ android {
 
 dependencies {
     compile fileTree(dir: 'libs', include: ['*.jar'])
-    compile 'com.google.firebase:firebase-core:9.4.0'
-    compile 'com.google.firebase:firebase-database:9.4.0'
-    compile 'com.firebaseui:firebase-ui-database:0.5.3'
-    compile 'com.android.support:recyclerview-v7:25.0.1'
-    compile 'com.android.support:appcompat-v7:25.0.1'
+    compile 'com.google.firebase:firebase-core:11.0.2'
+    compile 'com.google.firebase:firebase-database:11.0.2'
+    compile 'com.firebaseui:firebase-ui-database:1.2.0'
+    compile 'com.android.support:recyclerview-v7:25.4.0'
+    compile 'com.android.support:appcompat-v7:25.4.0'
 }
 
 apply plugin: 'com.google.gms.google-services'
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 9bf7a5d..4cb1561 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Thu Sep 08 16:22:16 PDT 2016
+#Wed Jul 19 22:21:05 CST 2017
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip

Camera Module issues

I'm using a Raspberry pi camera Rev 1.3. The capture callback is never called.
After further testing, if i set a repeating capture request the callback onCaptureFailed is finally called.
Could this be a problem with my camera or something else?

How to increase heap size?

Hello,
I am trying the doorbell example with raspberry pi 3. The app can only use 11 to 12M memory and it takes more than 3 minutes to show the annotation results.

The log shows that the app hangs up due to gc. Please check the log below:
Could you please suggest how to increate heap size? I have tried android:largeHeap="true" and it doesn't work.

Thanks.

09-11 12:15:00.328 19991-19998/com.example.androidthings.doorbell W/art: Suspending all threads took: 20.589ms
09-11 12:15:14.435 19991-19998/com.example.androidthings.doorbell W/art: Suspending all threads took: 21.605ms
09-11 12:16:12.854 19991-20002/com.example.androidthings.doorbell W/art: Suspending all threads took: 7.349ms
09-11 12:16:12.903 19991-20002/com.example.androidthings.doorbell I/art: Background sticky concurrent mark sweep GC freed 129287(3MB) AllocSpace objects, 0(0B) LOS objects, 33% free, 7MB/11MB, paused 9.014ms total 69.787ms

Read from environment variable for CLOUD_VISION_API_KEY

CLOUD_VISION_API_KEY is coded within the file CloudVisionUtils.java. This is okay for dev I guess but I want to know how to move this value to an environment variable and read the value at runtime. Thanks. Not really an "issue". Rather, looking for guidance.

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

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/[email protected]: 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.