-
Notifications
You must be signed in to change notification settings - Fork 615
anr - with repro steps - com.google.android.c2dm.intent.RECEIVE #3382
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
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Thanks for reporting, @aapunain. May I ask which Firebase component are you using and using it at what version? Is it 29.0.3? |
YES |
It's been the same for us. It's the # 1 ANR in our app right now. And I see there were plenty of issues opened for it but I see them closed by the bot without any solution by anyone: Has updating to the latest BOM solved it for anyone? I currently use these versions:
|
Hi @waseefakhtar, ANR issues can be due to many reasons, as such we treat it as a different case for each developer. With that said, could you create a new issue with our template so we can investigate your issue as well. Thanks! |
@aapunain, could you clarify the steps to reproduce the issue, if I understand correctly:
Is this correct? Also if you could provide us an MCVE, it'll speed up our investigation, thanks! |
@argzdev yes right |
Thanks for confirming, @aapunain. I'll wait for the MCVE. I also re-opened the issue, I think you mistakenly closed it. |
@argzdev |
Thanks for the MCVE, @aapunain. Unfortunately, I'm unable to repro the issue. Here is the relevant code of my node JS server:
Here are the steps I did:
Am I missing anything? Could you provide more details or information for me to repro the issue? Thanks! |
@argzdev don't start app first .. |
Thanks for the extra details, @aapunain. I was able to repro the issue, I'll notify an engineer and see what we can do here. |
Thanks for the extra details, @fanfanxiaozu. It is plausible that this causes the ANR, but this may require a deeper investigation by our engineers. Hi @aapunain, our engineers have responded with the following:
With that said, if you could provide more details about this issue, then I can probably justify an engineer’s time to dig into it with that much evidence. Thanks! |
@argzdev Thanks for details. I agree with your point that this is happening when main thread is blocked in app's oncreate But my point is that: From 'notification message' and 'data message' I mean : |
Hi @aapunain, unfortunately, I cannot answer your question. As of the moment, our engineers have a lot on their plates and this would require an engineer to investigate the code to check the logic with that case. If you’d like us to dig deeper on this, you could provide us with a realistic situation or an app without blocking the UI thread where this issue is experienced. As a good practice, it is usually best not to block the main thread when performing operations, since this can cause unexpected issues. With that said, I'll be closing this issue for now, feel free to open a new ticket with the said details. Thanks! |
[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:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
ANR in x.y.z
PID: ##
Reason: Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=x.y.z cmp=x.y.z/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }
Steps to reproduce:
its getting reported in play console for app at #1
i tried to reproduce it in sample app
put Thread.sleep(15000) in Application-> onCreate()
now send message
when I sent "data message" issue not reproduced
but when I sent "notification message" issue reproduced
** sent message every time after killing app process
WHY IS IT SO?? .. if its because of time taken in Application's onCreate then why its not occurring for both the cases.
Relevant Code:
The text was updated successfully, but these errors were encountered: