Re: [GADInterstitial dealloc] crash occurs on iOS platform using Admob SDK 6.3.0

1,298 views
Skip to first unread message

Rajkumar Parameswaran

unread,
Mar 18, 2013, 6:03:57 PM3/18/13
to google-adm...@googlegroups.com
Hey Liu,

Im trying your reproduction steps and can't seem to get the crash to occur. I've tried on an iPad and iPhone both running 6.1 (iPhone 5 and iPad 3). 

We do have a current issue we're looking at with the cleaning up of these interstitials (https://groups.google.com/forum/?fromgroups=#!msg/google-admob-ads-sdk/mPBD9SmXBVs/wqWCNH-C3sgJ) and I'm not sure if this is related to that?

Do you have any other steps which might help me reproduce your specific issue?


On Wed, Mar 13, 2013 at 4:27 AM, <cdu...@gmail.com> wrote:
Hi Google Experts,

I have encountered a serious crash issue when using Admob mediation for interstitials. It can be 100% reproduced.
Generally speaking, when application is switched to background while an interstitial is present, then next time a new interstitial is requested, the application will crash.

platform:  iOS 6.1.2
SDK:       Admob SDK 6.3.0
code:      Download the example project  - example provided by you.

result: App crash at line 60 of MainController.m:

self.interstitial = [[[GADInterstitial alloc] init] autorelease];


reproduce steps: 
1). After the example app starts up, Click the 'Show Interstitial' button to show the interstitial ad.
2). Press the 'Home' button of your iOS device
3). Go  back to the example app by clicking the app icon, then click the 'Show Interstitial' button again
4). You only need to repeat step 2 to 3 at most two times to see the crash.

Br,
Liu Ya


--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rajkumar Parameswaran

unread,
Mar 22, 2013, 2:05:58 PM3/22/13
to google-adm...@googlegroups.com
Yup, this issue we were able to reproduce and narrow down. We've got a fix in and it will definitely make it into the next SDK. In the meantime though, you may want to try clearing up your interstitial if it wasn't shown when your app gets backgrounded. This should stop that crash from happening.


On Tue, Mar 19, 2013 at 8:31 AM, <cdu...@gmail.com> wrote:
Hi Raj,

The crash I encountered was very similar to that described in your link. Only happend in mediated interstitial.

However, I found another way to reproduce the crash, even to use NO-MEDIATED interstitial.
1. Request an interstitial without showing it. i.e. DONOT call presentFromRootViewController
2. Switch the App to background
3. Switch the App back to foreground and call presentFromRootViewController or create a new interstitial using self.interstitial = [[[GADInterstitial allocinitautorelease];
4. Crash should happen

What's more, the previous hidden status bar will appear after step 3.
Hope you could reproduce this issue following my steps.

Br,
Liu Ya
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Liu Ya

unread,
Mar 22, 2013, 10:53:06 PM3/22/13
to google-adm...@googlegroups.com
Great to hear that!


You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/7xGUZlYlgYg/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.

Rajkumar Parameswaran

unread,
Apr 5, 2013, 7:38:53 PM4/5/13
to google-adm...@googlegroups.com
Unfortunately I think that only works when the interstitial hasn't been presented yet. We've got an updated SDK we're releasing soon which will fix this issue.


On Wed, Apr 3, 2013 at 2:44 AM, Marco Muccinelli <mucc...@gmail.com> wrote:
According to this discussion I inserted those lines: 
self.adInterstitial.delegate = nil;
self.adInterstitial = nil;

in 
- (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADRequestError *)error
and
- (void)applicationDidEnterBackground:(NSNotification *)notification

...but there are still crashes looking at Crashlytics!
When 6.3.1 will be released? :) thanks

Rajkumar Parameswaran

unread,
Apr 10, 2013, 7:04:05 PM4/10/13
to google-adm...@googlegroups.com
Hey,

We just released v6.4 of the SDK a couple days ago. Can you check it out and see if you're still seeing this issue?

Raj


On Sun, Apr 7, 2013 at 11:30 PM, Jarrold Ong <jar...@viki.com> wrote:
Hi Google Team,

I've also been experiencing this problem too but in a slightly different way but I think it might be linked.

I've got an interstitial setup with mediated ads (Tremor, Millenial, AdMob). I think what is happening is when the app goes to background while a banner ad is in view it will dealloc the interstitial 

and when the app becomes active again, 

- (void)interstitialDidDismissScreen:(GADInterstitial *)ad

will be called if its a banner ad (admob)  - if its a tremor video ad, interstitialDidDismissScreen: does not get called.

My code will release the interstitial again and this will cause the crash, right now the workaround I have is when the app goes to background I will not release the interstitial if the app returns to foreground.

I don't think the interstitial should be dismissed when the app is placed in the background via the home button (it should if the ad was tapped).

I'm retaining the interstitial so I'm wondering how it could reduced to memory count 0.

Do you have an estimate when the new SDK would be released?

Cheers,
Jarrold

On Saturday, April 6, 2013 7:38:53 AM UTC+8, Raj Parameswaran wrote:
Unfortunately I think that only works when the interstitial hasn't been presented yet. We've got an updated SDK we're releasing soon which will fix this issue.
On Wed, Apr 3, 2013 at 2:44 AM, Marco Muccinelli <mucc...@gmail.com> wrote:
According to this discussion I inserted those lines: 
self.adInterstitial.delegate = nil;
self.adInterstitial = nil;

in 
- (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADRequestError *)error
and
- (void)applicationDidEnterBackground:(NSNotification *)notification

...but there are still crashes looking at Crashlytics!
When 6.3.1 will be released? :) thanks

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jarrold Ong

unread,
Apr 10, 2013, 9:46:18 PM4/10/13
to google-adm...@googlegroups.com

Hi Raj. Yup the problem has been resolved with 6.4.0. Thanks!


Sent from Mailbox for iPhone


You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/7xGUZlYlgYg/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages