语音唤醒Jni错误
llak 发布于2017-10 浏览:2110 回复:4
0
收藏
快速回复

我使用的服务是:语音唤醒和识别

调用的接口是:

参数设置情况:

开发平台和机型:android

SDK版本号:

代码或日志截图(上传截图能帮助您更快解决问题):代码如下

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo() on instance of android.app.Application

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]     in call to CallObjectMethodV

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] "Thread-173" prio=5 tid=15 Runnable

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x12f260a0 self=0x9d459c00

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | sysTid=14401 nice=0 cgrp=default sched=0/0 handle=0xb4928180

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | state=R schedstat=( 10735001 2524332 11 ) utm=1 stm=0 core=3 HZ=100

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | stack=0x9acea000-0x9acec000 stackSize=1012KB

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #00 pc 00004ef0  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #01 pc 000036d5  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #02 pc 002439c9  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #03 pc 00227d71  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+144)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #04 pc 000b099b  /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #05 pc 000b10e1  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #06 pc 000b1c9b  /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #07 pc 000b8a07  /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #08 pc 000419ad  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #09 pc 0004b347  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #10 pc 00049b3b  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #11 pc 0001efab  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #12 pc 00023dbf  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #13 pc 00024221  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #14 pc 00020803  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #15 pc 00020fb1  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #16 pc 00021623  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #17 pc 00052d01  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #18 pc 00052c1d  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #19 pc 00053cdf  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #20 pc 000451ff  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #21 pc 00016eaf  /system/lib/libc.so (__pthread_start(void*)+30)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #22 pc 00014deb  /system/lib/libc.so (__start_thread+6)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   (no managed stack frames)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] 


复现步骤、现象及其他描述:我想知道我错在哪里?大侠们请指出哪个库哪行代码的问题

收藏
点赞
0
个赞
共4条回复 最后由用户已被禁言回复于2022-04
#5淡存点余光回复于2018-04
#4 llak回复
fujiayi1984: 回复llak:请先测试demo是否有此问题。 回复fujiayi1984: demo单独运行没问题!就是整合进去后出现问题
展开

问题解决没有

 

0
#4llak回复于2017-10

fujiayi1984:

回复llak:请先测试demo是否有此问题。

回复fujiayi1984:


demo单独运行没问题!就是整合进去后出现问题

0
#3llak回复于2017-10

demo单独运行没问题!就是整合进去后出现问题

0
#2fujiayi1984回复于2017-10

llak:

我使用的服务是:语音唤醒和识别

调用的接口是:

参数设置情况:

开发平台和机型:android

SDK版本号:

代码或日志截图(上传截图能帮助您更快解决问题):代码如下

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo() on instance of android.app.Application

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]     in call to CallObjectMethodV

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] "Thread-173" prio=5 tid=15 Runnable

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x12f260a0 self=0x9d459c00

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | sysTid=14401 nice=0 cgrp=default sched=0/0 handle=0xb4928180

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | state=R schedstat=( 10735001 2524332 11 ) utm=1 stm=0 core=3 HZ=100

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | stack=0x9acea000-0x9acec000 stackSize=1012KB

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #00 pc 00004ef0  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #01 pc 000036d5  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #02 pc 002439c9  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #03 pc 00227d71  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+144)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #04 pc 000b099b  /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #05 pc 000b10e1  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #06 pc 000b1c9b  /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #07 pc 000b8a07  /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #08 pc 000419ad  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #09 pc 0004b347  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #10 pc 00049b3b  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #11 pc 0001efab  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #12 pc 00023dbf  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #13 pc 00024221  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #14 pc 00020803  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #15 pc 00020fb1  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #16 pc 00021623  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.419 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #17 pc 00052d01  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #18 pc 00052c1d  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #19 pc 00053cdf  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #20 pc 000451ff  /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #21 pc 00016eaf  /system/lib/libc.so (__pthread_start(void*)+30)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   native: #22 pc 00014deb  /system/lib/libc.so (__start_thread+6)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65]   (no managed stack frames)

10-13 21:04:13.420 14370-14401/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] 


复现步骤、现象及其他描述:我想知道我错在哪里?大侠们请指出哪个库哪行代码的问题

回复llak:请先测试demo是否有此问题。

0
TOP
切换版块