NativeAds crashing a lot (5K crash in one day)

453 views
Skip to first unread message

Ahmadul Hoq

unread,
May 12, 2017, 1:18:55 AM5/12/17
to Google Mobile Ads SDK Developers
Hi, for the past couple of weeks we're seeing a spike in NativeAds crash. It's one of those crashes which we're unable to reproduce. But in Firebase Crash Reporting, we can see the number is quite high, and it was so far about 5k crashes in the last 24 hours.

FYI, we use Google AdMob mediation and our ads come Facebook and Google. From the analytics tags on the Firebase crash reporting page, we can see that the crash happens couple seconds later the app launches, most likely when the ad is loaded. Can anyone please point me where the issue might be coming from?

Here's the stacktrace (I only have this):

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.internal.renderer.nativeads.a.c()' on a null object reference

com
.google.android.gms.ads.internal.formats.o.g (o.java:258)

com
.google.android.gms.ads.internal.formats.d.run (d.java:10)

android
.os.Handler.handleCallback (Handler.java:739)

android
.os.Handler.dispatchMessage (Handler.java:95)

android
.os.Looper.loop (Looper.java:148)

android
.app.ActivityThread.main (ActivityThread.java:7325)

java
.lang.reflect.Method.invoke (Method.java)

com
.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)

com
.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)





Thanks!

Joshua Lagonera (Mobile Ads SDK Team)

unread,
May 12, 2017, 2:33:43 AM5/12/17
to Google Mobile Ads SDK Developers
Hi there,

This issue has been reported before and the team is actively investigating the root cause of the issue in order to provide a fix. The crash seems to occur when the Native Ad is being destroyed using the .destroy() method. Can you confirm if this is the true for your end?

Additionally, if you could provide the following information to help expedite the issue quicker, then it would be of great help:
  • Affected Ad Unit IDs
  • Complete Warning/Error logs captured from the device
  • Logs from Charles' Proxy with SSL Proxying Enabled.
  • A sample code snippet/project in where the issue can be reproduced.
Regards,
Joshua Lagonera
Mobile Ads SDK Team

DS

unread,
May 18, 2017, 5:16:31 AM5/18/17
to Google Mobile Ads SDK Developers
This is in the "O" emulator released today.

Dunno if this is the same thing, but was getting this crash on orientation change, which shouldn't necessarily involve the destroy() but anyway...

05-18 01:50:04.214  4083  4083 D DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
05-18 01:50:04.217  4083  4083 I Ads     : Starting ad request.
05-18 01:50:04.217  4083  4083 I Ads     : This request is sent from a test device.
05-18 01:50:04.239  2584  4679 I Ads     : Parental control value is stale. Refreshing.
05-18 01:50:04.242  3972  3984 W Finsky  : [227] com.google.android.finsky.application.FinskyAppImpl.af(1070): No account configured on this device.
05-18 01:50:04.242  2584  4679 W Ads     : App does not have the required permissions to get location
05-18 01:50:04.243  3972  3984 I Finsky  : [227] com.google.android.finsky.services.e.a(8): Received content filters request from sharedUserId=com.google.uid.shared:10011
05-18 01:50:04.243  3972  3984 W Finsky  : [227] com.google.android.finsky.application.FinskyAppImpl.af(1070): No account configured on this device.
05-18 01:50:04.244  2584  2584 E Ads     : Error while retrieving parental controls.
05-18 01:50:04.244  2584  2584 E Ads     : java.lang.NullPointerException: Attempt to read from field 'java.lang.String android.accounts.Account.type' on a null object reference
05-18 01:50:04.244  2584  2584 E Ads     : at android.os.Parcel.readException(Parcel.java:1942)
05-18 01:50:04.244  2584  2584 E Ads     : at android.os.Parcel.readException(Parcel.java:1882)
05-18 01:50:04.244  2584  2584 E Ads     : at bak.a(:com.google.android.gms:139)
05-18 01:50:04.244  2584  2584 E Ads     : at com.google.android.gms.ads.play.c.onServiceConnected(:com.google.android.gms:175)
05-18 01:50:04.244  2584  2584 E Ads     : at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1605)
05-18 01:50:04.244  2584  2584 E Ads     : at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1634)
05-18 01:50:04.244  2584  2584 E Ads     : at android.os.Handler.handleCallback(Handler.java:769)
05-18 01:50:04.244  2584  2584 E Ads     : at android.os.Handler.dispatchMessage(Handler.java:98)
05-18 01:50:04.244  2584  2584 E Ads     : at android.os.Looper.loop(Looper.java:164)
05-18 01:50:04.244  2584  2584 E Ads     : at android.app.ActivityThread.main(ActivityThread.java:6535)
05-18 01:50:04.244  2584  2584 E Ads     : at java.lang.reflect.Method.invoke(Native Method)
05-18 01:50:04.244  2584  2584 E Ads     : at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
05-18 01:50:04.244  2584  2584 E Ads     : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

I set up a Google account on the emulator, and now I see this, again when changing orientation.

05-18 02:00:12.826  6340  6340 I Ads     : Starting ad request.
05-18 02:00:12.826  6340  6340 I Ads     : This request is sent from a test device.
05-18 02:00:12.827  1648  1648 I EmojiCategory: Last Emoji category id is 8
05-18 02:00:12.839  1663  1954 D EGL_emulation: eglMakeCurrent: 0xa6805720: ver 2 0 (tinfo 0xa68038e0)
05-18 02:00:12.840  1648  1648 W ViewPager: Requested offscreen page limit 0 too small; defaulting to 1
05-18 02:00:12.846  1648  1648 I LatinIME: Starting input. Cursor position = 344,344
05-18 02:00:12.852  1350  1350 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
05-18 02:00:12.853  2584  6807 W Ads     : App does not have the required permissions to get location
05-18 02:00:12.873  2584  3467 W Herrevad: [215] slt.b: Looking up Wifi info on a non-wifi device
05-18 02:00:13.023  1663  1954 D EGL_emulation: eglMakeCurrent: 0xa6805720: ver 2 0 (tinfo 0xa68038e0)
05-18 02:00:13.035  1350  1350 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
05-18 02:00:13.102  1350  1350 I chatty  : uid=1000(system) allo...@2.0-s identical 1 line
05-18 02:00:13.142  1350  1350 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
05-18 02:00:13.219  1663  1954 D EGL_emulation: eglMakeCurrent: 0xa6805720: ver 2 0 (tinfo 0xa68038e0)
05-18 02:00:13.231  1350  1350 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
05-18 02:00:13.253  1663  1663 D StatusBar: disable: < expand icons alerts system_info back home recent clock search quick_settings >
05-18 02:00:13.271  1350  1350 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
05-18 02:00:13.311  1663  1954 D EGL_emulation: eglMakeCurrent: 0xa6805720: ver 2 0 (tinfo 0xa68038e0)
05-18 02:00:13.377  2584  6635 W DeviceInfo: Error converting null to an integer. Not setting device capabilities.
05-18 02:00:13.677  6340  6393 D EGL_emulation: eglMakeCurrent: 0xafbb36c0: ver 2 0 (tinfo 0x93f79cc0)
05-18 02:00:13.680  1350  1350 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
05-18 02:00:14.040  6340  6350 F libc    : Fatal signal 31 (SIGSYS), code 1 in tid 6350 (HeapTaskDaemon)
05-18 02:00:14.046  6340  6393 D EGL_emulation: eglMakeCurrent: 0xafbb36c0: ver 2 0 (tinfo 0x93f79cc0)
05-18 02:00:14.050  6816  6350 F libc    : Fatal signal 31 (SIGSYS), code 1 in tid 6350 (HeapTaskDaemon)
05-18 02:00:14.059  6820  6820 W crash_dump32: failed to attach to thread 6340: Operation not permitted
05-18 02:00:14.070  6821  6821 F crash_dump32: crash_dump.cpp:236] target info mismatch, expected pid 6816, tid 6350, received pid 6340, tid 6350
05-18 02:00:14.070  1459  1459 I /system/bin/tombstoned: received crash request for pid 6816
05-18 02:00:14.071  6816  6350 F libc    : crash_dump helper failed to exec
05-18 02:00:14.071  1459  1459 W /system/bin/tombstoned: crash socket received short read of length 0 (expected 8)
05-18 02:00:14.071  6816  6350 F libc    : failed to resend signal during crash: Operation not permitted
05-18 02:00:14.076  6820  6820 I crash_dump32: obtaining output fd from tombstoned
05-18 02:00:14.076  1459  1459 I /system/bin/tombstoned: received crash request for pid 6340
05-18 02:00:14.076  1539  1557 I BootReceiver: Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
05-18 02:00:14.076  6820  6820 I crash_dump32: performing dump of process 6340 (target tid = 6350)
05-18 02:00:14.078  6820  6820 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-18 02:00:14.078  6820  6820 F DEBUG   : Build fingerprint: 'google/sdk_gphone_x86/generic_x86:O/OPP2.170420.012/3991286:user/release-keys'
05-18 02:00:14.078  6820  6820 F DEBUG   : Revision: '0'
05-18 02:00:14.078  6820  6820 F DEBUG   : ABI: 'x86'
05-18 02:00:14.078  6820  6820 F DEBUG   : pid: 6340, tid: 6350, name: HeapTaskDaemon  >>> com.app.name<<<
05-18 02:00:14.078  6820  6820 F DEBUG   : signal 19 (SIGSTOP), code -32749 (?), fault addr --------
05-18 02:00:14.078  6820  6820 F DEBUG   :     eax fffffe00  ebx b1cfe768  ecx 00000000  edx ffffffff
05-18 02:00:14.078  6820  6820 F DEBUG   :     esi 00000000  edi 00000000
05-18 02:00:14.078  6820  6820 F DEBUG   :     xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
05-18 02:00:14.078  6820  6820 F DEBUG   :     eip b42cbac4  ebp 00000000  esp b1cfe658  flags 00000292
05-18 02:00:14.081  6820  6820 F DEBUG   : 
05-18 02:00:14.081  6820  6820 F DEBUG   : backtrace:
05-18 02:00:14.081  6820  6820 F DEBUG   :     #00 pc 00000ac4  [vdso:b42cb000] (__kernel_vsyscall+16)
05-18 02:00:14.081  6820  6820 F DEBUG   :     #01 pc 000acd08  /system/bin/linker (__dl_syscall+40)
05-18 02:00:14.081  6820  6820 F DEBUG   :     #02 pc 0002776d  /system/bin/linker (__dl__ZL24debuggerd_signal_handleriP7siginfoPv+1072)
05-18 02:00:14.081  6820  6820 F DEBUG   :     #03 pc 000c92df  /system/bin/linker
05-18 02:00:14.081  6820  6820 F DEBUG   :     #04 pc 03848a11  /system/app/Chrome/Chrome.apk (offset 0x105b000)
05-18 02:00:14.081  6820  6820 F DEBUG   :     #05 pc 00000003  <unknown>
05-18 02:00:14.107  2366  2816 W GetDeviceDataUploadOptInStatusOp: Empty context model while retrieving upload opt-in status!
05-18 02:00:14.595  1539  6823 W ActivityManager:   Force finishing activity com.app.name/.MyApp

I do not know why it says Chrome.apk is involved as I'm using a WebView in the app, but not Chrome itself.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
May 18, 2017, 5:45:32 AM5/18/17
to Google Mobile Ads SDK Developers
Hi there,

We have a known issue about the crash log you provided and a fix has been made. However, I do not have a specific timeline on when this fix will be rolled out. You can regularly check our Release Notes in case a new version has been released and check if you can still replicate the crash.

However, since your issue does not seem to be related to the original post, you can open a new thread if you want to request for an update and we will continue our discussion from there.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Reply all
Reply to author
Forward
0 new messages