Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo 运行崩溃 #18

Open
kevinStrange opened this issue Mar 7, 2019 · 3 comments
Open

demo 运行崩溃 #18

kevinStrange opened this issue Mar 7, 2019 · 3 comments

Comments

@kevinStrange
Copy link

小米8运行该demo时出现崩溃,崩溃日志如下
2019-03-07 15:38:35.743 28905-28990/net.yrom.screenrecorder E/AndroidRuntime: FATAL EXCEPTION: AudioSenderThread
Process: net.yrom.screenrecorder, PID: 28905
java.lang.IllegalStateException: Deque full
at java.util.concurrent.LinkedBlockingDeque.addLast(LinkedBlockingDeque.java:335)
at java.util.concurrent.LinkedBlockingDeque.add(LinkedBlockingDeque.java:633)
at net.yrom.screenrecorder.task.RtmpStreamingSender.sendFood(RtmpStreamingSender.java:139)
at net.yrom.screenrecorder.ui.activity.ScreenRecordActivity$2.collect(ScreenRecordActivity.java:112)
at net.yrom.screenrecorder.task.AudioSenderThread.sendRealData(AudioSenderThread.java:112)
at net.yrom.screenrecorder.task.AudioSenderThread.run(AudioSenderThread.java:70)
2019-03-07 15:38:35.745 28905-28990/net.yrom.screenrecorder E/MQSEventManagerDelegate: failed to get MQSService.
2019-03-07 15:38:35.750 28905-28984/net.yrom.screenrecorder D/RESLog: VideoSenderThread,MediaCode,eobIndex=0

@TaoHanny
Copy link

我也是这个问题,大佬能解答一下吗?这个好像是数据阻塞,但不知道怎么解。

@myrao
Copy link
Owner

myrao commented Apr 22, 2019

这个问题是因为目前queue设置的只是30Frames,队列阻塞导致的。 可以改一下队列实现~

@TaoHanny
Copy link

这个问题是因为目前队列设置的只是30Frames,队列阻塞导致的。可以改一下队列实现〜
非常感谢,我改变了maxQueueLength的值,就可以运行了。还在继续研究您的代码中,哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants