fresco icon indicating copy to clipboard operation
fresco copied to clipboard

UnsatisfiedLinkError - Sometimes application get crashed due to imagepipeline

Open swatigoel opened this issue 11 years ago • 10 comments

Please find logs collected after app crashed:

java.lang.UnsatisfiedLinkError: Couldn't load memchunk from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.ms.officechat-1.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]]: findLibrary returned null at java.lang.Runtime.loadLibrary(Runtime.java:355) at java.lang.System.loadLibrary(System.java:525) at com.facebook.common.soloader.SoLoaderShim$DefaultHandler.loadLibrary(SoLoaderShim.java:34) at com.facebook.common.soloader.SoLoaderShim.loadLibrary(SoLoaderShim.java:56) at com.facebook.imagepipeline.memory.NativeMemoryChunk.(NativeMemoryChunk.java:36) at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:60) at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:22) at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:260) at com.facebook.imagepipeline.memory.NativePooledByteBufferOutputStream.(NativePooledByteBufferOutputStream.java:53) at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newByteBuffer(NativePooledByteBufferFactory.java:98) at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newByteBuffer(NativePooledByteBufferFactory.java:26) at com.facebook.imagepipeline.cache.BufferedDiskCache.readFromDiskCache(BufferedDiskCache.java:198) at com.facebook.imagepipeline.cache.BufferedDiskCache.access$300(BufferedDiskCache.java:38) at com.facebook.imagepipeline.cache.BufferedDiskCache$1.call(BufferedDiskCache.java:104) at com.facebook.imagepipeline.cache.BufferedDiskCache$1.call(BufferedDiskCache.java:88) at bolts.Task$2.run(Task.java:195) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:841)

swatigoel avatar Jul 06 '15 09:07 swatigoel

Do you get random crashes for the same build, or?

plamenko avatar Jul 06 '15 20:07 plamenko

yes, We get this crash random. When we use application for long time, we get below warning message frequently:

W/unknown:CloseableReference(9817): Finalized without closing: 42074080 42073f98 (type = NativePooledByteBuffer)

swatigoel avatar Jul 07 '15 07:07 swatigoel

W/unknown:CloseableReference is not related to UnsatisfiedLinkError.

I need more details to help with the crash:

  • does this happen on particular devices or all devices ? What is the architecture of processor (x86, armv7, 64bit) ?
  • is os version relevant ?
  • what version of Fresco do you use ?

michalgr avatar Jul 09 '15 09:07 michalgr

I get same problem.

1.it's happen all devices, 2.Fresco version 0.6.0

agoodcoolman avatar Jul 31 '15 02:07 agoodcoolman

@agoodcoolman : do you use proguard ? does it happen all the time or sporadically ? Have you seen https://github.com/facebook/fresco/issues/172 and https://github.com/facebook/fresco/issues/105 ?

michalgr avatar Jul 31 '15 10:07 michalgr

java.lang.UnsatisfiedLinkError: Couldn't load ***JNI from loader dalvik.system.PathClassLoader I also met this problem and didn't use proguard. it happen all the time when App launch. Fresco 0.6.0


Oh. I solve my problem. just to save the *.so file to the armeabi-v7a folder.(do not armeabi).

Null-Ouwenjie avatar Aug 10 '15 04:08 Null-Ouwenjie

get, it's work.

agoodcoolman avatar Aug 16 '15 06:08 agoodcoolman

Hello @agoodcoolman @tyronen can you please tell me how this is fixed for you? I am building my app with fresco versiob 0.6.0+ using android studio.

But app crashed on GalaxyNexus(4.2.2) and Motorola(4.0.4)

In android studio, there are no folder for amreabi

swatigoel avatar Sep 02 '15 09:09 swatigoel

sorry, I hava forgot it. maybe you need create a file be named armeabi-v7a in libs,

At 2015-09-02 17:38:12, "Swati Goel" [email protected] wrote:

Hello @agoodcoolman can you please tell me how this is fixed for you? I am building my app with fresco versiob 0.6.0+ using android studio.

But app crashed on GalaxyNexus(4.2.2) and Motorola(4.0.4)

In android studio, there are no folder for amreabi

— Reply to this email directly or view it on GitHub.

agoodcoolman avatar Sep 02 '15 10:09 agoodcoolman

I have fixed it using eclipse. In fresco project, put all .so file in armeabi-v7a folder. .so file I got from 0.5.3 versions.

swatigoel avatar Sep 02 '15 12:09 swatigoel