androidthings / doorbell

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

Facing some errors while trying to run the project! #21

Open avleensingh opened 6 years ago

avleensingh commented 6 years ago

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/android.hardware.graphics.mapper@2.0-impl.so 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
Fleker commented 6 years ago

I don't see any errors in this stacktrace.

avleensingh commented 6 years ago

Hello,

I have setup a firebase project and provided the google-services.json file in my project in Android Studio. Also, I have set up GCP with CloudVision API enabled and entered the API key in CloudVisionUtils.java file. I also have the circuit ready and I have tested the hardware with Raspberry pi and camera module connected and working. But, I get this output when I run the app through Android Studio via ADB command line and no data in Firebase Storage neither any traffic in Cloudvision API. Also, I cannot detect the button click.

Is there anything else that I need to setup? like Google Tag Manager account apart from Firebase Storage?

Please help.

Thanks Avleen

On Sat, May 5, 2018 at 1:48 PM, Nick notifications@github.com wrote:

I don't see any errors in this stacktrace.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/androidthings/doorbell/issues/21#issuecomment-386833806, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad6LDRynyiVwJsjRRF2VzYSCzsIRc6pHks5tvhANgaJpZM4Tzgz2 .

-- Thanks & Regards Avleen Singh Khanuja

Fleker commented 6 years ago

If you're not able to detect button pushes, then you may want to look into debugging that first.