admob transaction too large on android

Is this something that anyone else has seen on android?  We’re getting a fair number of them lately and they all appear to be related to admob

java.lang.RuntimeException: Package manager has died
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:77)
at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
at com.google.android.gms.internal.u.a(Unknown Source)
at com.google.android.gms.internal.ah.j(Unknown Source)
at com.google.android.gms.internal.ah.a(Unknown Source)
at com.google.android.gms.ads.InterstitialAd.loadAd(Unknown Source)
at CoronaProvider.ads.admob.AdMobAd$2.run(AdMobAd.java:176)
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)
Caused by: android.os.TransactionTooLargeException
at android.os.BinderProxy.transact(Native Method)
at android.content.pm.IPackageManager$Stub$Proxy.getPackageInfo(IPackageManager.java:1393)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:72)
… 15 more

Can you provide more context as to what you’re doing?  I see in another thread you’re using Chartboost as well.  Perhaps posting your build.settings, and how you’re trying to use ads might help.

Also what version of Corona SDK are you building with?

Rob

Yes we have several ad providers built into the app and for now we’re using admob and chartboost interstitials since we’ve found that gives us better ecpm when we combine them (we show a couple of one, then a couple of the other, etc).  We were building with an interim build to get admob support (v2014.2446) .  Most of our customers aren’t seeing any issues but we get at least 1 crash report a day with the above error.  We’re qualifying a new version with the latest build (v2014.2511).  We’re also testing turning off video ads in admob to see if that is a cause of the issue.

settings =

{

        orientation =

        {

        --default = “landscapeRight”,

    supported = { “portrait”, “portraitUpsideDown” },

        },

    build =

       {

        neverStripDebugInfo = true

       },

    android =

       {

       usesPermissions =

          {

          “android.permission.INTERNET”,

          “android.permission.ACCESS_NETWORK_STATE”,

          “android.permission.READ_PHONE_STATE”,

          “android.permission.GET_ACCOUNTS”,

          “android.permission.CAMERA”,

          “android.permission.RECEIVE_BOOT_COMPLETED”,

          “android.permission.READ_EXTERNAL_STORAGE”,

          “com.google.android.c2dm.permission.RECEIVE”,

          “.permission.C2D_MESSAGE”,

          “com.android.vending.BILLING”,

          “android.permission.WRITE_EXTERNAL_STORAGE”,

          },

       usesFeatures=

        {

            { name=“android.hardware.camera”,required=false},

        },

       },

    iphone =

        {

                plist =

                {

                        UIStatusBarHidden = false,

                        UIApplicationExitsOnSuspend = false,

                        CFBundleIconFile = “Icon.png”,

                        CFBundleIconFiles =

                            {

                                “Icon.png”,

                                “Icon@2x.png”,

                                “Icon-60.png”,

                                “Icon-60@2x.png”,

                                “Icon-60@3x.png”,

                                “Icon-72.png”,

                                “Icon-72@2x.png”,

                                “Icon-76.png”,

                                “Icon-76@2x.png”,

                                “Icon-Small-40.png”,

                                “Icon-Small-40@2x.png”,

                                “Icon-Small-40@3x.png”,

                                “Icon-Small-50.png”,

                                “Icon-Small-50@2x.png”,

                                “Icon-Small.png”,

                                “Icon-Small@2x.png”,

                                “Icon-Small@3x.png”

                            },

                        UIAppFonts =

                            {

                            “FredokaOne-Regular.ttf”,

                            “Signika-Regular.ttf”

                            },

                        FacebookAppID = “788XXXX”,

                        CFBundleURLTypes =

                            {

                                {

                                CFBundleURLSchemes =

                                {

                                “fb788XXXX”,

                                }

                            }

                        }

                },

        },

    plugins =

        {

        [“CoronaProvider.analytics.flurry”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

        [“plugin.chartboost”] =

        {

            publisherId = “com.swipeware”

        },

        [“CoronaProvider.ads.iads”] =

                {

                publisherId = “com.coronalabs”,

                supportedPlatforms = { iphone=true, [“iphone-sim”]=true },

                },

        [“CoronaProvider.ads.vungle”] =

            {

            publisherId = “com.vungle”,

            },

        [“plugin.google.play.services”] =

            {

            publisherId = “com.coronalabs”

            },

       [“facebook”] =

        {

            publisherId = “com.coronalabs”,

        },

        [“plugin.google.iap.v3”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true }

        },

        },

}

If you can get it to where you can reproduce this, I would invite you to file a bug report using the link at the top of the page.  You will need to include a complete sample that demos the problem and must include a config.lua, build.settings and any assets needed to run the app, bundled in a .zip file.  You will get an email with a case # in the subject.  Please post that number here as a reference.

Rob

Can you provide more context as to what you’re doing?  I see in another thread you’re using Chartboost as well.  Perhaps posting your build.settings, and how you’re trying to use ads might help.

Also what version of Corona SDK are you building with?

Rob

Yes we have several ad providers built into the app and for now we’re using admob and chartboost interstitials since we’ve found that gives us better ecpm when we combine them (we show a couple of one, then a couple of the other, etc).  We were building with an interim build to get admob support (v2014.2446) .  Most of our customers aren’t seeing any issues but we get at least 1 crash report a day with the above error.  We’re qualifying a new version with the latest build (v2014.2511).  We’re also testing turning off video ads in admob to see if that is a cause of the issue.

settings =

{

        orientation =

        {

        --default = “landscapeRight”,

    supported = { “portrait”, “portraitUpsideDown” },

        },

    build =

       {

        neverStripDebugInfo = true

       },

    android =

       {

       usesPermissions =

          {

          “android.permission.INTERNET”,

          “android.permission.ACCESS_NETWORK_STATE”,

          “android.permission.READ_PHONE_STATE”,

          “android.permission.GET_ACCOUNTS”,

          “android.permission.CAMERA”,

          “android.permission.RECEIVE_BOOT_COMPLETED”,

          “android.permission.READ_EXTERNAL_STORAGE”,

          “com.google.android.c2dm.permission.RECEIVE”,

          “.permission.C2D_MESSAGE”,

          “com.android.vending.BILLING”,

          “android.permission.WRITE_EXTERNAL_STORAGE”,

          },

       usesFeatures=

        {

            { name=“android.hardware.camera”,required=false},

        },

       },

    iphone =

        {

                plist =

                {

                        UIStatusBarHidden = false,

                        UIApplicationExitsOnSuspend = false,

                        CFBundleIconFile = “Icon.png”,

                        CFBundleIconFiles =

                            {

                                “Icon.png”,

                                “Icon@2x.png”,

                                “Icon-60.png”,

                                “Icon-60@2x.png”,

                                “Icon-60@3x.png”,

                                “Icon-72.png”,

                                “Icon-72@2x.png”,

                                “Icon-76.png”,

                                “Icon-76@2x.png”,

                                “Icon-Small-40.png”,

                                “Icon-Small-40@2x.png”,

                                “Icon-Small-40@3x.png”,

                                “Icon-Small-50.png”,

                                “Icon-Small-50@2x.png”,

                                “Icon-Small.png”,

                                “Icon-Small@2x.png”,

                                “Icon-Small@3x.png”

                            },

                        UIAppFonts =

                            {

                            “FredokaOne-Regular.ttf”,

                            “Signika-Regular.ttf”

                            },

                        FacebookAppID = “788XXXX”,

                        CFBundleURLTypes =

                            {

                                {

                                CFBundleURLSchemes =

                                {

                                “fb788XXXX”,

                                }

                            }

                        }

                },

        },

    plugins =

        {

        [“CoronaProvider.analytics.flurry”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

        [“plugin.chartboost”] =

        {

            publisherId = “com.swipeware”

        },

        [“CoronaProvider.ads.iads”] =

                {

                publisherId = “com.coronalabs”,

                supportedPlatforms = { iphone=true, [“iphone-sim”]=true },

                },

        [“CoronaProvider.ads.vungle”] =

            {

            publisherId = “com.vungle”,

            },

        [“plugin.google.play.services”] =

            {

            publisherId = “com.coronalabs”

            },

       [“facebook”] =

        {

            publisherId = “com.coronalabs”,

        },

        [“plugin.google.iap.v3”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true }

        },

        },

}

If you can get it to where you can reproduce this, I would invite you to file a bug report using the link at the top of the page.  You will need to include a complete sample that demos the problem and must include a config.lua, build.settings and any assets needed to run the app, bundled in a .zip file.  You will get an email with a case # in the subject.  Please post that number here as a reference.

Rob