FirebaseAuthFallbackService memory leak
See original GitHub issue[READ] Step 1: Are you in the right place?
yes
[REQUIRED] Step 2: Describe your environment
- Android Studio version: 4.1.2 Stable
- Firebase Component: Firebase Authentication
- Component version: 20.0.2
[REQUIRED] Step 3: Describe the problem
LeakCanary is telling me that "FirebaseAuthFallbackService " is leaking. I just “AuthStateListener” in my ActivityClass which lives through the entire app lifecycle, to check if the user signed out. And “Firebase.auth” for taking currentUser instance. That’s all
Steps to reproduce:
Happening every time I open the app, sometimes when I close the app, sometimes when It goes to the background, LeakCanary starts dumping the heap and throwing this memory leak.
Relevant Code:
┬───
│ GC Root: Global variable in native code
│
├─ com.google.firebase.auth.api.fallback.service.zza instance
│ Leaking: UNKNOWN
│ Retaining 1.7 kB in 10 objects
│ zza instance of com.google.firebase.auth.api.fallback.service.
│ FirebaseAuthFallbackService
│ ↓ zza.zza
│ ~~~
╰→ com.google.firebase.auth.api.fallback.service.FirebaseAuthFallbackService
instance
Leaking: YES (ObjectWatcher was watching this because com.google.firebase.
auth.api.fallback.service.FirebaseAuthFallbackService received
Service#onDestroy() callback)
Retaining 1.2 kB in 9 objects
key = d411935b-9bcd-4a8d-8362-a6c8687aec0e
watchDurationMillis = 5285
retainedDurationMillis = 281
mApplication instance of com.upgrades.venue.pro.MainApplication
mBase instance of android.app.ContextImpl
Issue Analytics
- State:
- Created 3 years ago
- Reactions:69
- Comments:75 (5 by maintainers)
Top Results From Across the Web
Leak at zza.zza FirebaseAuthFallbackService - Stack Overflow
The Firebase Android client SDK is causing a memory leak and many users are facing it. This is filed as an internal bug...
Read more >FirebaseAuthFallbackService leak : r/androiddev - Reddit
Its leak that going a lot but i use FirebaseAuth.getInstance only in repository Have no idea what is the problem Also have Google...
Read more >Deep dive into Android ANR | OkCredit - Medium
We recommend optimizing memory allocation in the app and fixing memory leaks. We use leak canary on debug builds for this. leak canary...
Read more >Wilhansen Li (@WilhaneL) / Twitter
A memory leak in the Android Firebase SDK has finally been fixed after more than a year This ... FirebaseAuthFallbackService memory leak ·...
Read more >Choices v2.9.4 SB Licensed.apk - Hybrid Analysis
Found potential URL in binary/memory ... Failed to remove pending transform - this may lead to memory leaks!
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
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 heard that they will assign this to a software engineer intern in summer of 2035
Today is Jan 1, 2022, the issue was reported on Jan 31, 2021…