firebase / FirebaseUI-Android

Optimized UI components for Firebase
https://firebaseopensource.com/projects/firebase/firebaseui-android/
Apache License 2.0
4.63k stars 1.84k forks source link

OnActivityResult not called in some situations #1385

Closed wtroynelson closed 6 years ago

wtroynelson commented 6 years ago

Step 2: Describe your environment

Step 3: Describe the problem:

OnActivityResult is not called immediately in a particular circumstance.

Steps to reproduce:

  1. Show the sign in Intent with a AuthUI.IdpConfig.GoogleBuilder()
  2. Click "Sign in with Google"
  3. Click "Use another account"
  4. Immediately click back. Do not enter any information. The account chooser will still be displayed
  5. Select any already existing google account
  6. Become confused as nothing is happening and a dark tint covers the screen indefinately
  7. Press anywhere on the screen to

(A) If AuthUI.IdpConfig.GoogleBuilder() is the only sign in method, OnActivityResult will be called with the following: "[extra_idp_response=IdpResponse{mUser=null, mToken='null', mSecret='null', mIsNewUser='false', mException=com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: , mPendingCredential=null}]"

(B) If there are more than one sign in methods a Toast with an error code is shown and OnActivityResult does not get called.

  1. Regardless of the result of step 7, the next time the user presses "Sign in with Google" the app immediately signs in with the user that was clicked in Step 5, it does not show the account sign in prompt.

Observed Results:

If the user gets confused at step 3 and presses back key the sign in process does not go smoothly.

Expected Results:

On selecting an account in step 5, OnActivityResult should be called immediately, and black tint should not cover the screen.

SUPERCILEX commented 6 years ago

This might be a duplicate of https://github.com/googlesamples/google-services/issues/358. In any case, there's nothing we can do on the library side unfortunately since we don't control the Google Sign-In dialog.

If you wouldn't mind sharing Logcat output from right after you reproduce the bug, it would help the Play Services team fix this. 👍

wtroynelson commented 6 years ago

Sure, as I mentioned there are two scenarios

(A) 07-02 22:52:00.105 761 806 I VSC : @ 25048.238: [VSC] Stopping sensor events for sensor 131074 07-02 22:52:00.105 761 806 I CHRE : @ 25048.238: [AR_CHRE] IDLE => ON 07-02 22:52:00.106 761 806 I VSC : @ 25048.238: [VSC] Request sensor 65537, sample_duration 14 ms, report_duration c80 ms 07-02 22:52:00.238 729 1784 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2 07-02 22:52:00.240 729 2418 D audio_hw_primary: enable_snd_device: snd_device(2: speaker) 07-02 22:52:00.240 729 2418 D audio_route: Apply path: speaker 07-02 22:52:00.241 729 2418 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11130, sample rate = 48000 07-02 22:52:00.241 729 2418 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0 07-02 22:52:00.241 729 2418 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 15, Topology Id 112fc 07-02 22:52:00.241 729 2418 D : Failed to fetch the lookup information of the device 0000000F 07-02 22:52:00.241 729 2418 D ACDB-LOADER: Error: ACDB AFE returned = -19 07-02 22:52:00.241 729 2418 D audio_hw_primary: enable_audio_route: usecase(1) apply and update mixer path: low-latency-playback speaker 07-02 22:52:00.241 729 2418 D audio_route: Apply path: low-latency-playback speaker 07-02 22:52:00.243 2237 2244 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [2, 0] 07-02 22:52:00.276 729 2418 D audio_hw_primary: out_write: retry previous failed cal level set 07-02 22:52:00.289 2656 32051 I AsyncOpDispatcher: 44-RecordConsent 07-02 22:52:00.291 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 22:52:00.291 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 22:52:00.291 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 22:52:00.292 1389 1389 I LatinMetricsFactory: Add content log processors. 07-02 22:52:00.303 5650 5674 D OpenGLRenderer: endAllActiveAnimators on 0x7bd5614c00 (ListView) with handle 0x7bda3fcb40 07-02 22:52:00.337 2656 32051 I AsyncOpDispatcher: 44-AuthAccountWithNoServerAuthCallback 07-02 22:52:00.421 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 22:52:00.422 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 22:52:00.422 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 22:52:00.425 1389 1389 I LatinMetricsFactory: Add content log processors. 07-02 22:52:00.495 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 22:52:00.495 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 22:52:00.495 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 22:52:00.496 1389 1389 I LatinMetricsFactory: Add content log processors. 07-02 22:52:00.521 2656 2669 I AsyncOpDispatcher: 44-SignIn 07-02 22:52:00.558 2656 2669 I AsyncOpDispatcher: 44-SaveDefaultAccount 07-02 22:52:03.133 2694 27659 W GmsLocationProvider: Error removing location updates: 16 07-02 22:52:03.463 729 1784 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback speaker 07-02 22:52:03.465 729 1784 D audio_hw_primary: disable_snd_device: snd_device(2: speaker) 07-02 22:52:06.319 6746 6854 D BluetoothAdapter: isLeEnabled(): ON 07-02 22:52:06.327 1358 2083 I bt_stack: [INFO:gatt_api.cc(1004)] GATT_Register 07-02 22:52:06.327 1358 2083 I bt_stack: [INFO:gatt_api.cc(1027)] allocated gatt_if=7 07-02 22:52:06.328 6746 27718 D BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=7 mScannerId=0 07-02 22:52:08.843 7966 7966 E AuthUI : A sign-in error occurred. 07-02 22:52:08.843 7966 7966 E AuthUI : com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: 07-02 22:52:08.843 7966 7966 E AuthUI : at com.firebase.ui.auth.data.remote.GoogleSignInHandler.onActivityResult(GoogleSignInHandler.java:106) 07-02 22:52:08.843 7966 7966 E AuthUI : at com.firebase.ui.auth.ui.idp.SingleSignInActivity.onActivityResult(SingleSignInActivity.java:121) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.Activity.dispatchActivityResult(Activity.java:7276) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.-wrap19(Unknown Source:0) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.os.Handler.dispatchMessage(Handler.java:106) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.os.Looper.loop(Looper.java:164) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.main(ActivityThread.java:6494) 07-02 22:52:08.843 7966 7966 E AuthUI : at java.lang.reflect.Method.invoke(Native Method) 07-02 22:52:08.843 7966 7966 E AuthUI : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 07-02 22:52:08.843 7966 7966 E AuthUI : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 07-02 22:52:08.843 7966 7966 E AuthUI : A sign-in error occurred. 07-02 22:52:08.843 7966 7966 E AuthUI : com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: 07-02 22:52:08.843 7966 7966 E AuthUI : at com.firebase.ui.auth.data.remote.GoogleSignInHandler.onActivityResult(GoogleSignInHandler.java:106) 07-02 22:52:08.843 7966 7966 E AuthUI : at com.firebase.ui.auth.ui.idp.SingleSignInActivity.onActivityResult(SingleSignInActivity.java:121) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.Activity.dispatchActivityResult(Activity.java:7276) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.-wrap19(Unknown Source:0) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.os.Handler.dispatchMessage(Handler.java:106) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.os.Looper.loop(Looper.java:164) 07-02 22:52:08.843 7966 7966 E AuthUI : at android.app.ActivityThread.main(ActivityThread.java:6494) 07-02 22:52:08.843 7966 7966 E AuthUI : at java.lang.reflect.Method.invoke(Native Method) 07-02 22:52:08.843 7966 7966 E AuthUI : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 07-02 22:52:08.843 7966 7966 E AuthUI : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 07-02 22:52:08.861 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 22:52:08.861 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 22:52:08.861 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 22:52:08.867 7966 9714 D FA : Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=-8965544132700408367, firebase_screen_class(_sc)=SingleSignInActivity, firebase_screen_id(_si)=-8965544132700408368}] 07-02 22:52:08.894 7966 9714 V FA : Connecting to remote service 07-02 22:52:08.896 7966 9714 V FA : Connection attempt already in progress 07-02 22:52:08.896 7966 9714 V FA : Activity resumed, time: 25054167 07-02 22:52:08.896 7966 9714 V FA : Screen exposed for less than 1000 ms. Event not sent. time: 34 07-02 22:52:08.896 7966 9714 V FA : Connection attempt already in progress 07-02 22:52:08.896 7966 9714 V FA : Activity paused, time: 25054198 07-02 22:52:08.930 7966 7966 E AuthUI : A sign-in error occurred. 07-02 22:52:08.930 7966 7966 E AuthUI : com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: 07-02 22:52:08.930 7966 7966 E AuthUI : at com.firebase.ui.auth.data.remote.GoogleSignInHandler.onActivityResult(GoogleSignInHandler.java:106) 07-02 22:52:08.930 7966 7966 E AuthUI : at com.firebase.ui.auth.ui.idp.SingleSignInActivity.onActivityResult(SingleSignInActivity.java:121) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.app.Activity.dispatchActivityResult(Activity.java:7276) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.app.ActivityThread.-wrap19(Unknown Source:0) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.os.Handler.dispatchMessage(Handler.java:106) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.os.Looper.loop(Looper.java:164) 07-02 22:52:08.930 7966 7966 E AuthUI : at android.app.ActivityThread.main(ActivityThread.java:6494) 07-02 22:52:08.930 7966 7966 E AuthUI : at java.lang.reflect.Method.invoke(Native Method) 07-02 22:52:08.930 7966 7966 E AuthUI : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 07-02 22:52:08.930 7966 7966 E AuthUI : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 07-02 22:52:08.935 7966 9714 D FA : Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SingleSignInActivity, firebase_previous_id(_pi)=-8965544132700408368, firebase_screen_class(_sc)=KickoffActivity, firebase_screen_id(_si)=-8965544132700408369}] 07-02 22:52:08.943 1579 1690 I QCNEJ/CndHalConnector: -> SND notifyWifiStatusChanged(RatInfo{type=1, subType=101, state=CONNECTED, v4=IfaceAddrPair{iface=wlan0, addr=192.168.2.10}, v6=IfaceAddrPair{iface=, addr=}, timestamp=2018-07-02 22:52:08.943, isAndroidValidated=true, netHandle=571247086302, slotIdx=0} WifiInfo{freq=TWO_GHz, state=3, ssid=FibreOP519, bssid=4c:8b:30:fc:f7:41, dns=[192.168.2.1, 142.166.166.166, 0.0.0.0, 0.0.0.0, ]}) 07-02 22:52:08.945 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 22:52:08.946 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 22:52:08.965 7966 9714 V FA : Connection attempt already in progress 07-02 22:52:08.966 7966 9714 V FA : Connection attempt already in progress 07-02 22:52:08.966 7966 9714 V FA : Activity resumed, time: 25054236 07-02 22:52:08.966 7966 9714 D FA : Connected to remote service 07-02 22:52:08.966 7966 9714 V FA : Processing queued up service tasks: 5 07-02 22:52:08.986 2656 9716 V FA-SVC : Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=-8965544132700408367, firebase_screen_class(_sc)=SingleSignInActivity, firebase_screen_id(_si)=-8965544132700408368}] 07-02 22:52:08.991 7966 9714 V FA : Screen exposed for less than 1000 ms. Event not sent. time: 61 07-02 22:52:08.993 7966 9714 V FA : Activity paused, time: 25054283 07-02 22:52:09.009 7966 7966 W MYTAG : onActivityResult data: 07-02 22:52:09.012 7966 7966 E MYTAG : Dumping Intent start 07-02 22:52:09.013 7966 7966 E MYTAG : [extra_idp_response=IdpResponse{mUser=null, mToken='null', mSecret='null', mIsNewUser='false', mException=com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: , mPendingCredential=null}] 07-02 22:52:09.013 7966 7966 E MYTAG : Dumping Intent end 07-02 22:52:09.017 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 22:52:09.017 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 22:52:09.020 2656 9716 V FA-SVC : Saving event, name, data size: screen_view(_vs), 110 07-02 22:52:09.020 2656 9716 V FA-SVC : Event recorded: Event{appId='taxi.cloudcab.aircab', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=-8965544132700408367, firebase_screen_class(_sc)=SingleSignInActivity, firebase_screen_id(_si)=-8965544132700408368}]} 07-02 22:52:09.023 2656 9716 V FA-SVC : Upload scheduled in approximately ms: 3330599 07-02 22:52:09.024 2656 9716 V FA-SVC : Cancelling job. JobID: 812057698 07-02 22:52:09.025 7966 9714 D FA : Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=KickoffActivity, firebase_previous_id(_pi)=-8965544132700408369, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8965544132700408373}] 07-02 22:52:09.027 2656 9716 V FA-SVC : Scheduling upload with GcmTaskService 07-02 22:52:09.027 2656 9716 V FA-SVC : Scheduling task with Gcm. time: 3330599 07-02 22:52:09.029 2656 9716 V FA-SVC : Background event processing time, ms: 43 07-02 22:52:09.042 2656 9716 V FA-SVC : Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SingleSignInActivity, firebase_previous_id(_pi)=-8965544132700408368, firebase_screen_class(_sc)=KickoffActivity, firebase_screen_id(_si)=-8965544132700408369}] 07-02 22:52:09.044 1108 12153 I ActivityManager: Killing 8792:com.google.android.apps.dynamite/u0a209 (adj 906): empty #17 07-02 22:52:09.045 1108 1128 W zygote64: kill(-8792, 9) failed: No such process 07-02 22:52:09.047 2656 9716 V FA-SVC : Saving event, name, data size: screen_view(_vs), 108 07-02 22:52:09.047 2656 9716 V FA-SVC : Event recorded: Event{appId='taxi.cloudcab.aircab', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SingleSignInActivity, firebase_previous_id(_pi)=-8965544132700408368, firebase_screen_class(_sc)=KickoffActivity, firebase_screen_id(_si)=-8965544132700408369}]} 07-02 22:52:09.049 2656 9716 V FA-SVC : Upload scheduled in approximately ms: 3330573 07-02 22:52:09.050 2656 9716 V FA-SVC : Cancelling job. JobID: 812057698 07-02 22:52:09.053 2656 9716 V FA-SVC : Scheduling upload with GcmTaskService 07-02 22:52:09.053 2656 9716 V FA-SVC : Scheduling task with Gcm. time: 3330573 07-02 22:52:09.055 2656 9716 V FA-SVC : Background event processing time, ms: 13 07-02 22:52:09.056 1108 1128 W zygote64: kill(-8792, 9) failed: No such process 07-02 22:52:09.088 2656 9716 V FA-SVC : Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=KickoffActivity, firebase_previous_id(_pi)=-8965544132700408369, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8965544132700408373}] 07-02 22:52:09.089 7966 9714 V FA : Activity resumed, time: 25054323 07-02 22:52:09.089 1108 1128 W zygote64: kill(-8792, 9) failed: No such process 07-02 22:52:09.089 1108 1128 I zygote64: Successfully killed process cgroup uid 10209 pid 8792 in 44ms 07-02 22:52:09.090 2656 9716 V FA-SVC : Saving event, name, data size: screen_view(_vs), 100 07-02 22:52:09.090 2656 9716 V FA-SVC : Event recorded: Event{appId='taxi.cloudcab.aircab', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=KickoffActivity, firebase_previous_id(_pi)=-8965544132700408369, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-8965544132700408373}]} 07-02 22:52:09.091 2656 9716 V FA-SVC : Upload scheduled in approximately ms: 3330531 07-02 22:52:09.091 2656 9716 V FA-SVC : Cancelling job. JobID: 812057698 07-02 22:52:09.092 2656 9716 V FA-SVC : Scheduling upload with GcmTaskService 07-02 22:52:09.092 2656 9716 V FA-SVC : Scheduling task with Gcm. time: 3330531 07-02 22:52:09.094 2656 9716 V FA-SVC : Background event processing time, ms: 5

(B)

Toast appears with "Code: 8, Message: 8"

Attempt number 1 (had a filter on logcat): 07-02 22:43:43.520 6551 6551 I FA : App measurement is starting up, version: 11011 07-02 22:43:43.520 6551 6551 I FA : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE 07-02 22:43:43.554 6551 6551 I FA : To enable faster debug mode event logging run: 07-02 22:43:43.554 6551 6551 I FA : adb shell setprop debug.firebase.analytics.app com.google.android.apps.dynamite 07-02 22:43:43.851 6601 6601 I FA : App measurement is starting up, version: 11200 07-02 22:43:43.851 6601 6601 I FA : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE 07-02 22:43:43.859 6601 6601 I FA : To enable faster debug mode event logging run: 07-02 22:43:43.859 6601 6601 I FA : adb shell setprop debug.firebase.analytics.app com.google.android.apps.fireball 07-02 22:43:44.129 8287 8287 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value. 07-02 22:43:44.130 8287 8287 W Settings: Setting download_manager_max_bytes_over_mobile has moved from android.provider.Settings.Secure to android.provider.Settings.Global. 07-02 22:43:47.927 7062 7062 E ActivityThread: Service com.firebase.jobdispatcher.GooglePlayReceiver has leaked ServiceConnection com.firebase.jobdispatcher.JobServiceConnection@f661b50 that was originally bound here 07-02 22:43:47.927 7062 7062 E ActivityThread: android.app.ServiceConnectionLeaked: Service com.firebase.jobdispatcher.GooglePlayReceiver has leaked ServiceConnection com.firebase.jobdispatcher.JobServiceConnection@f661b50 that was originally bound here 07-02 22:43:47.927 7062 7062 E ActivityThread: at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1532) 07-02 22:43:47.927 7062 7062 E ActivityThread: at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1424) 07-02 22:43:47.927 7062 7062 E ActivityThread: at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1605) 07-02 22:43:47.927 7062 7062 E ActivityThread: at android.app.ContextImpl.bindService(ContextImpl.java:1557) 07-02 22:43:47.927 7062 7062 E ActivityThread: at android.content.ContextWrapper.bindService(ContextWrapper.java:684) 07-02 22:43:47.927 7062 7062 E ActivityThread: at com.firebase.jobdispatcher.ExecutionDelegator.tryBindingToJobService(ExecutionDelegator.java:227) 07-02 22:43:47.927 7062 7062 E ActivityThread: at com.firebase.jobdispatcher.ExecutionDelegator$2.run(ExecutionDelegator.java:166) 07-02 22:43:47.927 7062 7062 E ActivityThread: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) 07-02 22:43:47.927 7062 7062 E ActivityThread: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 07-02 22:43:47.927 7062 7062 E ActivityThread: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) 07-02 22:43:47.927 7062 7062 E ActivityThread: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 07-02 22:43:47.927 7062 7062 E ActivityThread: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 07-02 22:43:47.927 7062 7062 E ActivityThread: at java.lang.Thread.run(Thread.java:764)

Attempt number 2 (no filter on logcat): 07-02 23:02:15.039 761 806 I CHRE : @ 25663.172: [AR_CHRE] IDLE => ON 07-02 23:02:15.039 761 806 I VSC : @ 25663.172: [VSC] Stopping sensor events for sensor 131074 07-02 23:02:15.039 761 806 I VSC : @ 25663.172: [VSC] Request sensor 65537, sample_duration 14 ms, report_duration c80 ms 07-02 23:02:15.095 729 1141 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2 07-02 23:02:15.097 729 2418 D audio_hw_primary: enable_snd_device: snd_device(2: speaker) 07-02 23:02:15.097 729 2418 D audio_route: Apply path: speaker 07-02 23:02:15.098 729 2418 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0, app id = 0x11130, sample rate = 48000 07-02 23:02:15.098 729 2418 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0 07-02 23:02:15.098 729 2418 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 15, Topology Id 112fc 07-02 23:02:15.098 729 2418 D : Failed to fetch the lookup information of the device 0000000F 07-02 23:02:15.098 729 2418 D ACDB-LOADER: Error: ACDB AFE returned = -19 07-02 23:02:15.098 729 2418 D audio_hw_primary: enable_audio_route: usecase(1) apply and update mixer path: low-latency-playback speaker 07-02 23:02:15.098 729 2418 D audio_route: Apply path: low-latency-playback speaker 07-02 23:02:15.100 2237 2244 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [2, 0] 07-02 23:02:15.108 8234 8250 E memtrack: Couldn't load memtrack module 07-02 23:02:15.108 8234 8250 W android.os.Debug: failed to get memory consumption info: -1 07-02 23:02:15.133 729 2418 D audio_hw_primary: out_write: retry previous failed cal level set 07-02 23:02:15.150 2656 2880 I AsyncOpDispatcher: 44-RecordConsent 07-02 23:02:15.153 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 23:02:15.153 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 23:02:15.153 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 23:02:15.155 1389 1389 I LatinMetricsFactory: Add content log processors. 07-02 23:02:15.158 5650 5674 D OpenGLRenderer: endAllActiveAnimators on 0x7bda145400 (ListView) with handle 0x7bda052ca0 07-02 23:02:15.183 2656 4745 I AsyncOpDispatcher: 44-AuthAccountWithNoServerAuthCallback 07-02 23:02:15.267 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 23:02:15.267 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 23:02:15.267 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 23:02:15.267 1389 1389 I LatinMetricsFactory: Add content log processors. 07-02 23:02:15.365 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 23:02:15.365 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 23:02:15.365 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 23:02:15.366 1389 1389 I LatinMetricsFactory: Add content log processors. 07-02 23:02:15.382 2656 4745 I AsyncOpDispatcher: 44-SignIn 07-02 23:02:15.417 2656 2880 I AsyncOpDispatcher: 44-SaveDefaultAccount 07-02 23:02:16.461 1108 2561 I WifiService: getWifiEnabledState uid=10011 07-02 23:02:16.463 1108 2561 I WifiService: getConnectionInfo uid=10011 07-02 23:02:16.468 1108 2561 I WifiService: getWifiEnabledState uid=10011 07-02 23:02:16.470 1108 2561 I WifiService: getConnectionInfo uid=10011 07-02 23:02:16.658 2656 11227 I PeopleContactsSync: CP2 cleanup done, kept= duration=73 ms 07-02 23:02:17.247 6746 6854 D BluetoothAdapter: isLeEnabled(): ON 07-02 23:02:18.344 729 1141 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback speaker 07-02 23:02:18.347 729 1141 D audio_hw_primary: disable_snd_device: snd_device(2: speaker) 07-02 23:02:22.159 1610 1610 E QtiImsExtUtils: getConfigForPhoneId phoneId is invalid 07-02 23:02:22.159 1610 1610 E QtiImsExtUtils: isCarrierConfigEnabled bundle is null 07-02 23:02:24.977 1579 1690 I QCNEJ/CndHalConnector: -> SND notifyWifiStatusChanged(RatInfo{type=1, subType=101, state=CONNECTED, v4=IfaceAddrPair{iface=wlan0, addr=192.168.2.10}, v6=IfaceAddrPair{iface=, addr=}, timestamp=2018-07-02 23:02:24.977, isAndroidValidated=true, netHandle=571247086302, slotIdx=0} WifiInfo{freq=TWO_GHz, state=3, ssid=FibreOP519, bssid=4c:8b:30:fc:f7:41, dns=[192.168.2.1, 142.166.166.166, 0.0.0.0, 0.0.0.0, ]}) 07-02 23:02:25.198 10418 10418 E AuthUI : A sign-in error occurred. 07-02 23:02:25.198 10418 10418 E AuthUI : com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: 07-02 23:02:25.198 10418 10418 E AuthUI : at com.firebase.ui.auth.data.remote.GoogleSignInHandler.onActivityResult(GoogleSignInHandler.java:106) 07-02 23:02:25.198 10418 10418 E AuthUI : at com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity.onActivityResult(AuthMethodPickerActivity.java:242) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.app.Activity.dispatchActivityResult(Activity.java:7276) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.app.ActivityThread.-wrap19(Unknown Source:0) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.os.Handler.dispatchMessage(Handler.java:106) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.os.Looper.loop(Looper.java:164) 07-02 23:02:25.198 10418 10418 E AuthUI : at android.app.ActivityThread.main(ActivityThread.java:6494) 07-02 23:02:25.198 10418 10418 E AuthUI : at java.lang.reflect.Method.invoke(Native Method) 07-02 23:02:25.198 10418 10418 E AuthUI : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 07-02 23:02:25.198 10418 10418 E AuthUI : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 07-02 23:02:25.199 10418 10418 E AuthUI : A sign-in error occurred. 07-02 23:02:25.199 10418 10418 E AuthUI : com.firebase.ui.auth.FirebaseUiException: Code: 8, message: 8: 07-02 23:02:25.199 10418 10418 E AuthUI : at com.firebase.ui.auth.data.remote.GoogleSignInHandler.onActivityResult(GoogleSignInHandler.java:106) 07-02 23:02:25.199 10418 10418 E AuthUI : at com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity.onActivityResult(AuthMethodPickerActivity.java:242) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.app.Activity.dispatchActivityResult(Activity.java:7276) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.app.ActivityThread.deliverResults(ActivityThread.java:4264) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.app.ActivityThread.handleSendResult(ActivityThread.java:4312) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.app.ActivityThread.-wrap19(Unknown Source:0) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.os.Handler.dispatchMessage(Handler.java:106) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.os.Looper.loop(Looper.java:164) 07-02 23:02:25.199 10418 10418 E AuthUI : at android.app.ActivityThread.main(ActivityThread.java:6494) 07-02 23:02:25.199 10418 10418 E AuthUI : at java.lang.reflect.Method.invoke(Native Method) 07-02 23:02:25.199 10418 10418 E AuthUI : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 07-02 23:02:25.199 10418 10418 E AuthUI : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 07-02 23:02:25.213 10418 11237 D FA : Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=3743169928516969441, firebase_screen_class(_sc)=AuthMethodPickerActivity, firebase_screen_id(_si)=3743169928516969440}] 07-02 23:02:25.215 1389 1389 I GoogleInputMethod: onFinishInput() : Dummy InputConnection bound 07-02 23:02:25.216 1389 1389 I LatinMetricsFactory: Remove content log processors. 07-02 23:02:25.216 1389 1389 I GoogleInputMethod: onStartInput() : Dummy InputConnection bound 07-02 23:02:25.233 10418 11237 V FA : Connecting to remote service 07-02 23:02:25.235 10418 11237 V FA : Connection attempt already in progress 07-02 23:02:25.235 10418 11237 V FA : Activity resumed, time: 25670514 07-02 23:02:25.262 10418 11237 D FA : Connected to remote service 07-02 23:02:25.263 10418 11237 V FA : Processing queued up service tasks: 2 07-02 23:02:25.282 2656 11239 V FA-SVC : Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=3743169928516969441, firebase_screen_class(_sc)=AuthMethodPickerActivity, firebase_screen_id(_si)=3743169928516969440}] 07-02 23:02:25.293 2656 11239 V FA-SVC : Saving event, name, data size: screen_view(_vs), 112 07-02 23:02:25.293 2656 11239 V FA-SVC : Event recorded: Event{appId='taxi.cloudcab.aircab', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignInHubActivity, firebase_previous_id(_pi)=3743169928516969441, firebase_screen_class(_sc)=AuthMethodPickerActivity, firebase_screen_id(_si)=3743169928516969440}]} 07-02 23:02:25.295 2656 11239 V FA-SVC : Upload scheduled in approximately ms: 2714327 07-02 23:02:25.297 2656 11239 V FA-SVC : Cancelling job. JobID: 812057698 07-02 23:02:25.299 2656 11239 V FA-SVC : Scheduling upload with GcmTaskService 07-02 23:02:25.299 2656 11239 V FA-SVC : Scheduling task with Gcm. time: 2714327 07-02 23:02:25.302 2656 11239 V FA-SVC : Background event processing time, ms: 20 07-02 23:02:26.054 1358 2083 W bt_btif : bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0100 07-02 23:02:26.054 1358 2083 W bt_btif : bta_gattc_conn_cback() - cif=4 connected=0 conn_id=4 reason=0x0100 07-02 23:02:26.054 1358 2083 W bt_btif : bta_gattc_conn_cback() - cif=5 connected=0 conn_id=5 reason=0x0100 07-02 23:02:26.054 1358 2083 W bt_btif : bta_gattc_conn_cback() - cif=6 connected=0 conn_id=6 reason=0x0100 07-02 23:02:26.055 6746 6759 D BluetoothGatt: onClientConnectionState() - status=133 clientIf=5 device=E7:79:A5:C4:40:FA 07-02 23:02:26.061 6746 7824 D BluetoothGatt: cancelOpen() - device: E7:79:A5:C4:40:FA 07-02 23:02:26.062 1358 2083 E bt_btif : No such connection need to be cancelled 07-02 23:02:26.063 6746 7824 D BluetoothGatt: close() 07-02 23:02:26.063 6746 7824 D BluetoothGatt: unregisterApp() - mClientIf=5 07-02 23:02:26.063 1358 2083 E bt_stack: [ERROR:bta_gattc_utils.cc(509)] bta_gattc_mark_bg_conn unable to find the bg connection mask for: e7:79:a5:c4:40:fa 07-02 23:02:26.083 6746 6802 V com.thetileapp.tile.managers.LoggingManager: WRITING LOG 07-02 23:02:26.091 6746 6802 W com.thetileapp.tile.managers.LoggingManager: didWriteToLog=true 07-02 23:02:26.593 6746 6746 D BluetoothManager: getConnectedDevices 07-02 23:02:26.602 6746 7825 D BluetoothGatt: connect() - device: E7:79:A5:C4:40:FA, auto: false 07-02 23:02:26.602 6746 7825 D BluetoothGatt: registerApp() 07-02 23:02:26.603 6746 7825 D BluetoothGatt: registerApp() - UUID=d51a6a0d-cca7-4e3d-8b82-011840784439 07-02 23:02:26.607 1358 2083 I bt_stack: [INFO:gatt_api.cc(1004)] GATT_Register 07-02 23:02:26.607 1358 2083 I bt_stack: [INFO:gatt_api.cc(1027)] allocated gatt_if=5 07-02 23:02:26.608 6746 6759 D BluetoothGatt: onClientRegistered() - status=0 clientIf=5 07-02 23:02:26.616 1358 2083 I bt_stack: [INFO:gatt_api.cc(1168)] GATT_Connectgatt_if=5 e7:79:a5:c4:40:fa 07-02 23:02:26.885 2656 11243 I PeopleContactsSync: CP2 cleanup done, kept= duration=53 ms 07-02 23:02:27.239 1108 1108 W WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@dc3fc0b 07-02 23:02:27.866 761 806 I VSC : @ 25675.996: [VSC] Request sensor 131074, sample_duration 0 ms, report_duration 0 ms 07-02 23:02:27.866 761 806 I VSC : @ 25675.996: [VSC] Stopping sensor events for sensor 65537 07-02 23:02:30.289 10418 11237 V FA : Inactivity, disconnecting from the service

samtstern commented 6 years ago

I am almost certain this is a duplicate of googlesamples/google-services#358, which will be fixed soon. Thank you for reporting!

If you can still reproduce this after that issue is fixed, we can start investigating again. Right now we basically don't expect the "use another account" flow with Google sign in to ever work (FirebaseUI or otherwise).