question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException on Firebase Performance Dependency

See original GitHub issue

Describe your environment

  • Android Studio version: Android Studio 4.2 Beta 4
  • Firebase Component: Performance
  • Component version: 19.0.2

Describe the problem

We’ve just included the Firebase Performance Library with dependency version 19.0.2 implementation 'com.google.firebase:firebase-perf:19.0.2'

and Firebase Performace Gradle Plugin Version 1.3.4 classpath 'com.google.firebase:perf-plugin:1.3.4'

Rest no manual code is written at our end for the Firebase Performance library, still, we’re getting an NPE on our Crashlytics, the stack trace for which I’ve added below.

99% of these events occurred on Background, 96% for Xiaomi devices and 91% on Android 9 devices. There are a lot of instances reported for this crash.

Steps to reproduce:

We haven’t added anything explicitly for the Firebase Performance library in our code, hence there are no concrete steps to reproduce, here’s the stack trace of Crashlutics though

       at com.google.firebase.perf.internal.zzv.zzh(zzv.java:65)
       at com.google.firebase.perf.internal.zzv.<init>(zzv.java:2)
       at com.google.firebase.perf.internal.zzf.zzam(zzf.java:47)
       at com.google.firebase.perf.internal.zzf.zzc(zzf.java:194)
       at com.google.firebase.perf.internal.zze.run(zze.java:2)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:764)```

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
therealshabicommented, Mar 8, 2021

Hi @jposuna…Thanks for your help…Updating the com.google.firebase:firebase-perf to 19.1.1 removed that crash. This is fixed now

1reaction
jposunacommented, Feb 24, 2021

Hi @therealshabi, thanks for reporting this.

Before debugging further, can you update the com.google.firebase:firebase-perf library to the latest version? https://firebase.google.com/support/release-notes/android#latest_sdk_versions.

Version 19.0.2 is from Nov 2019, so it’s likely that this issue is not present in the most recent version.

Please let me know if you still have this issue with version 19.1.1 of the Firebase Performance Library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android App crash with Firebase (Null Pointer Exception)
After days of investigation, I've finally found what causes the Null Pointer Exception . There was a google-play-services.jar residing in ...
Read more >
Firebase Android SDK Release Notes - Google
Performance Monitoring version 20.3.0. Fixed a NullPointerException crash when instrumenting screen traces on Android 7, 8, and 9.
Read more >
Firebase performance plugin ExceptionInInitializerError
I was able to successfully reproduce the NullPointerException with the provided steps. The method that is throwing a NullPointerException is `void com.google.
Read more >
Firebase Nullpointer Exception - ADocLib
Android Studio version: 3.5.2; Firebase Component: Performance monitoring NullPointerException: Attempt to invoke virtual method 'boolean d.h.c.h.a.c'.
Read more >
WorkManager - Android Developers
This introduces performance gains by unifying work request scheduling to a single process. To use work-multiprocess , define a dependency on: implementation ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found