Android AdobeMobileLibrary 4.8.2 StrictMode crashes

lionel_camacho

04-02-2016

Hi,

Our Android app makes use of the adobeMobileLibrary version 4.8.2. In our debug version of the app we run it using strict mode to ensure the app behaves correctly, but we are getting crashes from the adobeMobileLibrary when running in strict mode, please see the logs bellow and advise:

02-04 14:14:40.261 19685-19695/com.dstvmobile.android 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 'close' not called
                                                                        at dalvik.system.CloseGuard.open(CloseGuard.java:184)
                                                                        at java.io.FileInputStream.<init>(FileInputStream.java:78)
                                                                        at com.android.okhttp.internal.DiskLruCache.get(DiskLruCache.java:417)
                                                                        at com.android.okhttp.HttpResponseCache.get(HttpResponseCache.java:164)
                                                                        at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:272)
                                                                        at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:399)
                                                                        at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:110)
                                                                        at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
                                                                        at com.android.okhttp.internal.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:25)
                                                                        at com.adobe.mobile.RemoteDownload$DownloadFileTask.run(RemoteDownload.java:387)
                                                                        at com.adobe.mobile.RemoteDownload.remoteDownloadSync(RemoteDownload.java:61)
                                                                        at com.adobe.mobile.RemoteDownload.remoteDownloadSync(RemoteDownload.java:71)
                                                                        at com.adobe.mobile.MobileConfig$6.run(MobileConfig.java:634)
                                                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                        at java.lang.Thread.run(Thread.java:818)
02-04 14:14:40.261 19685-19695/com.dstvmobile.android 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 'close' not called
                                                                        at dalvik.system.CloseGuard.open(CloseGuard.java:184)
                                                                        at java.io.FileInputStream.<init>(FileInputStream.java:78)
                                                                        at com.android.okhttp.internal.DiskLruCache.get(DiskLruCache.java:417)
                                                                        at com.android.okhttp.HttpResponseCache.get(HttpResponseCache.java:164)
                                                                        at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:272)
                                                                        at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:399)
                                                                        at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:110)
                                                                        at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:89)
                                                                        at com.android.okhttp.internal.http.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:25)
                                                                        at com.adobe.mobile.RemoteDownload$DownloadFileTask.run(RemoteDownload.java:387)
                                                                        at java.lang.Thread.run(Thread.java:818)

 

Please advise on when this would be resolved.

Accepted Solutions (1)

Accepted Solutions (1)

shalehaha

Employee

19-02-2016

Hi Lionel,

We tried but couldn't reproduce this crash. It'd be better if you can provide us some more information on:

1. What's the device type and Android version you were using?

2. How frequent were you able to see this crash?

3. Is there a certain way that you can reproduce it?

Based on our investigation, we think it might be a bug of okHttp library, https://github.com/square/picasso/issues/296. And it only happens on Android 4.4.x during some edge cases. 

Thanks.

-Jiabin 

Answers (0)