facebook / facebook/fresco

lib/arm64/libstatic-webp.so" is 64-bit instead of 32-bit

Open
#2,785 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Why am I getting this error? I've confirmed that this .so file is 64-bit, and the phone is also 64-bit.
Additionally, I have enabled dynamic delivery. After the dynamic module is installed, I noticed that the path /data/app/~~nEXThqLSObE45XjJOHnHrA== changes. In other places, I've achieved this by modifying System.loadLibrary to System.load, and the soLoader here is originally using System.load. I'm not sure if this has any impact.
### Description

Caused by java.lang.UnsatisfiedLinkError
dlopen failed: "/data/app/~~nEXThqLSObE45XjJOHnHrA==/com.xxxxxx-VWsanJ76zE5AJRCKrcAEuQ==/lib/arm64/libstatic-webp.so" is 64-bit instead of 32-bit
java.lang.Runtime.load0 (Runtime.java:929)

java.lang.System.load (System.java:1620)
com.facebook.soloader.SoLoader$1.load (SoLoader.java:558)
com.facebook.soloader.DirectorySoSource.loadLibraryFrom (DirectorySoSource.java:110)
com.facebook.soloader.DirectorySoSource.loadLibrary (DirectorySoSource.java:63)
com.facebook.soloader.ApplicationSoSource.loadLibrary (ApplicationSoSource.java:91)
com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:1067)
com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl (SoLoader.java:943)
com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:855)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:802)
com.facebook.soloader.NativeLoaderToSoLoaderDelegate.loadLibrary (NativeLoaderToSoLoaderDelegate.java:29)
com.facebook.soloader.nativeloader.NativeLoader.loadLibrary (NativeLoader.java:51)
com.facebook.soloader.nativeloader.NativeLoader.loadLibrary (NativeLoader.java:30)
com.facebook.imagepipeline.nativecode.StaticWebpNativeLoader.ensure (StaticWebpNativeLoader.java:32)
com.facebook.animated.webp.WebPImage.createFromByteBuffer (WebPImage.java:94)
com.facebook.animated.webp.WebPImage.decodeFromByteBuffer (WebPImage.java)
com.facebook.imagepipeline.animated.factory.AnimatedImageFactoryImpl.decodeWebP (AnimatedImageFactoryImpl.java:121)
com.facebook.fresco.animation.factory.AnimatedFactoryV2Impl$2.decode (AnimatedFactoryV2Impl.java:109)
com.facebook.imagepipeline.decoder.DefaultImageDecoder.decodeAnimatedWebp (DefaultImageDecoder.java:233)
com.facebook.imagepipeline.decoder.DefaultImageDecoder$1.decode (DefaultImageDecoder.java:65)
com.facebook.imagepipeline.decoder.DefaultImageDecoder.decode (DefaultImageDecoder.java:125)
com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.internalDecode (DecodeProducer.java:386)
com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder.doDecode (DecodeProducer.java:328)
com.facebook.imagepipeline.producers.DecodeProducer$ProgressiveDecoder$1.run (DecodeProducer.java:198)
com.facebook.imagepipeline.producers.JobScheduler.doJob (JobScheduler.java:229)
com.facebook.imagepipeline.producers.JobScheduler$1.run (JobScheduler.java:95)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)

java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
com.facebook.imagepipeline.core.PriorityThreadFactory$1.run (PriorityThreadFactory.java:52)
java.lang.Thread.run (Thread.java:920)
### Reproduction

[FILL THIS OUT: How can we reproduce the bug? Provide URLs to relevant images if possible, or a sample project.]

### Additional Information

* Fresco version: fresco 2.6.0 soloader 0.10.4
* Platform version: Galaxy S10+ Android12

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.