Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Android AdobeMobileLibrary 4.8.2 StrictMode crashes

lionel_camacho
Level 1
Level 1

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.

1 Accepted Solution
shalehaha
Correct answer by
Employee
Employee

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 

View solution in original post

1 Reply
shalehaha
Correct answer by
Employee
Employee

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 

View solution in original post