Skip to content
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

ANR Reason: executing service com.google.firebase.sessions.SessionLifecycleService #6635

Closed
tamtan opened this issue Jan 20, 2025 · 3 comments

Comments

@tamtan
Copy link

tamtan commented Jan 20, 2025

Hi. I am develop my app using Kotlin. But when I run the app it showing ANR for the issue below. Please help if you have solution. I check on a few devices with android 14, 13, 10.

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

Issues filed here should be about bugs in SessionLifecycleService the code in this repository com.google.firebase.sessions.SessionLifecycleService.
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: 2024.2.1
  • Firebase Component: firebase-bom, firebase-analytics, firebase-crashlytic
  • Component version: Firebase-sessions 2.0.7

[REQUIRED] Step 3: Describe the problem

ANR in
PID: 10526
Reason: executing service PackageId /com.google.firebase.sessions.SessionLifecycleService
ErrorId: d05095e6-5d96-44ed-b1f1-78ca2bd22368
Frozen: false
Load: 10.71 / 10.22 / 10.15
----- Output from /proc/pressure/memory -----
some avg10=0.12 avg60=0.13 avg300=0.03 total=32573039
full avg10=0.07 avg60=0.08 avg300=0.01 total=24839444
----- End output from /proc/pressure/memory -----
----- Output from /proc/pressure/cpu -----
some avg10=1.21 avg60=1.56 avg300=0.46 total=350652466
full avg10=0.00 avg60=0.00 avg300=0.00 total=0
----- End output from /proc/pressure/cpu -----
----- Output from /proc/pressure/io -----
some avg10=0.39 avg60=0.29 avg300=0.07 total=97217723
full avg10=0.29 avg60=0.19 avg300=0.04 total=68065750
----- End output from /proc/pressure/io -----

                                                                                                CPU usage from 33014ms to -1ms ago (2025-01-20 09:13:10.474 to 2025-01-20 09:13:43.489):
                                                                                                  17% 1069/system_server: 10% user + 6.5% kernel / faults: 13747 minor 811 major
                                                                                                  6.9% 1355/com.android.systemui: 5.3% user + 1.6% kernel / faults: 7175 minor 585 major
                                                                                                  0% 13003/adbd: 0% user + 0% kernel / faults: 51830 minor 47 major
                                                                                                  4.6% 4886/com.android.vending: 3.7% user + 0.9% kernel / faults: 4179 minor 785 major
                                                                                                  2.9% 4440/com.google.android.googlequicksearchbox:search: 2.3% user + 0.5% kernel / faults: 10512 minor 1178 major
                                                                                                  2.6% 727/surfaceflinger: 1.6% user + 0.9% kernel / faults: 63 minor 27 major
                                                                                                  2.4% 682/android.hardware.audio.service: 2.3% user + 0.1% kernel / faults: 11 minor 6 major
                                                                                                  2.3% 2002/com.google.android.gms: 1.6% user + 0.7% kernel / faults: 2718 minor 312 major
                                                                                                  1.6% 1866/com.google.android.gms.persistent: 1.2% user + 0.3% kernel / faults: 2554 minor 27 major
                                                                                                  1.4% 1731/com.android.launcher3: 1.1% user + 0.3% kernel / faults: 1279 minor 63 major
                                                                                                12% TOTAL: 7.1% user + 4.8% kernel + 0.2% iowait + 0.4% irq + 0% softirq
                                                                                                CPU usage from 35ms to 481ms later (2025-01-20 09:13:43.523 to 2025-01-20 09:13:43.969):
                                                                                                  93% 1069/system_server: 43% user + 49% kernel / faults: 2006 minor 37 major
                                                                                                    46% 1075/Signal Catcher: 33% user + 12% kernel
                                                                                                    28% 10619/AnrAuxiliaryTas: 10% user + 18% kernel
                                                                                                    2.5% 1095/android.anim: 2.5% user + 0% kernel
                                                                                                    2.5% 1100/android.bg: 0% user + 2.5% kernel
                                                                                                    2.5% 1266/WifiScanningSer: 2.5% user + 0% kernel
                                                                                                    2.5% 2732/binder:1069_12: 2.5% user + 0% kernel
                                                                                                    2.5% 10618/AnrConsumer: 0% user + 2.5% kernel
                                                                                                  22% 10526/Package ID: 15% user + 6.3% kernel / faults: 163 minor
                                                                                                    25% 10531/Signal Catcher: 15% user + 9.4% kernel
                                                                                                19% TOTAL: 8.7% user + 9.2% kernel + 0.5% iowait + 0.5% irq + 0.2% softirq

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

Just open the app and ANR with the issue above

Relevant Code:

// TODO(you): code here to reproduce the problem
@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.

@gokturkDev
Copy link

Hello @tamtan, I have the same issue. Could you please share how you resolved this issue?

@tamtan
Copy link
Author

tamtan commented Jan 29, 2025

@firebase firebase locked and limited conversation to collaborators Feb 21, 2025
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

4 participants