[Android] NullPointerException in AdMob SDK 6.3.0

749 views
Skip to first unread message

Kevin Yuan

unread,
Feb 21, 2013, 7:01:44 AM2/21/13
to google-adm...@googlegroups.com
I switched to GoogleAdMobAdsSdk-6.3.0.jar yesterday and received hundreds of crach reports. I think it's time to switch back to old version.

Exception 1:
(Number of reports: some hundreds)
------------------------------------

java.lang.NullPointerException
at com.google.ads.internal.c$a.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)

Exception 2:
(Number of reports: dozens)
------------------------------------

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mypackage/com.mypackage.MainScreen}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.google.ads.ak.f(Unknown Source)
at com.google.ads.ak.b(Unknown Source)
at com.google.ads.ak.a(Unknown Source)
at com.google.ads.n.<init>(Unknown Source)
at com.google.ads.internal.d.<init>(Unknown Source)
at com.google.ads.InterstitialAd.<init>(Unknown Source)
at com.google.ads.InterstitialAd.<init>(Unknown Source)
at com.mypackage.MainScreen.F(Unknown Source)
at com.mypackage.MainScreen.onCreate(Unknown Source)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
... 11 more

Eric Leichtenschlag

unread,
Feb 22, 2013, 3:34:04 PM2/22/13
to google-adm...@googlegroups.com
Thanks for reporting - both look like they're our fault. They are both interstitial-related (and AdMob interstitial in particular) - banners should be unaffected.

Can you provide any additional information for the second crash what devices they occurred be on, or the line numbers for com.google.ads classes (it looks like you're proguarding your own app and it wiped the line numbers)?

Eric


--
 
---
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.
 
  

Kevin Yuan

unread,
Feb 22, 2013, 9:31:49 PM2/22/13
to google-adm...@googlegroups.com
Hi Eric,

You're welcome. Thanks for your response.

The 2nd crash occurs on the following devices:
HTC One X|4.1.1|htc_europe/endeavoru/endeavoru:4.1.1/JRO03C/128187.31:user/release-keys
GT-I9000|2.3.3|samsung/GT-I9000/GT-I9000:2.3.3/GINGERBREAD/XWJVH:user/release-keys
GT-I9000|2.3.3|samsung/GT-I9000/GT-I9000:2.3.3/GINGERBREAD/BOJV9:user/release-keys
LG-VM670|2.3.7|lge/thunderg/thunderg:2.3.3/GRI40/LG-P500-V20g.19C11F164C:user/release-keys

Yes, my app is proguarded. I can't see the line numbers in reports.

p.s. Why can't I reproduce any of these craches while receiving a lot of them from my users?? Please would you tell my how to reproduce the craches??
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Eric Leichtenschlag

unread,
Feb 25, 2013, 3:13:14 PM2/25/13
to google-adm...@googlegroups.com
Hey Kevin,

We haven't fully tracked down the second one yet. The first one happens only when an interstitial fails to load (won't happen in a success case), and even then is a special case within that scope. The good news about it being hard to reproduce is that the number of crashes for users should be less.

Thanks,
Eric


To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.

FiltrSoft

unread,
Feb 27, 2013, 11:58:11 AM2/27/13
to google-adm...@googlegroups.com
I am getting the "canScrollHorizontally" error, as well.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

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

Eric Leichtenschlag

unread,
Mar 1, 2013, 11:38:13 AM3/1/13
to google-adm...@googlegroups.com
We're planning on a hotfix release for Android next week which will include fixes for the 3 bugs posted in this thread (the two interstitial crashes in the original post, and the ViewPager fix).

Thanks,
Eric


To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.

Sam Lu

unread,
Mar 2, 2013, 2:49:37 AM3/2/13
to google-adm...@googlegroups.com
I am using the banner ads but my apps experience the same crash error. Here is the code stack:
Caused by: java.lang.NullPointerException
at com.google.ads.ak.f(SourceFile:341)
at com.google.ads.ak.b(SourceFile:95)
at com.google.ads.ak.a(SourceFile:69)
at com.google.ads.n.<init>(SourceFile:158)
at com.google.ads.internal.d.<init>(SourceFile:266)
at com.google.ads.AdView.a(SourceFile:508)
at com.google.ads.AdView.<init>(SourceFile:94) 

FiltrSoft

unread,
Mar 4, 2013, 12:24:35 PM3/4/13
to google-adm...@googlegroups.com
Should look into getting a new QA team while you're at it.

Raj Parameswaran

unread,
Mar 7, 2013, 3:18:34 PM3/7/13
to google-adm...@googlegroups.com
Hey all,

We just released v6.3.1 of the SDK which should address these NPEs, check it out at https://developers.google.com/mobile-ads-sdk/download.

Raj

Anatoly Lubarsky

unread,
Mar 7, 2013, 9:19:26 PM3/7/13
to google-adm...@googlegroups.com
Does it fix lots of ANR I've seen on 6.3.0?
 
at dalvik.system.DexClassLoader.<init>(DexClassLoader.java:57)
 
etc

William Ferguson

unread,
Mar 8, 2013, 7:59:04 PM3/8/13
to google-adm...@googlegroups.com
Hi Raj, just a note that 6.3.1 is not yet shipping via the Android SDK Manager downloads.

William
Reply all
Reply to author
Forward
0 new messages