Android Question FirebaseAuth ResultArrived Error: null

npsonic

Active Member
Licensed User
My problem is almost exact to described in this thread.
https://www.b4x.com/android/forum/threads/problem-with-firebaseauth-example.87833/
When trying to login with the email that has worked before, but after app is reinstalled i get "ResultArrived Error: null"

I have found that to fix the problem log in email have to be removed from firebase manually.
After that FirebaseAuth lib still doesn't work, but user can sign up and log in with using FirebaseAuthEx lib.

I have also found out that this problem can be usually created by removing app when logged in and then reinstall it. Email that was logged in can't log in again.
Could there be something wrong with the FirebaseAuth lib, some racing condition somewhere or some exception not handled correctly?
 

npsonic

Active Member
Licensed User
Are you using B4A v8? The internal library includes more logging information that might help.
Here's log from crash. Crash can be created by logging in, removing app and reinstalling it. When trying to login again it will give an error.
B4X:
Logger connected to:  OnePlus ONEPLUS A3003
--------- beginning of main
Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults
preload b4a.test, 28ms, hwui=false, layout=false, decor=false
VM with version 2.1.0 has multidex support
Installing application
VM has multidex support, MultiDex support library is disabled.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
FirebaseApp initialization successful
Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3
Selected remote version of com.google.android.gms.flags, version >= 3
Starting remote logger. Port: 33591
App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app b4a.test
AppMeasurementService not registered/enabled
Uploading is not possible. App measurement disabled
App Event: start
Tag Manager is not found and thus will not be used
HWUI GL Pipeline
*** Service (starter) Create ***
Local module descriptor class for com.google.android.gms.crash not found.
Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:215
Selected remote version of com.google.android.gms.crash, version >= 215
FirebaseAuth initialized
** Service (starter) Start **
FirebaseCrashApiImpl created by ClassLoader ad[DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/0000005f/DynamiteModulesC_GmsCore_prodmnc_alldpi_release.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/0000005f/n/armeabi-v7a, /data/user_de/0/com.google.android.gms/app_chimera/m/0000005f/n/armeabi, /system/lib, /system/vendor/lib]]]
FirebaseCrash reporting loaded - com.google.android.gms.internal.measurement.zzxb@dfc87e2
QUALCOMM build                   : 08cdca0, I5f270ba9bc
Build Date                       : 09/18/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch                     :
Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.6.5.R1.08.00.00.312.025
Remote Branch                    : NONE
Reconstruct Branch               : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib/hw/gralloc.msm8996.so from the current namespace instead.
PFP: 0x005ff087, ME: 0x005ff063
Initialized EGL, version 1.4
Swap behavior 2
onAuthStateChanged: com.google.firebase.auth.internal.zzj@1d7d1eb
Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3
Selected remote version of com.google.android.gms.flags, version >= 3
** Activity (main) Create, isFirst = true **
Local module descriptor class for com.google.android.gms.crash not found.
After accept
FirebaseAuth initialized
FirebaseCrash reporting API initialized
FirebaseCrash reporting initialized com.google.android.gms.internal.measurement.zzxb@dfc87e2
Firebase Analytics Listener for Firebase Crash is initialized
Deoptimizing android.view.View anywheresoftware.b4a.objects.ViewWrapper.build(java.lang.Object, java.util.Map, boolean) due to JIT inline cache
Do partial code cache collection, code=30KB, data=29KB
After code cache collection, code=27KB, data=28KB
Increasing code cache capacity to 128KB
** Activity (main) Resume **
sphal namespace is not configured for this process. Loading /vendor/lib/hw/gralloc.msm8996.so from the current namespace instead.
Cannot load libgui-plugin
*** Service (firebasemessaging) Create ***
** Service (firebasemessaging) Start **
onAuthStateChanged: com.google.firebase.auth.internal.zzj@1d7d1eb
topic sync succeeded
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2034)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2068)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:387)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:764)
Starting remote logger. Port: 33591
After accept
Sending crashes
mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)
SignInWithGoogle called
App Event: stop
** Activity (main) Pause, UserClosed = false **
App Event: start
App Event: stop
sending message to waiting queue (OnActivityResult)
App Event: start
running waiting messages (1)
SignInWithGoogle.ResultArrived
ResultArrived Error: null
** Activity (main) Resume **
 
Upvote 0
Top