android - GsaIOException 缓冲区溢出,没有可用空间

标签 android exception video-streaming

我有一个带有直播功能的 MediaPlayer 应用程序。当我使用物理设备(API 22 Lollipop 和 API 23 Marshmallow)测试应用程序时,启动流没有问题。 今天我想使用模拟器(API 25 Nougat)测试该应用程序。流无法正常工作,我收到以下错误:

(SourceFile:139) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)  at java.lang.Thread.run(Thread.java:761)  at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)  02-23 23:58:09.834 2166-3554/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4) com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342) at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761) at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85) Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space. at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531) at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555) at java.io.InputStream.read(InputStream.java:101) at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362) at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66) at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139) at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)  at java.lang.Thread.run(Thread.java:761)  at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85) 

我只能识别出一件我认为重要的事情。

GsaIOException: Error code: 393238 | Buffer overflow, no available space

但我不知道这意味着什么。谁能解释一下它是什么类型的异常。我可以在哪里搜索代码来找到问题?

最佳答案

我遇到了类似的问题,对我来说它也在设备上崩溃,并出现相同的错误。这就是我为设备修复它的方法:

<uses-permission android:name="android.permission.RECORD_AUDIO" />

更多详细信息请参见:Looping Error on Android Emulator

为了使应用程序在模拟器上运行,在应用上述链接的修复后,我必须创建一个基于 x86 架构(而不是以前的 x86_64)的新模拟器,并且它可以工作。

关于android - GsaIOException 缓冲区溢出,没有可用空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42428565/

相关文章:

android - LinearLayout 忽略的边距

c# - 如何向用户报告标准异常?

c# - 为什么我不能使用反射加载 AssemblyVersion 属性?

android - 媒体记录器启动失败 : MEDIA_ERROR_UNSUPPORTED (start failed: -1010) while trying to record video to socket

c# - 上传到 Azure Blob 存储的 MP4 视频文件无法播放

android - 以编程方式阻止 View 寻呼机中的页面滑动

java - 找不到类 'twitter4j.http.AccessToken'

java - 为什么 onActivityResult() 被工作线程阻塞?

sql-server - 在 Delphi 异常中获取 MS SQL Server 异常用户消息

asp.net-mvc - ASP.Net MVC中的实时视频聊天+录制解决方案