-
Notifications
You must be signed in to change notification settings - Fork 578
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
Attempt to invoke virtual method 'com.google.firebase.inappmessaging.model.MessageType kb.i.c()' #4214
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @gonojuarez, thanks for reporting and for the proposed solution! Let me pull up a PR real quick. |
Hi @gonojuarez, it looks like the |
This seems to be similar to #3596 |
I don't know how to reproduce it. |
Thanks for confirming @gonojuarez. Do you remember which type of message layout was selected in Firebase console? Also can you confirm how frequent does this issue occur? Maybe that'll give us a hint what triggered the issue. Thanks! |
I used the card option |
That is interesting, thank you for these details. I'll try to inform our engineer about this. |
Thank you @argzdev |
Hi @gonojuarez, sorry for the delayed response. We're still investigating this. May I ask how are you running your campaigns? Are you triggering multiple campaigns at the same time? If so, could you share what setup are you doing? It might give us a hint how your users encounter the issue. We think that the issue might be due to a multithreading race condition. Since Scenarios when
|
Yes, I am also getting the same crash again and again on the app open in testing mode. We have 3 active campaigns to test. I have completed two campaigns. Now my app is not crashing. |
Hi @vijayshuru, can you share your steps how to reproduce this behavior? Thanks! |
I have the same problem 😥! In this version 11.18.2 it was necessary to update the targetSdkVersion from 30 to 31, due to Google Play rules. Trace Crashlytics
|
@argzdev |
Sorry, This does not happen with all users. Also a user gets a message once in a day through the campaign. So It is difficult to reproduce. |
I am also facing this issue. |
Hi all, while we investigate this further. Kindly leave a thumbs up on the author's post. So that we can track the issue and prioritize a deeper investigation depending on severity. Thanks! |
After analyzing the issue, the inappmessage instance shouldn't be null when calling the extractActions method because if we check the call stack, it is getting called from showActiveFIAM method where we are already checking for null inappmessage instance as you can see here. So i believe the inappmessage instance getting null is because of some race condition happening when dealing with displaying multiple inapp messages one after the other and probably the countdown timers of the prior inappmessage (say impressiontimer) resetting the current inapp message when they call dismiss fiam even though we are cancelling the timers. This is because, we have a timer tick reporting delay of 1 second as you can see here. So I think the use case in which this issue could happen is when 1st inapp message gets dismissed which clears the inappmessage instance, but still waiting for timers to settle, before which the second inappmessage is processed for displaying and in between the previous "escaped timers" clears the inappmessage instance again and leads to the null pointer exception. If the use case I think is correct, we could do the following fixes:
I'll create a PR with null check and post here soon. |
I am also facing this issue, which version of the bom upgrade can solve the problem |
[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
Firebase crash.
Steps to reproduce:
message.getMessageType is null
Relevant Code:
The text was updated successfully, but these errors were encountered: