Skip to content

Android - Firebase not initialised in GroupIB process #71176

Closed

Description

@mountiny

Problem

Android devices show Crash modal on app launch, though it can be dismissed.

From this report https://expensify.slack.com/archives/C05LX9D6E07/p1758703579605949

The Android app seems to crash out of the blue without a clear reason, maybe something from Pusher.

Try to find the crash logs in Google Play Console or Crashlytics to investigate this one deeper.

Activity

  1. added
    Daily
    Bug
    Hot Pick
    on Sep 24, 2025
  2. melvin-bot commented on Sep 24, 2025

    @melvin-bot

    Triggered auto assignment to @NicMendonca (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. moved this from HIGH to CRITICAL in [#whatsnext] #qualityon Sep 24, 2025
  4. mountiny commented on Sep 24, 2025

    @mountiny
    ContributorAuthor

    cc @Julesssss who saw this crash yesterday too

  5. self-assigned this
    on Sep 24, 2025
  6. removed
    Hot Pick
    on Sep 24, 2025
  7. Julesssss commented on Sep 24, 2025

    @Julesssss
    Contributor

    I believe this is the crash:

    Default FirebaseApp is not initialized in this process org.me.mobiexpensifyg:gib. Make sure to call FirebaseApp.initializeApp(Context) first.

    FATAL EXCEPTION: main (Ask Gemini)
    Process: org.me.mobiexpensifyg:gib, PID: 17432
    java.lang.RuntimeException: Unable to create application org.me.mobiexpensifyg.Expensify: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process org.me.mobiexpensifyg:gib. Make sure to call FirebaseApp.initializeApp(Context) first.
    	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7836)
    	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2546)
    	at android.os.Handler.dispatchMessage(Handler.java:110)
    	at android.os.Looper.loopOnce(Looper.java:248)
    	at android.os.Looper.loop(Looper.java:338)
    	at android.app.ActivityThread.main(ActivityThread.java:9067)
    	at java.lang.reflect.Method.invoke(Native Method)
    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932)
    Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process org.me.mobiexpensifyg:gib. Make sure to call FirebaseApp.initializeApp(Context) first.
    	at com.google.firebase.FirebaseApp.getInstance(SourceFile:179)
    	at com.google.firebase.crashlytics.FirebaseCrashlytics.getInstance(SourceFile:194)
    	at yapl.android.misc.YaplLogManager.log(SourceFile:237)
    	at yapl.android.misc.YaplLogManager.logInfo(SourceFile:54)
    	at yapl.android.Yapl.logInfo(SourceFile:146)
    	at yapl.js.JSCrashReporter.restoreLastJSCrash(SourceFile:117)
    	at yapl.js.JSCrashReporter.<init>(SourceFile:56)
    	at yapl.js.JSCrashReporter.getInstance(SourceFile:43)
    	at yapl.android.Yapl.onCreate(SourceFile:342)
    	at org.me.mobiexpensifyg.Expensify.onCreate(SourceFile:89)
    	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1381)
    	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7830)
    	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2546) 
    	at android.os.Handler.dispatchMessage(Handler.java:110) 
    	at android.os.Looper.loopOnce(Looper.java:248) 
    	at android.os.Looper.loop(Looper.java:338) 
    	at android.app.ActivityThread.main(ActivityThread.java:9067) 
    	at java.lang.reflect.Method.invoke(Native Method) 
    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) 
    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932) 
    
    Image
  8. Julesssss commented on Sep 24, 2025

    @Julesssss
    Contributor

    Definitely not appearing in Firebase

  9. Julesssss commented on Sep 24, 2025

    @Julesssss
    Contributor

    One lead is that the GroupIB Fraud protection changes. There have been many PRs, some of which are very recent.

    GroupIB fraud protection runs in a separate Android process in which Firebase isn't initialized. It's possible this is hiding another exception, or that this is the underlying issue. I'm not sure yet.

  10. changed the title [-]Investigate Android crash[/-] [+]Android - Firebase not initialised in GroupIB process[/+] on Sep 24, 2025
  11. Julesssss commented on Sep 24, 2025

    @Julesssss
    Contributor
  12. Julesssss commented on Sep 25, 2025

    @Julesssss
    Contributor

    Cherry-picked, to be released shortly in 9.2.18-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineeringReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions