ANR during firebase initialisation
See original GitHub issueOur 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:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I couldn’t figure out how to label this issue, so I’ve labeled it for a human to triage. Hang tight.
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.