Crash report on SDK v 9.8.00 java.lang.OutOfMemoryError

305 views
Skip to first unread message

Yan MESS

unread,
Oct 25, 2016, 9:39:52 AM10/25/16
to Google Mobile Ads SDK Developers
I got this report from a user with Grand Prime Android 5.1

java.lang.OutOfMemoryError: Failed to allocate a 152530 byte allocation with 127648 free bytes and 124KB until OOM

at java.lang.String.<init>(String.java:343)
at java.lang.String.<init>(String.java:206)
at android.util.Base64.encodeToString(Base64.java:456)
at org.chromium.android_webview.AwContents.loadDataWithBaseURL(AwContents.java:1538)
at com.android.webview.chromium.WebViewChromium.loadDataWithBaseURL(WebViewChromium.java:609)
at android.webkit.WebView.loadDataWithBaseURL(WebView.java:946)
at com.google.android.gms.ads.internal.webview.m.loadDataWithBaseURL(:com.google.android.gms.DynamiteModulesA:452)
at com.google.android.gms.ads.internal.webview.l.loadDataWithBaseURL(:com.google.android.gms.DynamiteModulesA:385)
at com.google.android.gms.ads.internal.renderer.l.a(:com.google.android.gms.DynamiteModulesA:46)
at com.google.android.gms.ads.internal.renderer.a.d(:com.google.android.gms.DynamiteModulesA:3070)
at com.google.android.gms.ads.internal.renderer.j.a(:com.google.android.gms.DynamiteModulesA:118)
at com.google.android.gms.ads.internal.j.run(:com.google.android.gms.DynamiteModulesA:233)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5910)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

Any fix?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 25, 2016, 10:31:30 AM10/25/16
to Google Mobile Ads SDK Developers
Hi there,

Can you provide me the following details:
  • More detailed crash logs. Also, the frequency of these crashes and whether this is device specific.
  • Were you able to reproduce this issue locally. If so, the steps to do so.
  • What is your Google Play Services version?
  • And Charles logs if you were able to record it when it crashes.
Thanks,
Arjun Busani
Mobile Ads SDK Team

Yan MESS

unread,
Oct 25, 2016, 10:48:40 AM10/25/16
to google-adm...@googlegroups.com

Hi Arjun,

Thanks for your quick reply.

I got this crash yesterday only one time from a user and that's all information that it shows in my developer console.

I am not able to reproduce it as it worked fine when testing ads with debug mode.

I used version 9.8.00 which might be the last version of GPS. I used Ads part of GPS in compile dependencies.

I think that it's more related to the device having very low memory but maybe you can handle it to avoid crashing the entire app.

Cheers,
Yan


--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/xtnAcmnPYFI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Oct 25, 2016, 11:05:02 AM10/25/16
to Google Mobile Ads SDK Developers
Hi there,

We had a similar reported incident a while back but were never able to reproduce it locally. But I have again shared your logs with the team and we will update you once we have any more information. Also, do send us any more crash logs and also, if you can link your app and let us know where you think the crash might have occured, it would be really helpful.

Thanks,
Arjun Busani
Mobile Ads SDK Team

On Tuesday, October 25, 2016 at 10:48:40 AM UTC-4, Yan MESS wrote:

Hi Arjun,

Thanks for your quick reply.

I got this crash yesterday only one time from a user and that's all information that it shows in my developer console.

I am not able to reproduce it as it worked fine when testing ads with debug mode.

I used version 9.8.00 which might be the last version of GPS. I used Ads part of GPS in compile dependencies.

I think that it's more related to the device having very low memory but maybe you can handle it to avoid crashing the entire app.

Cheers,
Yan

Yan MESS

unread,
Oct 25, 2016, 6:25:28 PM10/25/16
to google-adm...@googlegroups.com

Great. I will let you know if I get more.

Thanks,
Yan


To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Minas Keshishyan

unread,
Nov 21, 2016, 2:20:19 PM11/21/16
to Google Mobile Ads SDK Developers
Hi there,
I got around 400 crashes in the last week with the exact same trace after I started to use Native Ads Express.
It is the top crash on my app at the moment.
Any updates on this?
Maybe it's better to use Native Ads Advanced for RecyclerView?
Express is somehow sluggish and causes OOMs on devices with <= 1 GB memory.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Nov 21, 2016, 5:06:57 PM11/21/16
to Google Mobile Ads SDK Developers
Hi Minas,

Can you share your own complete crash logs including from Crashlytics if you have one? Also, what is the Play Services version on your project, and if you know, on the device?

Thanks,
Arjun Busani
Mobile Ads SDK Team

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Feb 15, 2017, 11:53:22 AM2/15/17
to Google Mobile Ads SDK Developers
Hi guys,

The team has reviewed this and has determined that the issue here is not related to our SDK. I would suggest you to revisit the crash logs and check what might be an issue with your implementation.


Thanks,
Arjun Busani
Mobile Ads SDK Team

PK

unread,
Aug 23, 2017, 6:24:29 PM8/23/17
to Google Mobile Ads SDK Developers
I have this issue too. It's because you let advertisers provide very long URLs. I haven't had this issue on apps I moved to MoPub, so it's most certainly an SDK issue. Feel free to email me if you need more logs

PK

unread,
Aug 23, 2017, 6:26:46 PM8/23/17
to Google Mobile Ads SDK Developers
You need to use a Samsung device to repo it seems: https://stackoverflow.com/questions/45573920/a-lot-of-outofmemoryerror-from-samsung-galaxy-devices-on-android-7-x

That being said, the AdMob SDK should still be compatible with the largest Android handset manufacturer. 

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Aug 24, 2017, 2:37:06 AM8/24/17
to Google Mobile Ads SDK Developers
Hi there,

As Veer previously mentioned, this has been previously reported to the rest of the team and we have determined that this was not related to the SDK. That said, would you be able to try the suggestion made from the StackOverflow link you included?

Regards,
Joshua Lagonera
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages