-
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
NPE in obfuscated code after calling trace.stop() #1383
Comments
Internally Tracking in b/152218504 |
Dry run on a Sample App doesn't yield any NPE and looks like it's not reproducible at your end too. Can you please (if possible) ping here the usage of that Trace object (Crashlytics provides that information in the Stack Trace I guess) which is throwing NPE, like:
|
Right, I haven't been able to reproduce. The basic usage looks like
and
We are not using Trace.CREATOR. There may be multiple traces that have been started and not yet stopped. I belatedly realized that the crash has affected many more users if I expand the time period, so I just looked at the first 100 crash reports. While the "stop trace" code is being called from four different places in our app, the stack traces (that I looked at) only come from two of them. The crashing call to the "stop tracking" code originates in a call to Completable's In case it's relevant:
|
I should note, though, that the calls to "stop tracking" code in the |
@ramanpreetSinghKhinda would putting the call to |
Thanks @sn-michiyo for the details. I am preparing a fix for this and plan to rollout in the upcoming release. Will update here with more details on that. |
Regarding this comment: |
Hi @sn-michiyo , I have some more questions: Q1. Can you explain what type of data structure are you using to Q2. Are you passing the Q3. Are you accessing the |
Hey @sn-michiyo. 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! |
Hi @ramanpreetSinghKhinda , Following your conversation with @sn-michiyo: We don't pass the Trace obj within activities, we create & store the and stop the traces: |
This should be fixed in Please reopen if the issue persists. |
Describe your environment
Describe the problem
Crashlytics is reporting 80 users experiencing a null pointer exception When calling
trace.stop();
We haven't seen this during development and trace object itself itsn't null; the crash comes in the obfuscated firebase code. Is there anything we can to prevent the crash?app-level build.gradle:
I don't see anything in the Trace docs about NPEs, and didn't find any mention of this in the issues for this repo.
I also looked at the release notes for Performance Monitoring for 19.0.1, 19.0.2, 19.0.3, 19.0.4, and 19.0.5 for mention of a NPE to see if upgrading would fix the issue, but don't see any mention of it.
The text was updated successfully, but these errors were encountered: