Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsatisfiedLinkError: com.facebook.imagepipeline.memory.NativeMemoryChunk #2131

Closed
AndroidLearner2018 opened this issue Jun 7, 2018 · 6 comments
Labels

Comments

@AndroidLearner2018
Copy link

AndroidLearner2018 commented Jun 7, 2018

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?]
@AndroidLearner2018
Copy link
Author

AndroidLearner2018 commented Jun 13, 2018

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,The 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

@Freshman111
Copy link

Freshman111 commented Jun 19, 2018

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)

@caprice
Copy link

caprice commented Jun 20, 2018

+1
have encountered the same problem

@stale
Copy link

stale bot commented Jul 10, 2018

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.

@stale stale bot added the stale label Jul 10, 2018
@stale
Copy link

stale bot commented Jul 17, 2018

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.

@stale stale bot closed this as completed Jul 17, 2018
@kongsonida
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants