logcat中数以百计的随机错误

时间:2019-01-03 11:46:18

标签: android logcat

在处理项目时,我在logcat中遇到一个奇怪的错误。

这些错误不断出现,使我能感觉到logcat中的“车轮”效应。

错误是:

    2019-01-03 17:08:11.545 20877-20877/? E/HotwordDetector: Invalid or incompatible speaker models. Silent enrollment required.
        java.lang.IllegalArgumentException: Error parsing hotword data buffer
            at com.google.speech.micro.GoogleHotwordData.nativeNew(Native Method)
            at com.google.speech.micro.GoogleHotwordData.<init>(SourceFile:4)
            at com.google.android.apps.gsa.speech.microdetection.a.a.a.b(SourceFile:10)
            at com.google.android.libraries.assistant.hotword.k.a(SourceFile:52)
            at com.google.android.libraries.assistant.hotword.k.at(SourceFile:35)
            at com.google.android.apps.gsa.voiceinteraction.hotword.a.dIB(SourceFile:48)
            at com.google.android.apps.gsa.voiceinteraction.hotword.b.handleMessage(SourceFile:4)
            at android.os.Handler.dispatchMessage(Handler.java:105)
            at android.os.Looper.loop(Looper.java:156)
            at android.app.ActivityThread.main(ActivityThread.java:6517)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
    2019-01-03 17:08:11.559 20877-20877/? E/SpeechMicro: PIE support is disabled.
   2019-01-03 17:11:38.350 20877-20877/? E/HotwordDetector: Invalid or incompatible speaker models. Silent enrollment required.
    java.lang.IllegalArgumentException: Error parsing hotword data buffer
        at com.google.speech.micro.GoogleHotwordData.nativeNew(Native Method)
        at com.google.speech.micro.GoogleHotwordData.<init>(SourceFile:4)
        at com.google.android.apps.gsa.speech.microdetection.a.a.a.b(SourceFile:10)
        at com.google.android.libraries.assistant.hotword.k.a(SourceFile:52)
        at com.google.android.libraries.assistant.hotword.k.at(SourceFile:35)
        at com.google.android.apps.gsa.voiceinteraction.hotword.a.dIB(SourceFile:48)
        at com.google.android.voiceinteraction.GsaVoiceInteractionService.dIB(SourceFile:109)
        at com.google.android.voiceinteraction.l.onServiceConnected(SourceFile:69)
        at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1579)
        at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1607)
        at android.os.Handler.handleCallback(Handler.java:761)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:156)
        at android.app.ActivityThread.main(ActivityThread.java:6517)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
2019-01-03 17:11:38.351 20877-20877/? E/GsaVoiceInteractionSrv: Failed to perform next action.
    java.lang.IllegalArgumentException: Error parsing hotword data buffer
        at com.google.speech.micro.GoogleHotwordData.nativeNew(Native Method)
        at com.google.speech.micro.GoogleHotwordData.<init>(SourceFile:4)
        at com.google.android.apps.gsa.speech.microdetection.a.a.a.b(SourceFile:10)
        at com.google.android.libraries.assistant.hotword.k.a(SourceFile:52)
        at com.google.android.libraries.assistant.hotword.k.at(SourceFile:35)
        at com.google.android.apps.gsa.voiceinteraction.hotword.a.dIB(SourceFile:48)
        at com.google.android.voiceinteraction.GsaVoiceInteractionService.dIB(SourceFile:109)
        at com.google.android.voiceinteraction.l.onServiceConnected(SourceFile:69)
        at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1579)
        at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1607)
        at android.os.Handler.handleCallback(Handler.java:761)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:156)
        at android.app.ActivityThread.main(ActivityThread.java:6517)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

我无法停止它,也无法找到应用程序的实际错误(如果有)。就像大海捞针(尽管我可以搜索)。

请提供解决方案以消除这些错误(如果有)。

2 个答案:

答案 0 :(得分:5)

感谢您的帮助,但我找到了消除错误的解决方案。

错误与Google应用程序有关,该应用程序试图继续收听“ Ok Google”热词,因此我拒绝了该应用程序的麦克风使用权限后,错误现在仅限于以下一行:

E: openRecord() permission denied: recording not allowed

答案 1 :(得分:4)

在logcat中,您可以按自己的应用程序过滤日志,请在logcat中的Regex附近选择"Show only selected app"过滤器。

它将仅显示您的应用程序日志。

enter image description here