Fresco: java.lang.UnsatisfiedLinkError: com.facebook.imagepipeline.memory.NativeMemoryChunk

Created on 7 Jun 2018  路  6Comments  路  Source: facebook/fresco

We use GitHub Issues for bugs.

If you have a non-bug question, please ask on Stack Overflow: http://stackoverflow.com/questions/tagged/fresco

--- Please use this template, and delete everything above this line before submitting your issue ---

Description

java.lang.UnsatisfiedLinkError:There are many people who have this problem and don't know what caused it. Please help me solve this problem. I can't build multiple APKs,Because we have introduced the SDK of ali baichuan e-commerce company in our application, only one security picture is assigned to an app when signing,
I can't change abiFilters in app/build.gradle , If I change it,the security picture will be invalid,and This security picture cannot be replaced;I have tried #2049 (especially #2049 (comment)). and can't solve my problem
implementation 'com.facebook.fresco:fresco:1.9.0'
implementation 'com.facebook.fresco:imagepipeline-okhttp3:1.9.0'

Reproduction

error log:
java.lang.UnsatisfiedLinkError: com.facebook.imagepipeline.memory.NativeMemoryChunk
at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:56)
at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:18)
at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:255)
at com.facebook.imagepipeline.memory.NativePooledByteBufferOutputStream.(NativePooledByteBufferOutputStream.java:49)
at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newByteBuffer(NativePooledByteBufferFactory.java:96)
at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newByteBuffer(NativePooledByteBufferFactory.java:24)
at com.facebook.imagepipeline.cache.BufferedDiskCache.readFromDiskCache(BufferedDiskCache.java:334)
at com.facebook.imagepipeline.cache.BufferedDiskCache.access$400(BufferedDiskCache.java:34)
at com.facebook.imagepipeline.cache.BufferedDiskCache$2.call(BufferedDiskCache.java:180)
at com.facebook.imagepipeline.cache.BufferedDiskCache$2.call(BufferedDiskCache.java:164)
at bolts.Task$4.run(Task.java:357)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at com.facebook.imagepipeline.core.PriorityThreadFactory$1.run(PriorityThreadFactory.java:51)
at java.lang.Thread.run(Thread.java:818)[FILL THIS OUT: How can we reproduce the bug? Provide URLs to relevant images if possible, or a sample project.]
tim 20180607171813

Solution

[OPTIONAL: Do you know what needs to be done to address this issue? Ideally, provide a pull request which fixes this issue.]

Additional Information

  • Fresco version: [FILL THIS OUT]
  • Platform version: [FILL THIS OUT: specific to a particular Android version? Device?]
stale

Most helpful comment

A user's mobile phone model is vivo X6S A. When the app is opened, the app will flash back and the UnsatisfiedLinkError will be reported锛孴he error disappeared when I changed the version of fresco from 1.9.0 to 1.5.0
The ( implementation ' com. Facebook. Fresco ": fresco" : 1.9.0 ' ) to be ( implementation ' com. Facebook. Fresco ": fresco" : 1.5.0 '),The user's mobile phone model is vivo X6S A who's problem will disappear,but the UnsatisfiedLinkError also occasionally appears on other phones

All 6 comments

A user's mobile phone model is vivo X6S A. When the app is opened, the app will flash back and the UnsatisfiedLinkError will be reported锛孴he error disappeared when I changed the version of fresco from 1.9.0 to 1.5.0
The ( implementation ' com. Facebook. Fresco ": fresco" : 1.9.0 ' ) to be ( implementation ' com. Facebook. Fresco ": fresco" : 1.5.0 '),The user's mobile phone model is vivo X6S A who's problem will disappear,but the UnsatisfiedLinkError also occasionally appears on other phones

have encountered the same problem

fresco:1.9.0
phone:oppo R7plusm
Android 5.1.1

java.lang.UnsatisfiedLinkError: com.facebook.imagepipeline.memory.NativeMemoryChunk
at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:56)
at com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc(NativeMemoryChunkPool.java:18)
at com.facebook.imagepipeline.memory.BasePool.get(BasePool.java:255)
at com.facebook.imagepipeline.memory.NativePooledByteBufferOutputStream.(NativePooledByteBufferOutputStream.java:49)
at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newOutputStream(NativePooledByteBufferFactory.java:139)
at com.facebook.imagepipeline.memory.NativePooledByteBufferFactory.newOutputStream(NativePooledByteBufferFactory.java:24)
at com.facebook.imagepipeline.producers.NetworkFetchProducer.onResponse(NetworkFetchProducer.java:88)
at com.facebook.imagepipeline.producers.NetworkFetchProducer$1.onResponse(NetworkFetchProducer.java:68)
at com.facebook.imagepipeline.backends.okhttp3.OkHttpNetworkFetcher$2.onResponse(OkHttpNetworkFetcher.java:177)
at okhttp3.aa$a.execute(RealCall.java:153)
at okhttp3.internal.b.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1115)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:590)
at java.lang.Thread.run(Thread.java:818)

+1
have encountered the same problem

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.

It's still issue with the latest release.

// Fresco
api 'com.facebook.fresco:fresco:1.13.0'
api 'com.facebook.fresco:animated-webp:1.13.0'
api 'com.facebook.fresco:imagepipeline-okhttp3:1.13.0'

Device model : 100% is Oppo version 5.

Fatal Exception: java.lang.UnsatisfiedLinkErrorcom.facebook.imagepipeline.memory.NativeMemoryChunk

com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc聽(SourceFile:25)
--
聽 | com.facebook.imagepipeline.memory.NativeMemoryChunkPool.alloc聽(SourceFile:13)
聽 | com.facebook.imagepipeline.memory.BasePool.get聽(SourceFile:267)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferOutputStream.聽(SourceFile:6)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferFactory.newByteBuffer聽(SourceFile:73)
聽 | com.facebook.imagepipeline.memory.MemoryPooledByteBufferFactory.newByteBuffer聽(SourceFile:24)
聽 | com.facebook.imagepipeline.producers.LocalFetchProducer.getByteBufferBackedEncodedImage聽(SourceFile:85)
聽 | com.facebook.imagepipeline.producers.LocalFetchProducer.getEncodedImage聽(SourceFile:97)
聽 | com.facebook.imagepipeline.producers.LocalResourceFetchProducer.getEncodedImage聽(SourceFile:37)
聽 | com.facebook.imagepipeline.producers.LocalFetchProducer$1.getResult聽(SourceFile:50)
聽 | com.facebook.imagepipeline.producers.LocalFetchProducer$1.getResult聽(SourceFile:46)
聽 | com.facebook.common.executors.StatefulRunnable.run聽(SourceFile:43)

Please help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eldk picture eldk  路  3Comments

cococool picture cococool  路  4Comments

zewenwang picture zewenwang  路  4Comments

hanhmh1203 picture hanhmh1203  路  4Comments

liubaoyua picture liubaoyua  路  3Comments