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.

ANR during firebase initialisation

See original GitHub issue

Our users encounters ANR while initializing firebase. I added the stack trace below

"firebase-installations-executor-1" prio=5 tid=24 Blocked
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x162c2088 self=0x8bc13a00
  | sysTid=2487 nice=0 cgrp=default sched=0/0 handle=0x8ae67970
  | state=S schedstat=( 2596299 1043855 27 ) utm=0 stm=0 core=5 HZ=100
  | stack=0x8ad64000-0x8ad66000 stackSize=1042KB
  | held mutexes=
  at android.app.ContextImpl.getFilesDir (ContextImpl.java:647)
- waiting to lock <0x0ef8f412> (a java.lang.Object) held by thread 1
  at android.content.ContextWrapper.getFilesDir (ContextWrapper.java:239)
  at com.google.firebase.installations.b.a
  at com.google.firebase.installations.g.i
  at com.google.firebase.installations.g.c
  at com.google.firebase.installations.g.h
  at com.google.firebase.installations.g.a
  at com.google.firebase.installations.c.run
  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:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
google-oss-botcommented, Jun 9, 2020

I couldn’t figure out how to label this issue, so I’ve labeled it for a human to triage. Hang tight.

0reactions
google-oss-botcommented, Jun 24, 2020

Since there haven’t been any recent updates here, I am going to close this issue.

@sallukp if you’re still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ANR initializing Firebase Performance · Issue #3874 - GitHub
[READ] Step 1: Are you in the right place? Reporting ANR coming from Firebase Performance. [REQUIRED] Step 2: Describe your environment.
Read more >
Troubleshoot initialization options | Firebase - Google
If you initialize your app without a valid set of Firebase options, new users of your application will experience serious issues. Firebase options...
Read more >
Make sure to call FirebaseApp.initializeApp(Context) first in ...
In your SimpleBlog application class, initialize FirebaseApp in onCreate() method and remove it from RegisterActivity in order to have Firebase ...
Read more >
Take Control of Your Firebase Init on Android
The method you'll need to call is FirebaseApp.initializeApp(Context, FirebaseOptions). If you click through to the javadoc, you'll see a few ...
Read more >
firebase crash reporting caused an ANR on launch during ...
The repro was simply to add firebase as a dependency in our build process, and it caused a critical ANR on all devices...
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