1
cordova语音合成插件合成语音时报错。
13345019562 发布于2018-05 浏览:1747 回复:1
0
收藏
请问如下错误是什么原因造成?
A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI NewByteArray called with pending exception 'java.lang.reflect.UndeclaredThrowableException' thrown in unknown throw location
A/art: art/runtime/check_jni.cc:65] in call to NewByteArray
A/art: art/runtime/check_jni.cc:65] from int com.baidu.speechsynthesizer.utility.SpeechDecoder.decodeWithCallback(byte[], java.lang.Object)
A/art: art/runtime/check_jni.cc:65] "EngineExecutorPoolThread(1)" prio=5 tid=35 Runnable
A/art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12c654c0 self=0xf838dff0
A/art: art/runtime/check_jni.cc:65] | sysTid=20334 nice=0 cgrp=default sched=0/0 handle=0xf8ad63f0
A/art: art/runtime/check_jni.cc:65] | state=R schedstat=( 17505122 5514918 62 ) utm=1 stm=0 core=0 HZ=100
A/art: art/runtime/check_jni.cc:65] | stack=0xcc881000-0xcc883000 stackSize=1036KB
A/art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)
A/art: art/runtime/check_jni.cc:65] native: #00 pc 00005e23 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+83)
A/art: art/runtime/check_jni.cc:65] native: #01 pc 00003052 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+34)
A/art: art/runtime/check_jni.cc:65] native: #02 pc 0039e098 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+136)
A/art: art/runtime/check_jni.cc:65] native: #03 pc 003682a4 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+276)
A/art: art/runtime/check_jni.cc:65] native: #04 pc 00101e6f /system/lib/libart.so (art::JniAbort(char const*, char const*)+879)
A/art: art/runtime/check_jni.cc:65] native: #05 pc 00102aff /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+111)
A/art: art/runtime/check_jni.cc:65] native: #06 pc 00108917 /system/lib/libart.so (art::ScopedCheck::CheckThread(int)+2871)
A/art: art/runtime/check_jni.cc:65] native: #07 pc 00109099 /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+217)
A/art: art/runtime/check_jni.cc:65] native: #08 pc 0010c48c /system/lib/libart.so (art::CheckJNI::NewByteArray(_JNIEnv*, int)+60)
A/art: art/runtime/check_jni.cc:65] native: #09 pc 0004c6ac /data/app/com.hikit.tts.sample-2/lib/x86/libBDSpeechDecoder_V1.so (???)
A/art: art/runtime/check_jni.cc:65] native: #10 pc 000459f7 /data/app/com.hikit.tts.sample-2/lib/x86/libBDSpeechDecoder_V1.so (bds::CVADServer::audio_format_trans(char*, int, short*, int*, int, int, void (*)(short const*, int, void*), void*)+3143)
A/art: art/runtime/check_jni.cc:65] native: #11 pc 0004c78e /data/app/com.hikit.tts.sample-2/lib/x86/libBDSpeechDecoder_V1.so (BDTTS_TTSSpeechDecoder::SpeechDecWithCallback(char*, int, void (*)(short const*, int, void*), void*)+162)
A/art: art/runtime/check_jni.cc:65] native: #12 pc 0004c887 /data/app/com.hikit.tts.sample-2/lib/x86/libBDSpeechDecoder_V1.so (Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decodeWithCallback+194)
A/art: art/runtime/check_jni.cc:65] native: #13 pc 0012660a /data/dalvik-cache/x86/data@app@com.hikit.tts.sample-2@base.apk@classes.dex (Java_com_baidu_speechsynthesizer_utility_SpeechDecoder_decodeWithCallback___3BLjava_lang_Object_2+174)
A/art: art/runtime/check_jni.cc:65] native: #14 pc 8cb83cf9 ???
A/art: art/runtime/check_jni.cc:65] native: #15 pc 8e1b0e24 ???
A/art: art/runtime/check_jni.cc:65] native: #16 pc 81a98a0b ???
A/art: art/runtime/check_jni.cc:65] at com.baidu.speechsynthesizer.utility.SpeechDecoder.decodeWithCallback(Native method)
A/art: art/runtime/check_jni.cc:65] at com.baidu.speechsynthesizer.utility.SpeechDecoder.decodeWithCallback(SpeechDecoder.java:62)
A/art: art/runtime/check_jni.cc:65] at com.baidu.tts.b.a.b.f$d.a(OnlineSynthesizer.java:134)
A/art: art/runtime/check_jni.cc:65] at com.baidu.tts.b.a.b.f.a(OnlineSynthesizer.java:80)
A/art: art/runtime/check_jni.cc:65] at com.baidu.tts.b.a.b.d.a(MixSynthesizer.java:187)
A/art: art/runtime/check_jni.cc:65] at com.baidu.tts.b.a.a.c$a.a(EngineExecutor.java:232)
收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2fujiayi1984回复于2018-05

测试下官方demo有无此问题,应该是你自己写的回调中抛出异常了。

0
TOP
切换版块