百度语音初始化 个别机器 初始化崩溃
葫小健 发布于2020-05 浏览:1892 回复:5
0
收藏

正文代码:

// 设置语音合成声音授权文件
        AuthInfo authInfo = mSpeechSynthesizer.auth(TtsMode.MIX);
        // 判断授权信息是否正确,如果正确则初始化语音合成器并开始语音合成,如果失败则做错误处理
        if (authInfo.isSuccess()) {
            Loggers.e("授权成功");
            mSpeechSynthesizer.initTts(TtsMode.MIX);  //离在线合成
            mSpeechSynthesizer.setStereoVolume(1.0f, 1.0f);
        } else {
            // 授权失败
            Loggers.e("授权失败");
        }

报错日志

05-12 09:24:32.024 24849-24849/com.shiyi.smartpos E/smartPos: 授权成功

--------- beginning of crash
05-12 09:24:32.055 24849-24849/com.shiyi.smartpos A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 24849 (.shiyi.smartpos)
05-12 09:24:32.158 3110-3110/? D/PinEntryService: handleMessage() : to hide dlg.
05-12 09:24:32.167 297-297/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-12 09:24:32.168 297-297/? I/DEBUG: Build fingerprint: 'LANDI/APOS_A8/APOS_A8:5.1.1/LMY47V/builder10121503:user/test-keys'
05-12 09:24:32.168 297-297/? I/DEBUG: Revision: '0'
05-12 09:24:32.169 297-297/? I/DEBUG: ABI: 'arm'
05-12 09:24:32.170 297-297/? I/DEBUG: pid: 24849, tid: 24849, name: .shiyi.smartpos >>> com.shiyi.smartpos <<<
05-12 09:24:32.171 297-297/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
05-12 09:24:32.190 297-297/? I/DEBUG: r0 00000000 r1 00000000 r2 ffffffbc r3 00000000
05-12 09:24:32.190 297-297/? I/DEBUG: r4 00000000 r5 b8842878 r6 00000000 r7 00000001
05-12 09:24:32.190 297-297/? I/DEBUG: r8 ffffffff r9 fffffffc sl 00000008 fp 00000008
05-12 09:24:32.190 297-297/? I/DEBUG: ip a0404e50 sp bef4d9f0 lr a03853ff pc b6e49a28 cpsr a0090010
05-12 09:24:32.192 297-297/? I/DEBUG: backtrace:
05-12 09:24:32.192 297-297/? I/DEBUG: #00 pc 0000fa28 /system/lib/libc.so (__memcpy_base+88)
05-12 09:24:32.193 297-297/? I/DEBUG: #01 pc 001403fb /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN10speech_tts15read_cnn_weightEP7__sFILEPNS_10TmpConvCfgE+290)
05-12 09:24:32.193 297-297/? I/DEBUG: #02 pc 001406e5 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN10speech_tts22loadGlobalW_old_formatEP7__sFILEi+100)
05-12 09:24:32.193 297-297/? I/DEBUG: #03 pc 0013fa17 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN10speech_tts13loadGlobalW_2EP7__sFILElliP11_hmmmmfhead+62)
05-12 09:24:32.193 297-297/? I/DEBUG: #04 pc 0013f76f /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_Z13loadGlobalW_2P7__sFILElliP11_hmmmmfhead+38)
05-12 09:24:32.194 297-297/? I/DEBUG: #05 pc 000abaa5 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN4etts10PlResource10load_modelEPKcP7__sFILEj+96)
05-12 09:24:32.194 297-297/? I/DEBUG: #06 pc 000abad5 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN4etts10PlResource7initialEPKcP7__sFILEjPNS_19tag_mem_stack_arrayE+8)
05-12 09:24:32.194 297-297/? I/DEBUG: #07 pc 00097593 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN4etts26text_lib_load_res_mandarinEP7__sFILEP11TTS_RES_SECPcPNS_7TEXTLIBEPNS_19tag_mem_stack_arrayE+138)
05-12 09:24:32.195 297-297/? I/DEBUG: #08 pc 00097691 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN4etts17text_lib_load_resEP7__sFILEP11TTS_RES_SECPclPNS_19tag_mem_stack_arrayE17TTS_LITE_RES_TYPE+96)
05-12 09:24:32.195 297-297/? I/DEBUG: #09 pc 00137d45 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so
05-12 09:24:32.195 297-297/? I/DEBUG: #10 pc 0013819d /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN4etts27bd_etts_engine_init_controlEPKcS1_Pl+1024)
05-12 09:24:32.195 297-297/? I/DEBUG: #11 pc 00138d83 /data/app/com.shiyi.smartpos-1/lib/arm/libbd_etts.so (_ZN4etts19bd_etts_engine_initEPKcS1_Pl+50)
05-12 09:24:32.196 297-297/? I/DEBUG: #12 pc 00001a67 /data/app/com.shiyi.smartpos-1/lib/arm/libbdtts.so (Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSEngineInit+66)
05-12 09:24:32.196 297-297/? I/DEBUG: #13 pc 002cdda5 /data/dalvik-cache/arm/data@app@com.shiyi.smartpos-1@base.apk@classes.dex
05-12 09:24:32.545 796-796/? I/system_server: type=1400 audit(0.0:3035): avc: denied { getattr } for path="/tmp/systemstatus/POWER_LEVEL" dev="tmpfs" ino=144812 scontext=u:r:system_server:s0 tcontext=u:object_r:system_server_tmpfs:s0 tclass=file permissive=1
05-12 09:24:32.545 796-796/? I/system_server: type=1400 audit(0.0:3036): avc: denied { write } for name="systemstatus" dev="tmpfs" ino=7682 scontext=u:r:system_server:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1
05-12 09:24:32.565 2723-2723/? I/PowerUI: mBatteryHealth = 1
05-12 09:24:32.568 4031-4126/? D/HeadsetStateMachine: Disconnected process message: 10, size: 0
05-12 09:24:32.545 796-796/? I/system_server: type=1400 audit(0.0:3037): avc: denied { remove_name } for name="POWER_LEVEL" dev="tmpfs" ino=144812 scontext=u:r:system_server:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1
05-12 09:24:32.545 796-796/? I/system_server: type=1400 audit(0.0:3038): avc: denied { unlink } for name="POWER_LEVEL" dev="tmpfs" ino=144812 scontext=u:r:system_server:s0 tcontext=u:object_r:system_server_tmpfs:s0 tclass=file permissive=1
05-12 09:24:32.545 796-796/? I/system_server: type=1400 audit(0.0:3039): avc: denied { add_name } for name="POWER_LEVEL" scontext=u:r:system_server:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1
05-12 09:24:32.601 289-289/? I/SurfaceFlinger: FPS: 43
05-12 09:24:32.907 796-24892/? W/ActivityManager: Force finishing activity 1 com.shiyi.smartpos/com.shiyi.intelligentpos.intelligent_pos.mvp.view.act.Actstart
05-12 09:24:32.908 297-297/? I/DEBUG: Tombstone written to: /data/tombstones/tombstone_00
05-12 09:24:32.911 796-819/? I/BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
05-12 09:24:32.974 324-324/? I/Zygote: Process 24849 exited due to signal (11)
05-12 09:24:33.224 796-24892/? I/WindowManager: Screenshot max retries 4 of Token{6c1199 ActivityRecord{10d30ae0 u0 com.shiyi.smartpos/com.shiyi.intelligentpos.intelligent_pos.mvp.view.act.Actstart t27 f}} appWin=Window{26755ad1 u0 Starting com.shiyi.smartpos} drawState=4
05-12 09:24:33.226 796-24892/? W/ActivityManager: Exception thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:842)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2784)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2641)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2583)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11789)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11686)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12370)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11881)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)

收藏
点赞
0
个赞
共5条回复 最后由幻世一战士回复于2022-10
#27幻世一战士回复于2022-10
#2 葫小健回复
我这里突然有台机器初始化失败,但是从日志看不出原因是什么。

你好

1
#26幻世一战士回复于2022-10

#2 你好

1
#25幻世一战士回复于2022-10

你好,你这个是旺铺管家APP吗?请问怎么下载

1
#3用户已被禁言回复于2020-05
#2 葫小健回复
我这里突然有台机器初始化失败,但是从日志看不出原因是什么。

请下载官网最新版本sdk,看有无此问题。

0
#2葫小健回复于2020-05

我这里突然有台机器初始化失败,但是从日志看不出原因是什么。

1
TOP
切换版块