Millennial Media with AdMob Mediation malloc error - iOS

213 views
Skip to first unread message

Touche Apps

unread,
Jul 19, 2012, 10:35:03 PM7/19/12
to google-adm...@googlegroups.com
Hi,

I'm almost done integrating the AdMob Mediation and all of the different ad networks..so far i've got AdMob Network , iAd, Jumptap, inMobi. All are working fine.

Now i'm trying to add Millennial Media. I actually already use their SDK in my app for interstitial ads but now I want them as normal banner ads as well so I created a new Ad placement on the MM dashboard set up the APID in the AdMob Mediation settings. I already had the Millennial Media SDK added so I just had to add the iOS Adaper.

All done everything compiles fine and runs but when it receives an ad from MM I receive

(26133,0xad2612c0) malloc: *** error for object 0xa0882c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

So I set a breakpoint in malloc_error_break and that pauses on  [MMGenericAdView dealloc] with EXC_BAD_ACCESS.

I have no idea where to go from here so any help is appreciated!


Rajkumar Parameswaran

unread,
Jul 20, 2012, 3:24:46 PM7/20/12
to google-adm...@googlegroups.com
What version of iOS and the AdMob SDK are you using? Have you tried the most recent version of the AdMob SDK (6.1.1/2)?

Are you saying that this pops up after adViewDidFailToReceiveAdWithError? Or is this popping up even before that when you hit loadRequest:?



--
 
 
 

Touche Apps

unread,
Jul 20, 2012, 6:18:34 PM7/20/12
to google-adm...@googlegroups.com
I was getting the same error on my device (iPhone 4 iOS 5.1.1) and the iPhone Simulator (iOS 5.1) both are using the 6.1.1 AdMob SDK.

I didn't have any logs in (void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestError *)error so i'm not sure if it was before or after....either way I just tried again today (on device and simulator) and i'm receiving ads with no errors.

Is it possible that I was getting that error because I had just created the new Ad placement in the Millennial Media dashboard less than an hour earlier (possibly not approved or set up correctly on their server yet) That's what i'm assuming was happening since now it works fine and I haven't changed anything!


On Friday, July 20, 2012 3:24:46 PM UTC-4, Raj Parameswaran wrote:
What version of iOS and the AdMob SDK are you using? Have you tried the most recent version of the AdMob SDK (6.1.1/2)?

Are you saying that this pops up after adViewDidFailToReceiveAdWithError? Or is this popping up even before that when you hit loadRequest:?

Rajkumar Parameswaran

unread,
Jul 20, 2012, 7:20:38 PM7/20/12
to google-adm...@googlegroups.com
It's possible, I don't know how Millennial's ad placements work on the backend, but I"m glad to hear you're up and running again.

--
 
 
 

Touche Apps

unread,
Jul 30, 2012, 4:42:52 PM7/30/12
to google-adm...@googlegroups.com
Hi mMedia Support,

Glad to see you guys are reading the forums and trying to help out :)

However once the new Ad Unit I created was approved (the next day) I was receiving ads correctly and it hasn't crashed since so I can't really replicate the problem. My guess is the Ad Placement wasn't fully created or ready yet when I tried and that's what caused the crash.
Reply all
Reply to author
Forward
0 new messages