Skip to content

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "aligned_alloc" referenced by "/data/app/com.whispertflite-U0dFm0EMlhj66MvVkoXFVA==/base.apk!/lib/arm64-v8a/libtensorflowlite.so"... #32

@rabyunghwa

Description

@rabyunghwa

Device: Xiaomi Redmi 5A, Android 8.1, API 27
Description: App crashes on startup.

Process: com.whispertflite, PID: 21753
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "aligned_alloc" referenced by "/data/app/com.whispertflite-U0dFm0EMlhj66MvVkoXFVA==/base.apk!/lib/arm64-v8a/libtensorflowlite.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
at java.lang.System.loadLibrary(System.java:1657)
at com.whispertflite.engine.WhisperEngineNative.(WhisperEngineNative.java:56)
at com.whispertflite.asr.Whisper.(Whisper.java:52)
at com.whispertflite.MainActivity.initModel(MainActivity.java:244)
at com.whispertflite.MainActivity.onCreate(MainActivity.java:145)
at android.app.Activity.performCreate(Activity.java:7088)
at android.app.Activity.performCreate(Activity.java:7079)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2895)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1616)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6651)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)

It seems that it has to do with the Android version, as described here. Is there any workaround? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions