Search code examples
iosswiftxcodefirebase-cloud-messagingxcode-instruments

Unable to track memory issue


I am having problem on memory leak tracking, i did try profiling but the instrument shows firapb_decode_repeated_user_attribute as as responsible object. And while i try to track code it takes me to assembly code which is more painful. Do anybody have similar issue or have some clue to track this issue, It will be a lot for me.

Leaked Object # Address Size Responsible Library Responsible Frame Malloc 32 Bytes 1 0x600000231ba0 32 Bytes appName firapb_decode_repeated_user_attribute

enter image description here

The Assembly code

enter image description here


Solution

  • Yes as Larme said it was the Firebase leaking the memory.

    I am still not knowing the exact cause (line of code) but disabling firebase app analytics from firebase plist solved the problem,

    Even you are not using firebase app analytics with setting IS_ANALYTICS_ENABLED = NO on GoogleService-Info.plist. fire base SDK seem executing the app analytic codes by default.

    Solution:- Adding FIREBASE_ANALYTICS_COLLECTION_ENABLED = NO on GoogleService-Info.plist, wipe out the leak problem.

    This is only my perception and observation, this topic may need more information and expiations.