I have successfully downloaded and tested the project SpeechToText - Continuous Offline Voice Recognition.
So I changed the model to Portuguese.
Then it started giving the error below when I click the "Speech to text" button .
After several attempts, I took the ORIGINAL project again, deleted the application data on the cell phone, removed the application, but now even the original application doesn't work anymore, it always gives this error.
I tried it in debug mode, release mode, and even installing the apk.
Could anyone help?
Error:
So I changed the model to Portuguese.
Then it started giving the error below when I click the "Speech to text" button .
After several attempts, I took the ORIGINAL project again, deleted the application data on the cell phone, removed the application, but now even the original application doesn't work anymore, it always gives this error.
I tried it in debug mode, release mode, and even installing the apk.
Could anyone help?
Error:
--------- beginning of crash
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 1927 (b4a.example), pid 1927 (b4a.example)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Redmi/curtana_global/curtana:11/RKQ1.200826.002/V12.5.2.0.RJWMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2022-01-16 15:05:48-0300
pid: 1927, tid: 1927, name: b4a.example >>> b4a.example <<<
uid: 10391
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: 'terminating with uncaught exception of type kaldi::KaldiFatalError: kaldi::KaldiFatalError'
x0 0000000000000000 x1 0000000000000787 x2 0000000000000006 x3 0000007fc6c5b8d0
x4 fefefefefefefeff x5 fefefefefefefeff x6 fefefefefefefeff x7 7f7f7f7f7f7f7f7f
x8 00000000000000f0 x9 c42478c6775edf80 x10 0000000000000000 x11 ffffffc0fffffbdf
x12 0000000000000001 x13 7272456c61746146 x14 0000007f382ccbe2 x15 fffffffc00000000
x16 0000007f382c8948 x17 0000007f382a73d0 x18 0000000000000000 x19 0000000000000787
x20 0000000000000787 x21 00000000ffffffff x22 ffffff80ffffffc8 x23 0000007fc6c5bb20
x24 0000007fc6c5ba00 x25 0000007fc6c5ba40 x26 000000007fffffff x27 0000007fc6c5c2b0
x28 0000007fc6c5c1f0 x29 0000007fc6c5b950
lr 0000007f3825aae0 sp 0000007fc6c5b8b0 pc 0000007f3825ab0c pst 0000000000001000
backtrace:
#00 pc 0000000000089b0c /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 2e8a650ddf4a10855ff9ad91c011753e)
#01 pc 0000000000796190 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so
#02 pc 00000000007962e8 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so
#03 pc 00000000007931d8 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so
#04 pc 0000000000792804 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so
#05 pc 0000000000792760 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so (__cxa_throw+112)
#06 pc 000000000028a2a4 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so (kaldi::MessageLogger::LogAndThrow:perator=(kaldi::MessageLogger const&)+112)
#07 pc 00000000002fade4 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so (Model::Model(char const*)+1208)
#08 pc 0000000000321a9c /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libvosk.so (vosk_model_new+32)
#09 pc 0000000000010154 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libjnidispatch.so
#10 pc 000000000000f938 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libjnidispatch.so
#11 pc 0000000000006e6c /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libjnidispatch.so
#12 pc 000000000000fedc /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libjnidispatch.so
#13 pc 00000000000102d0 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/lib/arm64/libjnidispatch.so
#14 pc 000000000000c73c /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.odex (art_jni_trampoline+172)
#15 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#16 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#17 pc 0000000000319380 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#18 pc 000000000030f6ac /apex/com.android.art/lib64/libart.so (bool art::interpreter:oCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#19 pc 00000000006802e0 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#20 pc 000000000012d994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#21 pc 00000000001345d8 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (org.vosk.Model.<init>)
#22 pc 000000000067fca4 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#23 pc 000000000012d914 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#24 pc 000000000011b840 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (com.biswajit.vosk.SpeechToText.Initialize+24)
#25 pc 000000000068406c /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualQuick+1344) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#26 pc 0000000000131594 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#27 pc 000000000011895c /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (b4a.example.speechtotext._init+84)
#28 pc 0000000000680584 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#29 pc 000000000012d994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#30 pc 0000000000118840 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (b4a.example.speechtotext._activity_create+52)
#31 pc 0000000000306ca8 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.829997668608136289)+268) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#32 pc 000000000066c090 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#33 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#34 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#35 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#36 pc 000000000055658c /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#37 pc 00000000004d5ea0 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#38 pc 00000000000896f4 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 96a2ad2581099975b8c7bb4ab40fb39a7086a166)
#39 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#40 pc 00000000001a8a78 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#41 pc 0000000000319380 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#42 pc 000000000030f6ac /apex/com.android.art/lib64/libart.so (bool art::interpreter:oCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#43 pc 0000000000683dcc /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualQuick+672) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#44 pc 0000000000131594 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#45 pc 00000000000fcdda /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (anywheresoftware.b4a.BA.raiseEvent2+206)
#46 pc 00000000006847b8 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualQuickRange+956) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#47 pc 0000000000131614 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range_quick+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#48 pc 0000000000118da2 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (b4a.example.speechtotext.afterFirstLayout+366)
#49 pc 000000000067fca4 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#50 pc 000000000012d914 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#51 pc 0000000000118c1c /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (b4a.example.speechtotext.access$000)
#52 pc 0000000000680584 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#53 pc 000000000012d994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#54 pc 0000000000118784 /data/app/~~1eoVxkxRMnzSZ1vKeMgCUQ==/b4a.example-igLkMuDl2ALDFwxxPmtlxA==/oat/arm64/base.vdex (b4a.example.speechtotext$WaitForLayout.run+136)
#55 pc 0000000000306ca8 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.829997668608136289)+268) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#56 pc 000000000066c090 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#57 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#58 pc 0000000000647b1c /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+76) (BuildId: 93669e0b54d4fbd48e6d28a2e739275c14fd6f4c)
#59 pc 000000000064b1d0 /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+1696) (BuildId: 93669e0b54d4fbd48e6d28a2e739275c14fd6f4c)
#60 pc 0000000000406510 /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+752) (BuildId: 93669e0b54d4fbd48e6d28a2e739275c14fd6f4c)
#61 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#62 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#63 pc 000000000055658c /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#64 pc 00000000004d5ea0 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#65 pc 00000000000896f4 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 96a2ad2581099975b8c7bb4ab40fb39a7086a166)
#66 pc 0000000000885388 /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136) (BuildId: 93669e0b54d4fbd48e6d28a2e739275c14fd6f4c)
#67 pc 000000000088db3c /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2316) (BuildId: 93669e0b54d4fbd48e6d28a2e739275c14fd6f4c)
#68 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#69 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#70 pc 0000000000554fc8 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#71 pc 000000000055547c /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#72 pc 0000000000439c84 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+656) (BuildId: 6fae6ac805b21c2eb5f0f1ffa98cd3db)
#73 pc 000000000009d424 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: f5012115d88a00f62b029e9081c535c7)
#74 pc 00000000000a5364 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+916) (BuildId: f5012115d88a00f62b029e9081c535c7)
#75 pc 0000000000003680 /system/bin/app_process64 (main+1592) (BuildId: 1ffa62ce1e071ff696118eca58ad6849)
#76 pc 00000000000850e4 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 2e8a650ddf4a10855ff9ad91c011753e)