Closed sangchengjiang closed 7 years ago
java.lang.NoClassDefFoundError com/facebook/imagepipeline/memory/NativeMemoryChunk
com.facebook.imagepipeline.memory.NativeMemoryChunkPool.com.facebook.imagepipeline.memory.NativeMemoryChunk alloc(int)(NativeMemoryChunkPool.java:60) 2 com.facebook.imagepipeline.memory.NativeMemoryChunkPool.void free(java.lang.Object)(NativeMemoryChunkPool.java:22) 3 ##parent##1##parent## 4 ##child## java.lang.Object alloc(int)##child## 5 com.facebook.imagepipeline.memory.BasePool.java.lang.Object get(int)(BasePool.java:259) 6 com.facebook.imagepipeline.memory.NativePooledByteBufferOutputStream.void (com.facebook.imagepipeline.memory.NativeMemoryChunkPool,int)(NativePooledByteBufferOutputStream.java:53) 7 com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.com.facebook.imagepipeline.memory.NativePooledByteBuffer newByteBuffer(java.io.InputStream,int)(NativePooledByteBufferFactory.java:98) 8 com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.com.facebook.imagepipeline.memory.PooledByteBufferOutputStream newOutputStream()(NativePooledByteBufferFactory.java:26) 9 ##parent##3##parent## 10 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer newByteBuffer(java.io.InputStream,int)##child## 11 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer newByteBuffer(byte[])##child## 12 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer newByteBuffer(java.io.InputStream)##child## 13 com.facebook.imagepipeline.cache.BufferedDiskCache.com.facebook.imagepipeline.memory.PooledByteBuffer readFromDiskCache(com.facebook.cache.common.CacheKey)(BufferedDiskCache.java:341) 14 com.facebook.imagepipeline.cache.BufferedDiskCache.java.lang.Class access$200()(BufferedDiskCache.java:38) 15 ##parent##2##parent## 16 ##child## com.facebook.imagepipeline.cache.ImageCacheStatsTracker access$300(com.facebook.imagepipeline.cache.BufferedDiskCache)##child## 17 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer access$400(com.facebook.imagepipeline.cache.BufferedDiskCache,com.facebook.cache.common.CacheKey)##child## 18 com.facebook.imagepipeline.cache.BufferedDiskCache$2.com.facebook.imagepipeline.image.EncodedImage call()(BufferedDiskCache.java:185) 19 com.facebook.imagepipeline.cache.BufferedDiskCache$2.java.lang.Object call()(BufferedDiskCache.java:168) 20 bolts.Task$4.void run()(Task.java:357) 21 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 22 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 23 java.lang.Thread.run(Thread.java:841)
add try...catch to avoid
This is related to #1723. So I'm closing this issue keeping open the previous.
Description
java.lang.NoClassDefFoundError com/facebook/imagepipeline/memory/NativeMemoryChunk
com.facebook.imagepipeline.memory.NativeMemoryChunkPool.com.facebook.imagepipeline.memory.NativeMemoryChunk alloc(int)(NativeMemoryChunkPool.java:60) 2 com.facebook.imagepipeline.memory.NativeMemoryChunkPool.void free(java.lang.Object)(NativeMemoryChunkPool.java:22) 3 ##parent##1##parent## 4 ##child## java.lang.Object alloc(int)##child## 5 com.facebook.imagepipeline.memory.BasePool.java.lang.Object get(int)(BasePool.java:259) 6 com.facebook.imagepipeline.memory.NativePooledByteBufferOutputStream.void(com.facebook.imagepipeline.memory.NativeMemoryChunkPool,int)(NativePooledByteBufferOutputStream.java:53)
7 com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.com.facebook.imagepipeline.memory.NativePooledByteBuffer newByteBuffer(java.io.InputStream,int)(NativePooledByteBufferFactory.java:98)
8 com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.com.facebook.imagepipeline.memory.PooledByteBufferOutputStream newOutputStream()(NativePooledByteBufferFactory.java:26)
9 ##parent##3##parent##
10 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer newByteBuffer(java.io.InputStream,int)##child##
11 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer newByteBuffer(byte[])##child##
12 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer newByteBuffer(java.io.InputStream)##child##
13 com.facebook.imagepipeline.cache.BufferedDiskCache.com.facebook.imagepipeline.memory.PooledByteBuffer readFromDiskCache(com.facebook.cache.common.CacheKey)(BufferedDiskCache.java:341)
14 com.facebook.imagepipeline.cache.BufferedDiskCache.java.lang.Class access$200()(BufferedDiskCache.java:38)
15 ##parent##2##parent##
16 ##child## com.facebook.imagepipeline.cache.ImageCacheStatsTracker access$300(com.facebook.imagepipeline.cache.BufferedDiskCache)##child##
17 ##child## com.facebook.imagepipeline.memory.PooledByteBuffer access$400(com.facebook.imagepipeline.cache.BufferedDiskCache,com.facebook.cache.common.CacheKey)##child##
18 com.facebook.imagepipeline.cache.BufferedDiskCache$2.com.facebook.imagepipeline.image.EncodedImage call()(BufferedDiskCache.java:185)
19 com.facebook.imagepipeline.cache.BufferedDiskCache$2.java.lang.Object call()(BufferedDiskCache.java:168)
20 bolts.Task$4.void run()(Task.java:357)
21 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
22 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
23 java.lang.Thread.run(Thread.java:841)
Solution
add try...catch to avoid
Additional Information