google-code-export / fanfoudroid

Automatically exported from code.google.com/p/fanfoudroid
0 stars 0 forks source link

StatusActivity获取图片时出现异常信息 #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
异常信息如下,在我这经常出现,不知道大家有没有出现过

06-02 13:06:08.662: ERROR/StatusActivity(983): unknown format (magic number 
d8ff)
06-02 13:06:08.662: ERROR/StatusActivity(983): 
com.ch_linghu.fanfoudroid.http.ResponseException: unknown format (magic number 
d8ff)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.http.Response.asStream(Response.java:66)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.http.Response.asStream(Response.java:41)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.StatusActivity.fetchPhotoBitmap(StatusActivity.java:52
1)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.StatusActivity.access$11(StatusActivity.java:515)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.StatusActivity$GetPhotoTask._doInBackground(StatusActi
vity.java:645)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:95)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:1)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
android.os.AsyncTask$2.call(AsyncTask.java:185)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.util.concurrent.FutureTask.run(FutureTask.java:138)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.lang.Thread.run(Thread.java:1019)
06-02 13:06:08.662: ERROR/StatusActivity(983): Caused by: java.io.IOException: 
unknown format (magic number d8ff)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:84)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:64)
06-02 13:06:08.662: ERROR/StatusActivity(983):     at 
com.ch_linghu.fanfoudroid.http.Response.asStream(Response.java:61)
06-02 13:06:08.662: ERROR/StatusActivity(983):     ... 12 more

Original issue reported on code.google.com by Dino...@gmail.com on 2 Jun 2011 at 1:09

GoogleCodeExporter commented 9 years ago
应该是因为换了GZIP的支持方式后,asStream里面进行了第二次gzip
解析导致的.

在 Revision: a1b0dcccadd3 已经修复了, 
不过你说的这个情况我在修改代码前试了下也没有FC, 
所以无法确认是否真的修复了, 你再试试吧, 
没问题就可以关闭此Issue了. 

Original comment by lds1...@gmail.com on 2 Jun 2011 at 4:49

GoogleCodeExporter commented 9 years ago
FIXED

Original comment by Dino...@gmail.com on 10 Jun 2011 at 2:46

GoogleCodeExporter commented 9 years ago
请问您是怎么解决的啊? 
我也遇到同样的问题了

Original comment by hwmwo...@gmail.com on 9 Aug 2012 at 3:18