FinalBitmap加载图片程序崩溃

SONAIS 发布于 2013/12/23 10:21
阅读 2K+
收藏 0
12-23 10:14:37.432: E/AndroidRuntime(6496): java.lang.RuntimeException: An error occured while executing doInBackground()
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.core.AsyncTask$3.done(AsyncTask.java:157)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.lang.Thread.run(Thread.java:856)
12-23 10:14:37.432: E/AndroidRuntime(6496): Caused by: java.lang.IllegalStateException: net.tsz.afinal.bitmap.core.SoftMemoryCacheImpl$1.sizeOf() is reporting inconsistent results!
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.bitmap.core.LruMemoryCache.trimToSize(LruMemoryCache.java:140)
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.bitmap.core.LruMemoryCache.put(LruMemoryCache.java:126)
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.bitmap.core.SoftMemoryCacheImpl.put(SoftMemoryCacheImpl.java:42)
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.bitmap.core.BitmapCache.addToMemoryCache(BitmapCache.java:90)
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.FinalBitmap$BitmapLoadAndDisplayTask.doInBackground(FinalBitmap.java:696)
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.FinalBitmap$BitmapLoadAndDisplayTask.doInBackground(FinalBitmap.java:1)
12-23 10:14:37.432: E/AndroidRuntime(6496): at net.tsz.afinal.core.AsyncTask$2.call(AsyncTask.java:145)
12-23 10:14:37.432: E/AndroidRuntime(6496): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

加载中
0
理工男海哥
理工男海哥

亲,jar包有些问题,源代码已经修复,但是jar包没有及时更新 与 源代码同步。

您可以自行下载源代码 打包 或者 基于源代码开发。

SONAIS
SONAIS
之前那个bug不重现了,不知道是不是我在display时设置了宽高,可是现在出现内存溢出的bug了
SONAIS
SONAIS
哦,好吧,3Q
0
QGlaunch
QGlaunch
楼主 怎么解决的?遇到了相同的问题
SONAIS
SONAIS
用了google的开源框架,volley
0
ETmanwenhan
ETmanwenhan
如果有下载时带有最新的afinal.jar包就好了,因为自己打的包不知道会出现什么问题。
返回顶部
顶部