Memory Leaks in iOS Devices

108 views
Skip to first unread message

Kelvin Ng

unread,
Aug 17, 2011, 12:41:36 AM8/17/11
to Google AdMob Ads Developers
HI,

I am using AdMob SDK 4.1.1, on Mac OS Lion with Xcode 4.1.

The SDK is fine when testing with simulator, but I found memory leaks
when testing on real device (iPhone 4 with iOS 4.3.5). The leaks
happen everytime it loads the ad banner, as well as subsequence ad
refreshes.

Does anyone have the same problem?

Kelvin
Message has been deleted

Dean Browne

unread,
Aug 17, 2011, 2:09:09 AM8/17/11
to google-adm...@googlegroups.com
There are some minor memory leaks within UIWebView.  They are in many apps and SDKs.  Not much we can do about them.

Or did you see a leak coming from an AdMob stack trace?  If you see that I'd love to trace to fix it.  We're not aware of any leaks caused by the 4.1.1 SDK directly.

Thanks!
 - Dean Browne
--
Dean Browne | Software Engineer | Mobile Advertising | deanb...@google.com

Kelvin Ng

unread,
Aug 19, 2011, 12:59:16 AM8/19/11
to Google AdMob Ads Developers
Hi Dean,

I created a very simple project with just an AdMob banner to reproduce
the leaks. The Instruments stack trace are also included here:

http://dl.dropbox.com/u/2226903/AdMobTest.zip

Memory leaks appear everytime it loads / refreshes the banner. It only
happens in real devices, but not simulator. The stack trace shows the
leaks are from "GeneralBlock" but no other details provided. Please
take a look.

Kelvin

On Aug 17, 2:09 pm, Dean Browne <deanbro...@google.com> wrote:
> There are some minor memory leaks within UIWebView.  They are in many apps
> and SDKs.  Not much we can do about them.
>
> Or did you see a leak coming from an AdMob stack trace?  If you see that I'd
> love to trace to fix it.  We're not aware of any leaks caused by the 4.1.1
> SDK directly.
>
> Thanks!
>  - Dean Browne
>
> On Tue, Aug 16, 2011 at 9:41 PM, Kelvin Ng <kelvin8...@gmail.com> wrote:
> > HI,
>
> > I am using AdMob SDK 4.1.1, on Mac OS Lion with Xcode 4.1.
>
> > The SDK is fine when testing with simulator, but I found memory leaks
> > when testing on real device (iPhone 4 with iOS 4.3.5). The leaks
> > happen everytime it loads the ad banner, as well as subsequence ad
> > refreshes.
>
> > Does anyone have the same problem?
>
> > Kelvin
>
> --
> Dean Browne | Software Engineer | Mobile Advertising | deanbro...@google.com

Dean Browne

unread,
Aug 19, 2011, 11:37:03 AM8/19/11
to google-adm...@googlegroups.com
Thanks Kelvin,

This is a bug within UIWebView.  Everything that uses a UIWebView has this same leak.

I encourage you to file a bug with Apple at https://bugreport.apple.com/.  Apple uses this for feedback and is very, very good about their bugs.  Unfortunately this leak has existed since iOS 2 so I imagine it is difficult to fix.  Still the more reports they get the more likely they will be to fix it.

-D
Dean Browne | Software Engineer | Mobile Advertising | deanb...@google.com

Reply all
Reply to author
Forward
0 new messages