-
Notifications
You must be signed in to change notification settings - Fork 16
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
SurveyManager's NullPointerException crash spike #103
Comments
Hey @astamato! We've also experienced the exact same crash on one of our apps at Deliveroo, with more than 3K crashes on Sunday 😱 I'm a bit relieved to know it seems to be something wider, not just on our app! We're using Wootric SDK version As this happened on multiple apps which are not related, I guess it must be related to a Wootric API being down / sending an invalid parameter to the SDK, leading to the crash. Over to you Wootric team! |
Hi! Oh boy, this is not good. Sorry for the trouble! I will put this as a top priority but please be patient 🙏 we're low on resources and I'm doing my best. Thanks for reporting this! |
Hello, Is there any update on this? This issue happened a bit more than a week ago, and caused a major crash in our app. While it has auto-resolved, nothing indicates it won't happen again, which is very scary.
Thank you! |
☝️ In addition to these questions, I've created a quick patch as suggested by @astamato, please have a look at the PR. |
Hey @Yannshu thank you for your follow up message and submitting the patch. I also believe we should release a hotfix while further investigations take place. For the sake of transparency, last week we've been in communication with Wootric on our end, the messaging has been:
It would be beneficial for all clients of the SDK to know more about the nature of the event, which these safeguards are, and a high level timeline for releasing 1) the patch for Android which would give us all peace of mind 2) a broader solution. Cheers. |
Hi! We released version |
Thanks @diegoserranoa! Is there any news regarding why this happened and which measures were taken in order to prevent it from happening again? |
@Yannshu yes, like @astamato mentioned, we had an issue with our servers but we identified it and took measures on the backend side to prevent this from happening again. Now, on the client sides (mobile SDKs) we're scheduling some time to make improvements to the code. Making an app crash is definitely not good and the patch we released was just as an emergency. Putting things inside |
Hello guys;
Over the past few days (specifically past 24 hours) we noticed a spike on crashes happening in our production Android app in Firebase Analytics:
Taking a look at the code, we see that
currentEvent
is already null at this point (either because or a previous NullPointerException trying to run they survey, or the process called stop()) and because this line is not inside the try-catch in showSurveyFragment() for NullPointerException, it crashes.Can easily be resolved surrounding this two lines with the try-catch.
However it will maybe require further investigation down the line. Patching it this way might be hiding a bigger issue, an illegal state on the code that shouldn't have come to this.
We're on Wootric SDK version
2.18.1
.Hope this makes sense.
Thank you!
The text was updated successfully, but these errors were encountered: