Fresco: couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: "/data/data/com.excelliance.multiaccount/gameplugins/com.***.***/lib-main/libimagepipeline.so" is 64-bit instead of 32-bit

Created on 16 May 2019  路  13Comments  路  Source: facebook/fresco

couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: "/data/data/com.excelliance.multiaccount/gameplugins/com../lib-main/libimagepipeline.so" is 64-bit instead of 32-bit

com.facebook.soloader.SoLoader.doLoadLibraryBySoName聽(SoLoader.java:738)

聽 | com.facebook.soloader.SoLoader.loadLibraryBySoName聽(SoLoader.java:591)
聽 | com.facebook.soloader.SoLoader.loadLibrary聽(SoLoader.java:529)
聽 | com.facebook.soloader.SoLoader.loadLibrary聽(SoLoader.java:484)
聽 | com.facebook.imagepipeline.nativecode.ImagePipelineNativeLoader.load聽(ImagePipelineNativeLoader.java:40)
聽 | com.facebook.imagepipeline.memory.NativeMemoryChunk.聽(SourceFile:31)
聽 | com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc聽(NativeMemoryChunkPool.java:25)
聽 | com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc聽(NativeMemoryChunkPool.java:13)
聽 | com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc聽(NativeMemoryChunkPool.java:13)
聽 | com.facebook.imagepipeline.memory.BasePool.get聽(BasePool.java:267)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferOutputStream.聽(SourceFile:51)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferFactory.newOutputStream聽(MemoryPooledByteBufferFactory.java:106)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferFactory.newOutputStream聽(MemoryPooledByteBufferFactory.java:24)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferFactory.newOutputStream聽(MemoryPooledByteBufferFactory.java:24)
聽 | com.facebook.imagepipeline.producers.NetworkFetchProducer.onResponse聽(NetworkFetchProducer.java:96)
聽 | com.facebook.imagepipeline.producers.NetworkFetchProducer$1.onResponse聽(NetworkFetchProducer.java:73)
聽 | com.facebook.imagepipeline.backends.okhttp3.OkHttpNetworkFetcher$2.onResponse聽(OkHttpNetworkFetcher.java:177)
聽 | okhttp3.RealCall$AsyncCall.execute聽(RealCall.java:206)
聽 | okhttp3.internal.NamedRunnable.run聽(NamedRunnable.java:32)
聽 | java.util.concurrent.ThreadPoolExecutor.runWorker聽(ThreadPoolExecutor.java:1162)
聽 | java.util.concurrent.ThreadPoolExecutor$Worker.run聽(ThreadPoolExecutor.java:636)
聽 | java.lang.Thread.run聽(Thread.java:764)

needs-details stale

Most helpful comment

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: ".../lib-main/libimagepipeline.so" is 64-bit instead of 32-bit

Got this crash recently in our production app.
Downgrading our gradle version wouldn't cut it as other dependencies require higher. Further, that would not work as a solution either way 馃槄

Any update?

All 13 comments

What devices does this happen on? There's the same issue already open for SoLoader but the other way around (32 bit instead of 64) and using a different Android Gradle Plugin version helped: https://github.com/facebook/SoLoader/issues/29

What version are you using?

version:
api "com.facebook.fresco:fresco:1.13.0"
api "com.facebook.fresco:imagepipeline-okhttp3:1.10.0"

Can you try with the Android Gradle plugin version 3.2.0 as described in the issue I've linked above?

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to reopen with up-to-date information.

so what is the root cause?
same problem...

Does it work with Android Gradle plugin version 3.2.0 as described above?

@oprisnik we use 3.3.2 but only started noticing this issue after supporting 64-bit architectures i.e. replacing:

abiFilters "armeabi-v7a", "x86", "armeabi", "mips"

with:

abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"

Regarding the devices and OS version, it usually occurs on Oppo and Android 5.1.1

Screen Shot 2019-08-14 at 7 29 12 PM

I can still to downgrade the plugin to see if it fixes the issue.

I tried downgrading from 3.3.2 to 3.2.0 but that fails with build errors due to incompatibility issues with other androidx dependencies.

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: ".../lib-main/libimagepipeline.so" is 64-bit instead of 32-bit

Got this crash recently in our production app.
Downgrading our gradle version wouldn't cut it as other dependencies require higher. Further, that would not work as a solution either way 馃槄

Any update?

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: "/data/data/com.plato.android/lib-1/libimagepipeline.so" is 32-bit instead of 64-bit
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:789)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:639)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525)
...

classpath 'com.android.tools.build:gradle:3.5.3'
implementation 'com.facebook.fresco:fresco:2.1.0

splits {
abi {
...
include "x86", "armeabi-v7a", "arm64-v8a"
}
}'

70 crashes during last month, 91% - Samsung (where 45% A20, 23% A70, 20% S10, 3% S7), 8% -Infinix NOTE 5 Stylus and 1% BLU GRAND HD

Any updates?

I have the same problem. Initially in Fresco 1.13.0, and after upgrade to 2.0.0.

E/SoLoader: couldn't find DSO to load: libimagepipeline.so
E/AndroidRuntime: FATAL EXCEPTION: FrescoIoBoundExecutor-2
Process: my.package.xxx, PID: 4382
java.lang.NoClassDefFoundError: failed for class com.facebook.imagepipeline.memory.NativeMemoryChunk; see exception in other thread
at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:25)
at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:13)

Any updates?

Was this page helpful?
0 / 5 - 0 ratings