BlinkID / blinkid-android

Everything you need to add AI-driven ID scanning into your native Android app.
https://microblink.com/identity/identity-document-scanning/
446 stars 153 forks source link

dlopen failed: library "libBlinkID.so" not found #332

Open mohamadbadr opened 4 days ago

mohamadbadr commented 4 days ago

A crash is occurring during setting the license in our application class

implementation MicroblinkSDK.setLicenseFile("microblink.license", this)

here is the stack trace

Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libBlinkID.so" not found
       at java.lang.Runtime.loadLibrary0(Runtime.java:1107)
       at java.lang.Runtime.loadLibrary0(Runtime.java:1028)
       at java.lang.System.loadLibrary(System.java:1664)
       at com.microblink.blinkid.secured.lIlIllllII.IllIIIllII(line:9)
       at com.microblink.blinkid.secured.lIlIllllII.llIIlIlIIl(line:1)
       at com.microblink.blinkid.MicroblinkSDK.<clinit>(line:1)
       at com.example.ApplcationClass.onCreate(ApplcationClass.kt:55)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1204)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6795)
       at android.app.ActivityThread.access$1300(ActivityThread.java:240)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1940)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:223)
       at android.app.ActivityThread.main(ActivityThread.java:7743)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

we are using version 6.11.0

mparadina commented 4 days ago

Hi @mohamadbadr

Can you tell me if you are running the SDK on a simulator, or a physical device? Is the behavior occurring on multiple devices?

mohamadbadr commented 4 days ago

Hi @mparadina

its a production issue that is occurring with the users on multiple devices and all android os versions

mparadina commented 4 days ago

Hi @mohamadbadr

Thank you for the swift response.

Are you able to share on which devices, along with Android OS versions, the crashes are occurring?

mohamadbadr commented 4 days ago

Hi @mparadina,

Here is a small sample:

Brand Model Android OS version
Samsung Galaxy S22 11
Google Pixel 5 13
Oneplus OnePlus 10 Pro 5G 9
Xiaomi Mi 10 Pro 12
Huawei MED-LX9 10

The issue is happening with 63 Users and occurred 666 times in the last 7 days. We think it started when we migrated to Android SDK 34