使用百度语音合成出现jni加载错误
suncohey16 发布于2017-06 浏览:2547 回复:1
0
收藏

我使用的服务是:百度语音合成

调用的接口是:

参数设置情况:

开发平台和机型:Android开发-华为P8

SDK版本号:2.3.0

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

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at android.content.pm.ApplicationInfo android.content.ContextWrapper.getApplicationInfo() (ContextWrapper.java:150)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[]) (EmbeddedSynthesizerEngine.java:-2)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at boolean com.baidu.tts.auth.b$a.g() (OfflineAuth.java:259)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a com.baidu.tts.auth.b.c() (OfflineAuth.java:83)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Object com.baidu.tts.auth.b.call() (OfflineAuth.java:25)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.k.a com.baidu.tts.k.c.a(com.baidu.tts.k.b) (Memorizer.java:51)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a com.baidu.tts.auth.a$a.a() (AuthClient.java:184)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Object com.baidu.tts.auth.a$a.call() (AuthClient.java:148)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.lang.Thread.run() (Thread.java:833)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] 

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]     in call to FindClass

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]     from int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[])

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] "Thread-9616" prio=5 tid=41 Runnable

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | group="main" sCount=0 dsCount=0 obj=0x131f40a0 self=0x7f2c4b9600

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | sysTid=2259 nice=0 cgrp=top_visible sched=0/0 handle=0x7f2a7f4440

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | state=R schedstat=( 9770280 60840 54 ) utm=0 stm=0 core=6 HZ=100

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | stack=0x7f2a6f2000-0x7f2a6f4000 stackSize=1037KB

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | held mutexes= "mutator lock"(shared held)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #00 pc 000000000049063c  /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+236)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #01 pc 000000000045f630  /system/lib64/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+220)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #02 pc 0000000000310eec  /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1000)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #03 pc 00000000003117a4  /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+116)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #04 pc 0000000000144ddc  /system/lib64/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+144)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #05 pc 000000000014bc8c  /system/lib64/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.116+6088)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #06 pc 000000000014eed4  /system/lib64/libart.so (_ZN3art8CheckJNI9FindClassEP7_JNIEnvPKc+468)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #07 pc 00000000000b4618  /data/app/com.ybzc.rider-1/lib/arm64/libbd_etts.so (???)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #08 pc 00000000000b7a94  /data/app/com.ybzc.rider-1/lib/arm64/libbd_etts.so (VerifyLicense+144)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #09 pc 0000000000001c54  /data/app/com.ybzc.rider-1/lib/arm64/libbdtts.so (Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense+228)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #10 pc 0000000000a115a0  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[])+276)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #11 pc 00000000009abe8c  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (boolean com.baidu.tts.auth.b$a.g()+544)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #12 pc 00000000009acbc0  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (com.baidu.tts.auth.b$a com.baidu.tts.auth.b.c()+228)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #13 pc 00000000009ad2c4  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (java.lang.Object com.baidu.tts.auth.b.call()+56)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #14 pc 0000000000546c80  /data/dalvik-cache/arm64/system@framework@boot.oat (???)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(Native method)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   - locked <0x035f1598> (a java.lang.Class)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a.g(OfflineAuth.java:259)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b.c(OfflineAuth.java:83)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b.call(OfflineAuth.java:25)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.k.c.a(Memorizer.java:51)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.a$a.a(AuthClient.java:184)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.a$a.call(AuthClient.java:148)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Thread.run(Thread.java:833)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] 

06-24 14:36:12.119 1187-2259/com.ybzc.rider A/art: art/runtime/runtime.cc:368] Runtime aborting...

06-24 14:36:12.119 1187-2259/com.ybzc.rider A/art: art/runtime/runtime.cc:368] 

复现步骤、现象及其他描述:语音播报出现jni加载不到的错误

收藏
点赞
0
个赞
共1条回复 最后由mq40330回复于2022-04
#2fujiayi1984回复于2017-06

suncohey16:

我使用的服务是:百度语音合成

调用的接口是:

参数设置情况:

开发平台和机型:Android开发-华为P8

SDK版本号:2.3.0

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

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at android.content.pm.ApplicationInfo android.content.ContextWrapper.getApplicationInfo() (ContextWrapper.java:150)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[]) (EmbeddedSynthesizerEngine.java:-2)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at boolean com.baidu.tts.auth.b$a.g() (OfflineAuth.java:259)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a com.baidu.tts.auth.b.c() (OfflineAuth.java:83)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Object com.baidu.tts.auth.b.call() (OfflineAuth.java:25)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.k.a com.baidu.tts.k.c.a(com.baidu.tts.k.b) (Memorizer.java:51)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a com.baidu.tts.auth.a$a.a() (AuthClient.java:184)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Object com.baidu.tts.auth.a$a.call() (AuthClient.java:148)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at void java.lang.Thread.run() (Thread.java:833)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] 

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]     in call to FindClass

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]     from int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[])

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] "Thread-9616" prio=5 tid=41 Runnable

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | group="main" sCount=0 dsCount=0 obj=0x131f40a0 self=0x7f2c4b9600

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | sysTid=2259 nice=0 cgrp=top_visible sched=0/0 handle=0x7f2a7f4440

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | state=R schedstat=( 9770280 60840 54 ) utm=0 stm=0 core=6 HZ=100

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | stack=0x7f2a6f2000-0x7f2a6f4000 stackSize=1037KB

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   | held mutexes= "mutator lock"(shared held)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #00 pc 000000000049063c  /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+236)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #01 pc 000000000045f630  /system/lib64/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+220)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #02 pc 0000000000310eec  /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1000)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #03 pc 00000000003117a4  /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+116)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #04 pc 0000000000144ddc  /system/lib64/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+144)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #05 pc 000000000014bc8c  /system/lib64/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.116+6088)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #06 pc 000000000014eed4  /system/lib64/libart.so (_ZN3art8CheckJNI9FindClassEP7_JNIEnvPKc+468)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #07 pc 00000000000b4618  /data/app/com.ybzc.rider-1/lib/arm64/libbd_etts.so (???)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #08 pc 00000000000b7a94  /data/app/com.ybzc.rider-1/lib/arm64/libbd_etts.so (VerifyLicense+144)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #09 pc 0000000000001c54  /data/app/com.ybzc.rider-1/lib/arm64/libbdtts.so (Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense+228)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #10 pc 0000000000a115a0  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[])+276)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #11 pc 00000000009abe8c  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (boolean com.baidu.tts.auth.b$a.g()+544)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #12 pc 00000000009acbc0  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (com.baidu.tts.auth.b$a com.baidu.tts.auth.b.c()+228)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #13 pc 00000000009ad2c4  /data/app/com.ybzc.rider-1/oat/arm64/base.odex (java.lang.Object com.baidu.tts.auth.b.call()+56)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   native: #14 pc 0000000000546c80  /data/dalvik-cache/arm64/system@framework@boot.oat (???)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(Native method)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   - locked <0x035f1598> (a java.lang.Class)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b$a.g(OfflineAuth.java:259)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b.c(OfflineAuth.java:83)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.b.call(OfflineAuth.java:25)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.k.c.a(Memorizer.java:51)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.a$a.a(AuthClient.java:184)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at com.baidu.tts.auth.a$a.call(AuthClient.java:148)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410]   at java.lang.Thread.run(Thread.java:833)

06-24 14:36:12.113 1187-2259/com.ybzc.rider A/art: art/runtime/java_vm_ext.cc:410] 

06-24 14:36:12.119 1187-2259/com.ybzc.rider A/art: art/runtime/runtime.cc:368] Runtime aborting...

06-24 14:36:12.119 1187-2259/com.ybzc.rider A/art: art/runtime/runtime.cc:368] 

复现步骤、现象及其他描述:语音播报出现jni加载不到的错误

回复suncohey16:

您其他手机有问题么?正常手机的型号是什么

0
TOP
切换版块