iOS Native Ads Memory Leak

153 views
Skip to first unread message

Mert İdacı

unread,
Nov 29, 2019, 3:38:35 AM11/29/19
to Google Mobile Ads SDK Developers
Hello,

I am using Native Advanced ads for displaying ads in a UITableView. When the ads are loaded, the memory usage rises as expected. However, when I leave the ViewController, there is no drop in memory. Normally, ARC should free up RAM as the ViewController is no longer active. And the bad thing is that this ViewController (that the Native Ads are displayed in a UITableView) can be opened and closed multiple times in the app, eventually causing a huge memory leak and leading the app to crash.

There are also other items in the UITableView such as photos and texts, which are not a part of the ads. But these items don't cause any memory problem as they are deallocated after leaving the ViewController. The only problem is about the ads which I seem to have no control over.

I am using Google-Mobile-Ads-SDK (7.52.0).

Thanks in advance for your help...

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 29, 2019, 7:12:28 AM11/29/19
to mrti...@gmail.com, google-adm...@googlegroups.com
Hi there,

Thank you for reaching out to us.

Could you provide us the following details? This will help us investigate the issue further.
  • Sample project where we can see the memory leak behavior
  • Instruments recording
Please use the "Reply Privately to Author" option to share the details privately.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UODUHO:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Dec 2, 2019, 6:07:57 AM12/2/19
to mrti...@gmail.com, google-adm...@googlegroups.com
Hi there,

Thank you for providing the project and its reproducible steps to trigger the issue privately.

Let me share this to the rest of the team to get more insight regarding this. I'll get back to you the soonest they provide their feedback.


Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UODUHO:ref

Vasco

unread,
Dec 30, 2019, 8:10:58 AM12/30/19
to Google Mobile Ads SDK Developers
Did you guys find a solution? 

I am seeing a lot of GAD related memory leaks in my instruments tool stil...

Vasco

unread,
Dec 30, 2019, 8:32:10 AM12/30/19
to Google Mobile Ads SDK Developers
I am also seeing that the FB SDK is also partially creating memory leaks as well, eitherway this is what I am seeing in my instruments:
Screenshot 2019-12-30 at 14.29.53.png

Mert İdacı

unread,
Dec 31, 2019, 2:16:01 AM12/31/19
to Google Mobile Ads SDK Developers
Not yet. I uploaded the sample project. Waiting for Google to come up with a solution.

30 Aralık 2019 Pazartesi 16:10:58 UTC+3 tarihinde Vasco yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 1, 2020, 9:38:23 PM1/1/20
to vmeerma...@gmail.com, mrti...@gmail.com, google-adm...@googlegroups.com
Hi Vasco,

Hope this message finds you well.

With regard to your concern, would you able to provide a sample project and its Instruments recording where you're seeing the memory leaks? Once provided, I'll relay the information to the rest of the team for further investigation and get back to you as soon as they provide their findings.

mrtidaci@,

Please be informed that the project file has been submitted to the rest of the team and currently under investigation. Rest assured that the team is actively working on this.


Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UOFT8N:ref

Mert İdacı

unread,
Jan 3, 2020, 1:23:37 AM1/3/20
to Google Mobile Ads SDK Developers
Ok, thank you for your interest...

2 Ocak 2020 Perşembe 05:38:23 UTC+3 tarihinde mobileadssdkforumadvisor yazdı:

Mobile Ads SDK Forum Advisor Prod

unread,
Jan 3, 2020, 5:26:13 AM1/3/20
to mrti...@gmail.com, google-adm...@googlegroups.com
Hi there,

Are you having an issue related to this thread? Could you provide the details of your concern? We'll be happy to assist you.
Reply all
Reply to author
Forward
0 new messages