(Android)Do not use WebView. However, the WebWiew crashes.

1,539 views
Skip to first unread message

Dol Jobs

unread,
Jan 4, 2018, 8:54:51 PM1/4/18
to Google Mobile Ads SDK Developers

Load AdMob (NativeAd) into RecyclerView.

The ad is a separate ViewHolder.

A lot of scrolling (stress test) crashes.

Calling the destroy method on the NativeAd of the response will produce the same result.

Is using AdLoader.load () to use webview internally?


01-04 17:41:54.038 A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-04 17:41:54.039 A/DEBUG: Build fingerprint: 'google/sailfish/sailfish:8.1.0/OPM1.171019.011/4448085:user/release-keys'
01-04 17:41:54.039 A/DEBUG: Revision: '0'
01-04 17:41:54.039 A/DEBUG: ABI: 'arm64'
01-04 17:41:54.039 A/DEBUG: pid: 24409, tid: 24409, name: ind.blind.debug  >>> com.xxx <<<
01-04 17:41:54.039 A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-04 17:41:54.045 D/WificondScannerImpl: Filtering out 86 scan results.
01-04 17:41:54.050 A/DEBUG: Abort message: '[FATAL:aw_browser_terminator.cc(77)] Render process (24702)'s crash wasn't handled by all associated  webviews, triggering application crash.
                            '
01-04 17:41:54.050 A/DEBUG:     x0   0000000000000000  x1   0000000000005f59  x2   0000000000000006  x3   0000000000000008
01-04 17:41:54.050 A/DEBUG:     x4   6e716761ff083963  x5   6e716761ff083963  x6   6e716761ff083963  x7   7f7f7f7f7f7f7f7f
01-04 17:41:54.050 A/DEBUG:     x8   0000000000000083  x9   39d8b2c4cc595b96  x10  0000000000000000  x11  ffffffffffffffff
01-04 17:41:54.050 A/DEBUG:     x12  0000007ffe3c3234  x13  0000007ffe3c322a  x14  000000732ee02b7d  x15  0000000000000054
01-04 17:41:54.050 A/DEBUG:     x16  0000005a34fb9fa8  x17  00000073c44b1430  x18  0000000000000009  x19  0000000000005f59
01-04 17:41:54.050 A/DEBUG:     x20  0000000000005f59  x21  0000000000000083  x22  000000732f64c000  x23  00000073c6640a40
01-04 17:41:54.050 A/DEBUG:     x24  000000730d5cb000  x25  000000730d5cba18  x26  0000007ffe3c3818  x27  000000732edfed69
01-04 17:41:54.050 A/DEBUG:     x28  000000732edfed75  x29  0000007ffe3c3300  x30  00000073c4464a2c
01-04 17:41:54.050 A/DEBUG:     sp   0000007ffe3c32c0  pc   00000073c4464a4c  pstate 0000000060000000
01-04 17:41:54.054 A/DEBUG: backtrace:
01-04 17:41:54.054 A/DEBUG:     #00 pc 000000000001da4c  /system/lib64/libc.so (abort+112)
01-04 17:41:54.054 A/DEBUG:     #01 pc 000000000076b0d8  /data/app/com.android.chrome-iextVbdNj6XrNy5ldoFD6Q==/base.apk (offset 0xb86000)

I don't speak english. so used google translate service.

Sorry about that.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Jan 5, 2018, 12:39:39 AM1/5/18
to Google Mobile Ads SDK Developers
Hi there,

The SDK does use webviews to render ads. Can you check if you can replicate the same behavior on our sample apps so we can rule out any implementation issues? Additionally, can you provide to us a sample project we can use to replicate the issue in case it is not reproducible using our sample apps? Kindly provide to us the appropriate steps in replicating the behavior as well. You may also use the Reply Privately to Author if you are not comfortable sharing your sample project publicly.

Regards,
Joshua Lagonera
Mobile Ads SDK Team
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Dol Jobs

unread,
Jan 8, 2018, 4:15:30 PM1/8/18
to Google Mobile Ads SDK Developers
Hi

Add sample project.

Click 'Auto Scroll' button.

Crash after 3 to 5 minutes on Pixel device. Sometimes ANR reproduces.

Thank you.


2018년 1월 4일 목요일 오후 9시 39분 39초 UTC-8, Joshua Lagonera (Mobile Ads SDK Team) 님의 말:

mobileadssdk-a...@google.com

unread,
Jan 9, 2018, 1:51:53 PM1/9/18
to Dol Jobs, Google Mobile Ads SDK Developers

Hi,

Thank you for the sample project.

The issue you have highlighted here is not the SDK, but the sample app implementation. The memory pressure is gradually increasing because there is no recycling of the NativeExpressAdViews, so the further you scroll, the more ad views are created, and since these are not lightweight objects, this increases memory use quite substantially.

Thank you for highlighting this, the solution is to recycle a limited number of ad views using the RecyclerViewAdapter for example, and this would result in a finite memory consumption. The sample app being a fairly simplistic example does not do such recycling. 

Regards

Sam

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/0413ba8d-c567-41ae-8914-f9cf51a1e46a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dol Jobs

unread,
Jan 9, 2018, 7:25:01 PM1/9/18
to Google Mobile Ads SDK Developers
Hi,

Thank you for the answer.

Let me ask you one more thing.

We have already recycled NativeAdView (NativeContentAdView, NativeAppInstallAdView) in RecyclerView.ViewHolder.

Just the same problem occurs.

We update the RecyclerView by calling the AdLoader.load method and adding the received response (NativeAd) to the RecyclerViewAdapter.

Should I also manage the NativeAd instance used in the RecyclerViewAdapter?



2018년 1월 9일 화요일 오전 10시 51분 53초 UTC-8, mobileadssdk-a...@google.com 님의 말:

mobileadssdk-a...@google.com

unread,
Jan 10, 2018, 12:23:28 PM1/10/18
to Dol Jobs, Google Mobile Ads SDK Developers
Hi,

Yes you should not hold an increasing number of NativeAds in memory, as they are also somewhat memory intensive. For example, they also hold a reference to a webview.  

You cannot recycle NativeAds as such, so I suggest just having a limited size data object (eg Array) to hold a limited number of native ads, and remove the least recently used ad when a new ad needs to be added and the data object has reached its capacity.

Regards

Sam

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

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, 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.
Reply all
Reply to author
Forward
0 new messages