firebase-ios-sdk
firebase-ios-sdk copied to clipboard
Memory Leak when calling FirebaseApp.configure
Description
When I was investigating memory leak in our App, after eliminating some of potential codes I found that one of the memory leak issues is actually caused by Firebase iOS SDK and it happens after calling FirebaseApp.configure. I attached the screenshot from memory graph debugger, unfortunately there is no useful information from the backtrace but can confirm all the APMP thing is from Firebase SDK.

Reproducing the issue
Call FirebaseApp.configure on App Launch and turn on Debug Memory Graph after the app finish launching.
Firebase SDK Version
10.2.0
Xcode Version
14.1
Installation Method
Zip
Firebase Product(s)
AB Testing, Analytics, Crashlytics, DynamicLinks, In-App Messaging, Installations, Messaging, Performance, Remote Config
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
APMP prefixed symbols are from FirebaseAnalytics
Can confirm this as well
Xcode 14.3, Firebase SDK 10.6.0
@skuske Instruments is showing the leak in a FirebaseAnalytics module in this report versus a FirebaseSessions module in #11027 - so these are almost certainly different leaks.
I'm getting this leak as well. Any news on the fix?
Thank you for reporting this issue. We have confirmed the issue and are working on a fix. However, the fix requires a number of changes, so it may not be available soon.
The good news is that the memory leak appears to be a fixed amount, i.e. it won't increase over time, so users shouldn't see much of an impact.
thanks for the update @tsunghung.
looking forward to the fix being rolled out when ready.
any news?
I still have this memory leak
Sorry about that. Please see the comment.
We have confirmed the issue and are working on a fix. However, the fix requires a number of changes, so it may not be available soon. The good news is that the memory leak appears to be a fixed amount, i.e. it won't increase over time, so users shouldn't see much of an impact.
We see an impact on initial load. Any updates?
Any updates on the fix even iam facing the issue
We are also seeing this.
We are facing the same issue for the past six months, any updates ?
Sorry for the long wait. The fix will be available in the next release in early March.
Sorry again for the long wait. The fix is now available in the Firebase 10.22.0 release.
noted, thanks for the assistance @paulb777 @tsunghung @andrewheard !