首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >logcat中的数百个随机错误

logcat中的数百个随机错误
EN

Stack Overflow用户
提问于 2019-01-03 19:46:18
回答 2查看 844关注 0票数 3

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

这些错误不断出现,我可以感觉到logcat中的“马车轮子”效应。

错误包括:

代码语言:javascript
运行
复制
    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)

我既不能阻止它,也不能找到应用程序的实际错误。这就像是大海捞针(虽然我可以搜索)。

如果有这些错误,请提供消除这些错误的解决方案。

EN

回答 2

Stack Overflow用户

发布于 2019-01-03 19:49:21

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

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

票数 5
EN

Stack Overflow用户

发布于 2019-01-03 20:19:20

谢谢你的帮助,但我已经找到了消除错误的解决方案。

这些错误与谷歌应用程序试图不断地收听热词"Ok Google“来工作有关,所以在我拒绝了这个应用程序的麦克风权限后,错误现在仅限于这一行:

代码语言:javascript
运行
复制
E: openRecord() permission denied: recording not allowed
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54021659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档