-
Notifications
You must be signed in to change notification settings - Fork 615
Observing a huge number of ANRs, 100% Background as reported by crashlytics #6900
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
Comments
Hi @shabinder-singh, thank you for raising the issue. By any chance, were you able to reproduce the issue? Can you share an MCVE to help us investigate the issue? fa Aside from that, does the issue occur on certain devices and/or android versions? Can you share the dependencies and the complete stack trace? Please ensure that there are no PII's from them. Thanks! |
Unfortunately, I couldn't repro, hence unable to provide any concrete steps or a mcve,
Complete Trace: |
Thank you for sharing that @shabinder-singh. Looking through the stack trace, the ANR is caused by CloudMessagingReceiver By any chance, can you share any code snippets that are related to Firebase Cloud Messaging? This will help us investigate this further. Thanks! |
I think we only have clevertap configured, nothing custom or any service extending |
Thank you for that info. Just to clarify though, you’re not using Firebase Cloud Messaging for your notifications? I’m not familiar with Clevertap. Could you share how you receive notifications? Thanks! |
No, We don't, the issue is from TV Builds, we don't have notifications in TV Builds.
We don't, not in our code-logic anyhow in our TV Builds as I can see in the codebase. Also, just a follow up, let's say there is some 3rd party library that maybe registering the notification, wouldn't that show up in the trace ? |
From what I gather, if a third-party library is used, this might appear in the stack trace if an error occurs during its operation or how it is implemented. The Let me consult this with our engineers. I’ll get back to you once I hear back from them. Thanks! |
You indicated that you're using Firebase BoM version 33.12.0, which would include a recent version of the FCM SDK, but it sounds like you may not be including the SDK directly, but instead through CleverTap. Can you tell which version of the FCM SDK your app is using? Also, is this a recent issue? Were there any changes that may have slowed down your app's startup time? An ANR like this can happen if your app takes too long to start up or if the main thread is blocked by another operation (though if this is only happening in the background, app startup may be more likely). |
Hey @shabinder-singh. 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! |
I think theres a misunderstanding here, we use the mentioned BoM directly as a dependency, you can forget the mention of clevertap, as that doesn't imapct our tv builds which this anr relates to.
Not a recent issue, since in background, app startup is kept as light as possible only Firebase being the one instantiated, everything else is lazyloaded/ deferred until an activity is shown. |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
The text was updated successfully, but these errors were encountered: