question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnsatisfiedLinkError: couldn't find "libmemchunk.so"

See original GitHub issue
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.blink.academy.fork-1/base.apk"],nativeLibraryDirectories=[/data/app/com.blink.academy.fork-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libmemchunk.so"
    at java.lang.Runtime.loadLibrary(Runtime.java:366)
    at java.lang.System.loadLibrary(System.java:989)
    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.newOutputStream(NativePooledByteBufferFactory.java:141)
    at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newOutputStream(NativePooledByteBufferFactory.java:26)
    at com.facebook.imagepipeline.producers.NetworkFetchProducer.onResponse(NetworkFetchProducer.java:95)
    at com.facebook.imagepipeline.producers.NetworkFetchProducer.access$000(NetworkFetchProducer.java:36)
    at com.facebook.imagepipeline.producers.NetworkFetchProducer$1.onResponse(NetworkFetchProducer.java:73)
    at com.blink.academy.fork.fresco.imagepipeline.OkHttpNetworkFetcher$2.onResponse(OkHttpNetworkFetcher.java:96)
    at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:168)
    at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:818)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:48 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
ivanviraginecommented, Mar 31, 2016

My problem were:

At:

at com.facebook.imagepipeline.producers.ResizeAndRotateProducer$TransformingConsumer.doTransform(ResizeAndRotateProducer.java)

java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1636): could not load library "libwebp.so" needed by "libimagepipeline.so"; caused by load_library(linker.cpp:746): library "libwebp.so" not found

Got it fixed using this on my Application, before Fresco.initialize(this):

static { try { SoLoaderShim.loadLibrary("webp"); } catch(UnsatisfiedLinkError nle) { } }

1reaction
ivanviraginecommented, May 6, 2016

@vikramkakkar

  1. I don’t know the source code, so I don’t know 100% about it, but our clients are not complaining and not reporting errors anymore, and there are more than 30k users! So, I think it fixes for a lot of devices!
  2. Sounds like a lib init problem, so it doesn’t really depends on wether you are using it or not
  3. Nope, my dependencies are:

compile('com.facebook.fresco:fresco:0.9.0+') { exclude module: 'bolts-android' } compile('com.facebook.fresco:imagepipeline-okhttp:0.9.0+') { exclude module: 'bolts-android' } compile('jp.wasabeef:fresco-processors:2.0.0') { exclude module: 'bolts-android' }

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fatal Exception: java.lang.UnsatisfiedLinkError couldn't find lib ...
I do not think it is a missing library on your end. The actual problem is the really strange library name: lib.so. This...
Read more >
java.lang.UnsatisfiedLinkError ... couldn't find "libserial_port.so
Hi guys, I am trying to include native .so files in a Java library. Starting with the LameB4A project as example, I tried...
Read more >
How to Handle the UnsatisfiedLinkError Runtime Error in Java
The Java java.lang.UnsatisfiedLinkError is thrown when a program uses a native libaray but is unable to find it at runtime for some reason....
Read more >
java.lang.UnsatisfiedLinkError: couldn't find DSO to load ...
Android : React-Native :java.lang. UnsatisfiedLinkError : couldn't find DSO to load: libhermes. so [ Beautify Your Computer ...
Read more >
java.lang.UnsatisfiedLinkError: couldn't find "libopencv_core.so"
PathClassLoader[DexPathList[[zip file "/data/app/com.bewo.screencast-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found