WhatsApp / stickers

This repository contains the iOS and Android sample apps and API for creating third party sticker packs for WhatsApp.
Other
2.7k stars 1.7k forks source link

[Android] UnsatisfiedLinkError: couldn't find DSO to load: libstatic-webp.so is 64-bit instead of 32-bit #293

Closed carstenhag closed 5 years ago

carstenhag commented 5 years ago

Specifications
OS Level: Lollipop 5.1 Device Manufacturer: One Plus 2 Native platforms: armeabi-v7a, armeabi, arm64-v8a

Stickers My stickers do comply with the sticker requirements (512x512 and < 100 KB): Yes My tray icon does comply with the requirements (96x96 and < 50 KB): Yes I am using [WebP/PNG] images for stickers. Yes

The problem
The user said this:

Can't open it. It loads something and just closes down before anything shows. Just a blank white screen for half a second.

See attached logcat. I think there's an issue with the libstatic-webp.so file.

How anyone may be able to reproduce the problem
Pretty much install the app and start it, I guess.

Links
https://play.google.com/store/apps/details?id=de.chagemann.thinkingstickers
https://gitlab.com/carstenhag/thinking-stickers

carstenhag commented 5 years ago

Log_2018-11-22_18-25-58.txt

carstenhag commented 5 years ago

Somewhat similar issue (64-bit instead of 32-bit) here: https://github.com/facebook/react-native/issues/11027

Note: All webp images were generated with Android Studio.

pranshu1701 commented 5 years ago

Looks like a fresco issue

edwinab1 commented 5 years ago

same problem in release, Samsung s5 with android 7, custom rom.

2018-11-23 20:18:04.555 11163-11179/? E/SoLoader: couldn't find DSO to load: libstatic-webp.so 2018-11-23 20:18:04.567 11163-11179/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: com.mobi.lovestickers, PID: 11163 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:325) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761) Caused by: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libstatic-webp.so at com.facebook.soloader.SoLoader.b(Unknown Source) at com.facebook.soloader.SoLoader.a(Unknown Source) at com.facebook.soloader.SoLoader.a(Unknown Source) at com.facebook.soloader.SoLoader.a(Unknown Source) at com.facebook.imagepipeline.nativecode.b.a(Unknown Source) at com.facebook.animated.webp.WebPImage.a(Unknown Source) at com.mobi.lovestickers.i.a(Unknown Source) at com.mobi.lovestickers.i.a(Unknown Source) at com.mobi.lovestickers.i.a(Unknown Source) at com.mobi.lovestickers.h.a(Unknown Source) at com.mobi.lovestickers.EntryActivity$a.a(Unknown Source) at com.mobi.lovestickers.EntryActivity$a.doInBackground(Unknown Source) at android.os.AsyncTask$2.call(AsyncTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)  at java.lang.Thread.run(Thread.java:761) 

Vengat121 commented 5 years ago

having the same issue, is this issue gets solved?

savvisingh commented 5 years ago

Any fixes?

carstenhag commented 5 years ago

@Vengat121 @savvisingh Hey, if you have the same issue you can also +1 the original post. That way, the repo mantainers have it easier prioritizing what to fix.

AhmedNader65 commented 5 years ago

Same issue

simonzhexu commented 5 years ago

working on it, but not an easy fix.

myinnos commented 5 years ago

Same issue any one found solution ?

Caused by java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libstatic-webp.so
       at com.facebook.soloader.SoLoader.initSoSources(Unknown Source)
       at com.facebook.soloader.SoLoader.init(Unknown Source)
       at com.facebook.soloader.SoLoader.init(Unknown Source)
       at com.facebook.soloader.SoLoader.init(Unknown Source)
       at com.facebook.imagepipeline.nativecode.StaticWebpNativeLoader.ensure(Unknown Source)
       at com.facebook.animated.webp.WebPImage.create(Unknown Source)
       at com.starzig.stickerapp.StickerPackValidator.verifyStickerPackValidity(Unknown Source)
       at com.starzig.stickerapp.StickerPackValidator.verifyStickerPackValidity(Unknown Source)
       at com.starzig.stickerapp.StickerPackValidator.verifyStickerPackValidity(Unknown Source)
       at com.starzig.stickerapp.StickerPackLoader.fetchStickerPacks(Unknown Source)
       at com.starzig.stickerapp.EntryActivity$LoadListAsyncTask.doInBackground(Unknown Source)
       at com.starzig.stickerapp.EntryActivity$LoadListAsyncTask.doInBackground(Unknown Source)
       at android.os.AsyncTask$2.call(AsyncTask.java:292)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
       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)
YamilEzequiel commented 5 years ago

Do I have a solution for the same problem?

rebelholic commented 5 years ago

@simonzhexu Have you fix it now?

simonzhexu commented 5 years ago

I added a fix that supports App Bundle, and upgraded fresco. Are you still seeing this problem?

rebelholic commented 5 years ago

I already tested, it's worked after fixed from you. Thanks

carstenhag commented 5 years ago

The commit which he meant: https://github.com/WhatsApp/stickers/commit/00c372ea5e2534ff9279c7103a321a4212b0f579

Can't build my app now with Android Studio 3.3/3.5 Canary 4 when Instant App is enabled/included,

$ ./gradlew installDebug
Starting a Gradle Daemon, 3 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :app
Signing not ready. Be sure to specify a signingConfig for Release

> Task :app:compileDebugJavaWithJavac FAILED
C:\Users\carst\Documents\git\privat\thinking-stickers\app\src\main\java\de\chagemann\thinkingstickers\StickerPackValidator.java:134: error: cannot access AnimatedImage
                final WebPImage webPImage = WebPImage.create(bytes);
                                                     ^
  class file for com.facebook.imagepipeline.animated.base.AnimatedImage not found
C:\Users\carst\Documents\git\privat\thinking-stickers\app\src\main\java\de\chagemann\thinkingstickers\StickerPackValidator.java:135: error: cannot access AnimatedImageDecoder
                if (webPImage.getHeight() != IMAGE_HEIGHT) {
                             ^
  class file for com.facebook.imagepipeline.animated.factory.AnimatedImageDecoder not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

With these dependencies:

    implementation 'com.facebook.fresco:fresco:1.12.0'
    implementation 'com.facebook.fresco:webpsupport:1.12.0'
    implementation 'com.facebook.fresco:animated-webp:1.12.0'
    implementation 'com.facebook.fresco:webpsupport:1.12.0'
carstenhag commented 5 years ago

Nevermind my comment, figured it out. Look at the referenced issue for the solution: Use gradle 4.10.1 so instant app still works

simonzhexu commented 5 years ago

Awesome, Thank you guys! Closing the issue for now. Reopen if needed.

hardapps1692 commented 5 years ago

I am facing this issue daily in my stickers apps. I have updated the dependency with new version 1.13.0 still its crashing in all 64 bits devices. How to resolve it? Please help me out

MarvinJWendt commented 5 years ago

Hi @hardapps1692, please make sure that you use the latest version of the repository. If you already do, or it doesn't solve your problem please open a new Issue (since this is kinda old) and mention #293 in it.

hardapps1692 commented 5 years ago

Hi @hardapps1692, please make sure that you use the latest version of the repository. If you already do, or it doesn't solve your problem please open a new Issue (since this is kinda old) and mention #293 in it.

If I will open a new issue then I will get only comments no any bug fix or suggestion. So I would like to continue issue with this thread.

MarvinJWendt commented 5 years ago

Nevermind my comment, figured it out. Look at the referenced issue for the solution: Use gradle 4.10.1 so instant app still works

@hardapps1692 The author of this thread has resolved his issue. If we continue discussing here, he will get a notification for each comment, which would be annoying for him. If you open a new Issue, we can discuss your problem there without notifying people that don't want to be involved.

Also we can help you a lot faster if you provide the information that is requested in the new issue template. Debug logs would be perfect :)

Since this Issue is 4 Months old, your problem could have a completely different reason and/or solution.