fffy2366 / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

GZip Stream not always closed #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load and decode a XML Request which supports GZip
2. Use the data
3. Discard the request

What is the expected output? What do you see instead?
Should work as expected, but strict mode will kill the app if a closeable 
resource is left open. This seems to happen from time to time.

What version of the product are you using? On what operating system?
0.23.16 -> Android 4.1

Please provide any additional information below.

11-12 11:22:57.260: E/StrictMode(15039): java.lang.Throwable: Explicit 
termination method 'end' not called
11-12 11:22:57.260: E/StrictMode(15039):    at 
dalvik.system.CloseGuard.open(CloseGuard.java:184)
11-12 11:22:57.260: E/StrictMode(15039):    at 
java.util.zip.Inflater.<init>(Inflater.java:82)
11-12 11:22:57.260: E/StrictMode(15039):    at 
java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:96)
11-12 11:22:57.260: E/StrictMode(15039):    at 
java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:81)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.copy(AbstractAjaxCallback.java:15
73)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.httpDo(AbstractAjaxCallback.java:
1526)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.httpGet(AbstractAjaxCallback.java
:1292)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.network(AbstractAjaxCallback.java
:1209)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.networkWork(AbstractAjaxCallback.
java:1047)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.backgroundWork(AbstractAjaxCallba
ck.java:994)
11-12 11:22:57.260: E/StrictMode(15039):    at 
com.androidquery.callback.AbstractAjaxCallback.run(AbstractAjaxCallback.java:957
)
11-12 11:22:57.260: E/StrictMode(15039):    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
11-12 11:22:57.260: E/StrictMode(15039):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
11-12 11:22:57.260: E/StrictMode(15039):    at 
java.lang.Thread.run(Thread.java:856)

Original issue reported on code.google.com by chris.mark.jenkins@gmail.com on 12 Nov 2012 at 11:27

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/android-query/downloads/list

Should be fixed in latest beta. Please check and help me verify if possible.

Many thanks.

Original comment by tinyeeliu@gmail.com on 30 Nov 2012 at 2:05