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.

Fatal Exception: java.lang.IllegalStateException [Performance Monitoring]

See original GitHub issue

Multiple crashes on production:

Fatal Exception: java.lang.IllegalStateException
       at com.google.firebase.iid.FirebaseInstanceId.h(com.google.firebase:firebase-iid@@20.1.0:12)
       at com.google.firebase.iid.FirebaseInstanceId.a(com.google.firebase:firebase-iid@@20.1.0:14)
       at e.j.c.r.b.f.a(com.google.firebase:firebase-perf@@19.0.5:63)
       at e.j.c.r.b.e.run(com.google.firebase:firebase-perf@@19.0.5:22)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

I am not able to reproduce the issue on the live setup. This is occurring on all supported Android OS (5 to 9).

Firebase Component: Performance Monitoring

Version: 19.0.5

I understand that 19.0.6 was released with an NPE fix. I am doubtful that upgrading to the latest will fix the issue.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ramanpreetSinghKhindacommented, May 6, 2020

@Gnzlt Thanks for reaching out. Your stack traces looks very similar to -> https://github.com/firebase/firebase-android-sdk/issues/1528

Can you followup there?

0reactions
ankitaj224commented, May 12, 2020

@Gnzlt Thanks for the logs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix The IllegalStateException in Java - Rollbar
An IllegalStateException is a runtime exception in Java that is thrown to indicate that a method has been invoked at the wrong time....
Read more >
Firebase Performance Monitoring, Can't instrument ...
I had the same issue, and the fix was to move the classpath of the firebase performance before the other plugin that has...
Read more >
java.lang.IllegalStateException: could not load open ssl
We have an Android app that is hosted internally via Workspace ONE UEM. It uses the Android SDK 21.11 and is working well....
Read more >
Re: Fatal Exception error while recording the user session
Fatal Exception : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.dynatrace.android.ragetap.detection.
Read more >
7 Common Mistakes You Should Avoid When Handling Java ...
So, instead of specifying the two different exceptions that are thrown by the following code snippet, you could just use the java.lang.Exception ......
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