Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak when calling FirebaseApp.configure #11071

Closed
edys00 opened this issue Apr 4, 2023 · 17 comments
Closed

Memory Leak when calling FirebaseApp.configure #11071

edys00 opened this issue Apr 4, 2023 · 17 comments
Assignees

Comments

@edys00
Copy link

edys00 commented Apr 4, 2023

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.
Screen Shot 2023-04-04 at 11 30 01
Screen Shot 2023-04-04 at 11 29 54

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!
@google-oss-bot
Copy link

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

@paulb777
Copy link
Member

paulb777 commented Apr 4, 2023

APMP prefixed symbols are from FirebaseAnalytics

@ohserezha
Copy link

Can confirm this as well

Xcode 14.3, Firebase SDK 10.6.0

@paulb777
Copy link
Member

paulb777 commented Apr 7, 2023

@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.

@strahinja-mem
Copy link

I'm getting this leak as well. Any news on the fix?

@tsunghung
Copy link
Contributor

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.

@edys00
Copy link
Author

edys00 commented Apr 17, 2023

thanks for the update @tsunghung.

looking forward to the fix being rolled out when ready.

@Anton-Ivchenko-Axon
Copy link

any news?

@osfunapps
Copy link

I still have this memory leak

@tsunghung
Copy link
Contributor

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.

@Appzelof
Copy link

We see an impact on initial load. Any updates?

image

@Invader1999
Copy link

Any updates on the fix even iam facing the issue

@jotai-coder
Copy link

We are also seeing this.

@Ilyeesz
Copy link

Ilyeesz commented Feb 17, 2024

We are facing the same issue for the past six months, any updates ?

@tsunghung
Copy link
Contributor

Sorry for the long wait. The fix will be available in the next release in early March.

@paulb777 paulb777 added this to the 10.22.0 - M144 milestone Feb 19, 2024
@andrewheard
Copy link
Contributor

Sorry again for the long wait. The fix is now available in the Firebase 10.22.0 release.

@edys00
Copy link
Author

edys00 commented Mar 16, 2024

noted, thanks for the assistance @paulb777 @tsunghung @andrewheard !

@firebase firebase locked and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests