StrictMode penalising for Firebase Ads

78 views
Skip to first unread message

akshay sethi

unread,
Aug 19, 2018, 1:05:09 PM8/19/18
to Google Mobile Ads SDK Developers
I think com.google.android.gms.ads.internal.webview.j.b is not closing stream while loading a url. While using strict mode I'm getting this error.

08-19 21:59:45.907 30858-30866/com.railyatri.in.mobile E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
    java.lang.Throwable: Explicit termination method 'end' not called
        at dalvik.system.CloseGuard.open(CloseGuard.java:180)
        at java.util.zip.Inflater.<init>(Inflater.java:82)
        at com.android.okhttp.okio.GzipSource.<init>(GzipSource.java:62)
        at com.android.okhttp.internal.http.HttpEngine.unzip(HttpEngine.java:645)
        at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:827)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:443)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:388)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501)
        at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
        at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java)
        at com.google.android.gms.ads.internal.webview.j.b(:com.google.android.gms.dynamite_adsdynamite@12874020@12.8.74 (040304-204998136):295)
        at com.google.android.gms.ads.internal.webview.j.a(:com.google.android.gms.dynamite_adsdynamite@12874020@12.8.74 (040304-204998136):271)
        at com.google.android.gms.ads.internal.webview.ah.a(:com.google.android.gms.dynamite_adsdynamite@12874020@12.8.74 (040304-204998136):13)
        at com.google.android.gms.ads.internal.webview.ai.shouldInterceptRequest(:com.google.android.gms.dynamite_adsdynamite@12874020@12.8.74 (040304-204998136):5)
        at com.android.webview.chromium.WebViewContentsClientAdapter.shouldInterceptRequest(WebViewContentsClientAdapter.java:79)
        at org.chromium.android_webview.AwContents$BackgroundThreadClientImpl.shouldInterceptRequest(AwContents.java:9)
        at org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(AwContentsBackgroundThreadClient.java:11)


My StrictMode configuration:

StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
                .detectAll()
                .penaltyLog()
                .penaltyDeath()
                .build());
        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                .detectAll()
                .penaltyLog()
                .penaltyDeath()
                .build());

I'm using latest firebase-ads sdk which is '15.0.1'

mobileadssdk-a...@google.com

unread,
Aug 20, 2018, 3:13:57 AM8/20/18
to akshay sethi, Google Mobile Ads SDK Developers
Hi Akshay,

Thank you for reaching out to us regarding this.

We will look into this and get back to you for any feedback.

Regards,
Ivan Bautista
Mobile Ads SDK Team



--

---
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/96f9e876-5857-448b-b150-adcf414f145c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages