My app was working fine till last week. I haven't changed anything in the source code but suddenly my app keeps crashing whenever the login, register or forgot password links, all of which are connected to Firebase.
Also, can someone please tell me how to attach the log properly? I'm unable to format it.
Thanks in advance!
My log:
05-04 11:52:59.592 25672-25697/com.securitytechno2018 V/FA: Connecting to remote service
05-04 11:52:59.599 25672-25697/com.securitytechno2018 V/FA: Processing queued up service tasks: 4
05-04 11:52:59.599 25672-25697/com.securitytechno2018 E/FA: Failed to send current screen to service
05-04 11:52:59.599 25672-25697/com.securitytechno2018 E/FA: Failed to send current screen to service
05-04 11:52:59.599 25672-25697/com.securitytechno2018 E/FA: Discarding data. Failed to send event to service
05-04 11:52:59.600 25672-25697/com.securitytechno2018 E/FA: Discarding data. Failed to send event to service
05-04 11:52:59.603 25672-25672/com.securitytechno2018 W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
05-04 11:52:59.605 25672-25697/com.securitytechno2018 V/FA: Processing queued up service tasks: 0
05-04 11:53:30.178 23026-26580/? D/FA-SVC: No app data available; dropping event: com.securitytechno2018
05-04 11:53:45.533 23912-26810/? W/CronetSyncConnectionRcs: Upload content type not set.
05-04 11:53:46.014 2936-26865/? I/SQLiteConnectionPool: The connection pool for /data/user/0/com.google.android.gms/databases/phenotype.db has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool.
05-04 11:56:09.340 2936-2950/? W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/phenotype.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
Change the firebase version & Google Play Service version in your dependency. First update google play services; If it works ignore the firebase version.
Here's an answer to similar question.
Related
I successfully used phone verification in debug mode through FireAuth.
However after I release this app, it stop working and throws below error message.
I add SHA:1 and SHA:256 keys of google console to firebase project.
What is the problem?
E/FirebearCryptoHelper: Exception encountered during crypto setup:
Protocol message contained an invalid tag (zero).
E/FirebearCryptoHelper: KeysetManager failed to initialize - unable to get Public key
E/RecaptchaActivity: Could not generate an encryption key for reCAPTCHA - cancelling flow.
W/System: Ignoring header X-Firebase-Locale because its value was null.
V/FA: Screen exposed for less than 1000 ms. Event not sent. time: 139
V/FA: Connection attempt already in progress
V/FA: Activity paused, time: 7928726295
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 5
E/zzf: Failed to get reCAPTCHA token with error [An internal error has occurred. [ Failed to generate/retrieve public encryption key for reCAPTCHA flow. ]]- calling backend without app verification
I/ViewRootImpl#af348ef[RegisterActivity]: stopped(false) old=false
I/DecorView: notifyKeepScreenOnChanged: keepScreenOn=false
I/ViewRootImpl#af348ef[RegisterActivity]: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=5 res=0x1 s={true 529370561488} ch=false fn=47
V/FA: Activity resumed, time: 7928726304
W/gchunon_androi: Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (unsupported, reflection, allowed)
W/gchunon_androi: Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (unsupported, reflection, allowed)
E/FirebaseAuth: [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17093 null
D/로그인 중복: com.google.firebase.auth.FirebaseAuthException: This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details.
V/FA: Inactivity, disconnecting from the service
I/gchunon_androi: Compiler allocated 4546KB to compile void android.view.ViewRootImpl.performTraversals()
I've recently tried implementing Pusher's Chatkit into my android app along with some Kotlin plugins and am now running into this error that I cannot resolve.
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
the error I'm getting right below it is:
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
Which is through throwing me for a loop because my internet is working fine although a couple lines further down, I get:
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
Note: I've started to get this error above about not having a good connection ever since I started working more at cafes instead of at home since I needed to get out. In order to work offline, firebase asked me to opt into an offline mode I've been getting this notification of not being able to connect ever since.
I am following along to the getting started page here and have completed up to the end of the "Displaying Messages" section however when I go to the activity, it just stalls and blanks out. I have been searching StackO and the rest of the web for the past 2 days to try to resolve the conflict to no avail. All of the similar posts I have looked at dont seem to resolve the issue.
similarPost#1 but I'm not trying to save to a bitmap
Here is the entire stack trace:
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/DynamiteModule: Local module descriptor class for providerinstaller not found.
I/DynamiteModule: Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
I/chatty: uid=10086(com.example.android_myneighborsbookshelf) AsyncTask #2 identical 1 line
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/ghborsbookshel: Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
It seems to have fixed itself except for the unable to decode stream error however it doesn't crash, it just shows up in the log.
I checked for updates, cleaned, rebuild, invalidated caches and restarted, and shut down my emulator. I also restarted my computer completely 2x and that seems to have fixed it.
Before adding firebase analytics my app worked really fast. It has a lot of request which are sequential.
However, as soon as I added firebase analytics my app's internet requests froze and I got a lot of logs which consume time for no purpose.
W/System: ClassLoader referenced unknown path: /data/app/my.project.-1/lib/arm64
W/art: Verification of void my.project.App.<init>() took 133.425ms
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
D/FirebaseApp: Initialized class com.google.firebase.iid.FirebaseInstanceId.
V/GoogleSignatureVerifier: com.google.android.gms signature not valid. Found: <Some big sequence of characters>
I/FA: Tag Manager is not found and thus will not be used
D/ChimeraCfgMgr: Reading stored module config
I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:2
D/ChimeraFileApk: Primary ABI of requesting process is arm64-v8a
D/FirebaseCrashReceiverServiceImpl: onCreate
I/DynamiteModule: Selected remote version of com.google.android.gms.flags, version >= 1
This is quite important, because I wait about 5-6 seconds until my own requests start to execute.
I have a Nexus 4 with Android 6.0 and i have connected it in Developer Mode to my Android Studio to see what the Log-File output looks like. The LogCat sends many errors:
1. 02-25 09:15:46.787 548-623/? E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0,00 rxSuccessRate=0,00 targetRoamBSSID=any RSSI=-53
2. 02-25 09:15:46.787 548-623/? E/WifiStateMachine: WifiStateMachine L2Connected CMD_START_SCAN source -2 226, 227 -> obsolete
3. 02-25 09:15:36.955 3609-3609/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
4. 02-25 09:15:28.154 195-218/? E/ANDR-PERF-LOCK: Failed to apply optimization for resource: 4 level: 0
5. 02-25 09:15:27.479 548-623/? E/WifiStateMachine: cancelDelayedScan -> 227
6. 02-25 09:15:27.483 548-623/? E/native: do suspend true
7. 02-25 09:14:42.632 188-31249/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -8
8. 02-25 09:16:36.436 1596-1596/? E/ctxmgr: [PowerConnectionProducer]Could not write powerInfo=Plug state: 2 BatteryLevel: 0.85, status=Status{statusCode=unknown status code: 7503, resolution=null}
What are all these errors? They are appearing over and over again in different orders and are appearing independent from each other.
The Error:
02-25 09:18:36.981 3609-3609/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
Appears each 10 seconds even when there is no app active and all background proceses of all apps are killed.
Many apps running the background log the actions being done. Some of them also raises errors. WifiStateMachine gives data about your Wifi connection, PowerConnectionProducer gives data about your battery and so on. You will get errors similar to these on all devices.
This is no reason to worry, unless you have an error associated with your own app.
These are system logs,which you see after connecting your device.
This Binder transaction buffer has a limited fixed size, currently 1Mb, which is shared by all transactions in progress for the process. Consequently this exception can be thrown when there are many transactions in progress.
Please refer to TransactionTooLarge
Every once in a while, typically when I do a new install of my App, I will attempt to authenticate with our HTTPS Auth endpoint, the request takes a very long time (around 20-40 seconds) and then fails with an unknown error. I turned on Verbose Volley tracing and I see this nonsense about safebrowsing.google.com. What the heck is happening and how do I make it stop? I am using a Nexus 5 with 4.4 KitKat over wifi.
2662 qtaguid I Failed write_ctrl(u 71) res=-1 errno=22
2662 qtaguid I Untagging socket 71 failed errno=-22
2662 NetworkManagementS.. W untagSocket(71) failed with errno -22
2662 Finsky D [1] 3.onErrorResponse: Verification id=7 error response com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "safebrowsing.google.com"
: No address associated with hostname
2662 Volley D [1] Request.finish: 40045 ms: [ ] https://safebrowsing.google.com/safebrowsing/clientreport/download 0xc9395b26 NORMAL 11
I search inside Volley's code and can't find the URL "safebrowsing.google.com"
I think that maybe your Auth endpoint doesn't accept your request params and redirects you to this domain.
It is Google feature to detect potentially harmful app:
https://support.google.com/accounts/answer/2812853?hl=en
Android calc hash of your app and send to Google for check on this address:
https://safebrowsing.google.com/safebrowsing/clientreport/download
If apk unknown it can upload it to Google for check.