Skip to content

zzee.java line 1 com.google.android.gms.internal.measurement.zzee.zzg #4438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mohanK22 opened this issue Dec 9, 2022 · 13 comments
Closed

Comments

@mohanK22
Copy link

mohanK22 commented Dec 9, 2022

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Android Studio Dolphin | 2021.3.1 Patch 1 (Build #AI-213.7172.25.2113.9123335, built on September 30, 2022)
  • Firebase Component: com.google.firebase:firebase-analytics-ktx,
  • Component version: 21.2.0

[REQUIRED] Step 3: Describe the problem

Hi,
we are getting the root blocking ANR issue on the release build, reported on the Firebase Crashlytics Dashboard.

Steps to reproduce: -- unable to reproduce the issue.

Please find the below logs and other details.

main (runnable):tid=1 systid=31432 
       at com.google.android.gms.internal.measurement.zzee.zzg(zzee.java:1)
       at com.google.firebase.analytics.connector.AnalyticsConnectorImpl.getInstance(AnalyticsConnectorImpl.java:12)
       at com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar.lambda$getComponents$0(AnalyticsConnectorRegistrar.java:4)
       at com.google.firebase.analytics.connector.internal.zzb.create(zzb.java)
       at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$com-google-firebase-components-ComponentRuntime(ComponentRuntime.java:132)
       at com.google.firebase.components.ComponentRuntime$$ExternalSyntheticLambda1.get(ComponentRuntime.java:1132)
       at com.google.firebase.components.Lazy.get(Lazy.java:53)
       at com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents(ComponentRuntime.java:291)
       at com.google.firebase.components.ComponentRuntime.initializeEagerComponents(ComponentRuntime.java:281)
       at com.google.firebase.FirebaseApp.initializeAllApis(FirebaseApp.java:594)
       at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:305)
       at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:269)
       at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:254)
       at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
       at android.content.ContentProvider.attachInfo(ContentProvider.java:2388)
       at android.content.ContentProvider.attachInfo(ContentProvider.java:2358)
       at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
       at android.app.ActivityThread.installProvider(ActivityThread.java:7841)
       at android.app.ActivityThread.installContentProviders(ActivityThread.java:7371)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7279)
       at android.app.ActivityThread.access$1700(ActivityThread.java:299)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2184)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:264)
       at android.app.ActivityThread.main(ActivityThread.java:8312)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

Screenshot 2022-12-09 at 12 43 36 PM Screenshot 2022-12-09 at 12 43 56 PM Screenshot 2022-12-09 at 12 44 04 PM

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@argzdev
Copy link
Contributor

argzdev commented Dec 9, 2022

Thanks for reporting, @mohanK22. Any code snippets you can share that's related to Firebase Analytics? It might give us a hint to what's causing the issue.

@mohanK22
Copy link
Author

mohanK22 commented Dec 9, 2022

we are initializing the Firebase in the application class on the onCreate() function in the following way.

FirebaseApp.initializeApp(this)

For Firebase Analytics, we have created a common class.

import android.os.Bundle
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.ktx.Firebase

object FirebaseAnalyticsManager {

    private var firebaseAnalytics: FirebaseAnalytics? = null

    init {
        firebaseAnalytics = Firebase.analytics
    }

    fun trackFirebaseEvents(eventName: String, bundleData: Bundle?){
        firebaseAnalytics?.logEvent(eventName, bundleData)
    }

    fun setFirebaseAnalyticsUserId(userId: String) {
        firebaseAnalytics?.setUserId(userId)
    }
}

@argzdev
Copy link
Contributor

argzdev commented Dec 13, 2022

Thanks for the code snippet, @mohanK22. From what I can tell with your code snippet it shouldn't cause any issues. While I investigate this, may I ask if you also observed this issue on a previous version of Analytics?

@mohanK22
Copy link
Author

This ANR started causing issues from the analytics version "21.1.0". so we updated the library version "21.2.0". Now it is also causing in the latest build.

fyi -- Earlier we were using "20.1.2" which was completely working fine with no ANR and no crash.

@argzdev
Copy link
Contributor

argzdev commented Dec 15, 2022

Thanks for the extra details, @mohanK22. Checking our release notes, I noticed that there are 2 changes before your ANR started.

Are you using any of the following deprecated ecommerce constants? If not, then most likely the changes for 21.1.0 is causing the issue.

The following constants were removed from FirebaseAnalytics.Event:

  • CHECKOUT_PROGRESS
  • ECOMMERCE_PURCHASE
  • PRESENT_OFFER
  • PURCHASE_REFUND
  • SET_CHECKOUT_OPTION

The following constants were removed from FirebaseAnalytics.Param:

  • CHECKOUT_OPTION
  • CHECKOUT_STEP
  • ITEM_LIST
  • ITEM_LOCATION_ID
  • SIGN_UP_METHOD

@google-oss-bot
Copy link
Contributor

Hey @mohanK22. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@mohanK22
Copy link
Author

Hi @argzdev,
we are not consuming any of the above constants from the analytics SDK. we have created our own constant and consume it.

@argzdev
Copy link
Contributor

argzdev commented Dec 22, 2022

Then the issue might be with 21.1.0 - Improved session measurement with user ID. Let me consult with our engineers, and get back to you once I get some updates.

@argzdev
Copy link
Contributor

argzdev commented Feb 6, 2023

Hi @mohanK22, sorry for the long wait. May I know which Firebase Crashlytics version are you using? Upon our investigation, it seems that the issue might be related to #4345. This is currently being worked out, so let's leave this issue open for now and see if this gets resolved once the fix for Crashlytics is out.

@argzdev
Copy link
Contributor

argzdev commented May 22, 2023

Hey @mohanK22. Just bumping this thread, it seems that there has been updates with out libraries for sometime now. Can you try using our latest version and see if it helps? 21.2.2

@google-oss-bot
Copy link
Contributor

Hey @mohanK22. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@mohanK22 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Jul 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants