question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, if u execute the demo in API 23 the app crashes with this error:

E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 Process: org.vosk.demo, PID: 9455 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) 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:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'vosk': dlopen failed: cannot locate symbol "fopen64" referenced by "/data/app/org.vosk.demo-1/lib/x86/libvosk.so"... dlopen failed: cannot locate symbol "fopen64" referenced by "/data/app/org.vosk.demo-1/lib/x86/libvosk.so"... dlopen failed: cannot locate symbol "fopen64" referenced by "/data/app/org.vosk.demo-1/lib/x86/libvosk.so"... Native library (android-x86/libvosk.so) not found in resource path (.) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:301) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461) at com.sun.jna.Native.register(Native.java:1746) at org.vosk.LibVosk.<clinit>(LibVosk.java:9) at org.vosk.demo.VoskActivity$SetupTask.doInBackground(VoskActivity.java:111) at org.vosk.demo.VoskActivity$SetupTask.doInBackground(VoskActivity.java:97) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more Suppressed: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "fopen64" referenced by "/data/app/org.vosk.demo-1/lib/x86/libvosk.so"... at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191) ... 11 more Suppressed: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "fopen64" referenced by "/data/app/org.vosk.demo-1/lib/x86/libvosk.so"... at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204) ... 11 more Suppressed: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "fopen64" referenced by "/data/app/org.vosk.demo-1/lib/x86/libvosk.so"... at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:1076) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:218) ... 11 more Suppressed: java.io.IOException: Native library (android-x86/libvosk.so) not found in resource path (.) at com.sun.jna.Native.extractFromResourcePath(Native.java:1119) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:275) ... 11 more D/EGL_emulation: eglMakeCurrent: 0xae514540: ver 2 0 (tinfo 0xae512c40) E/Surface: getSlotFromBufferLocked: unknown buffer: 0xae689640

Any ideas?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
nshmyrevcommented, Apr 8, 2021

Same error:

You didn’t update properly, check your code uses newer aar from today.

0reactions
felipe9962commented, Apr 8, 2021

Yep, now works succesfully, thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crash on Android 6.0 API 23 (but not on Android 9, API 28)
Strangly the Android 6.0 API 23 version recently started to crash when trying to open an activity from the app. I don't remember...
Read more >
API 23 x86_64 emulator webview/browser crashes without ...
The default browser and webviews crash immediately when opened on an API 23 x86_64 emulator without host gpu enabled. This is pretty similar...
Read more >
Crash on API level 23 · Issue #16 - GitHub
Try to run the app on a device running on API level 23 or lower ... The crash is caused by the ImageView...
Read more >
Managing WebView objects - Android Developers
Android provides several APIs to help you manage the WebView objects that display web content in your app. This page describes how to...
Read more >
Android linker changes for NDK developers
For API 23 and later, for any given library, the dynamic linker divides other libraries into ... which leads to crashes when required...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found