-
Notifications
You must be signed in to change notification settings - Fork 60
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
频繁的打开和关闭摄像头会导致闪退,开发板未为rk3288 #7
Comments
你的这个日志没有什么有用的信息,崩溃错误出错的地方也是系统库,你可以把板子连电脑,然后用android studio把源码运行安装一下,应该能输出一些有用的日志,再发过来吧 |
demo-debug.zip |
好的,刚才用华为的手机测试了好久并没有出现这个问题,应该是只是这个板子会出现 |
你好,我选中你发我的demo在androidstudio中进行调试,但是基本只能看到系统的错误,这个是大概能有点关联的,每次崩溃开始都是这句: |
demo-debug.zip |
好的,这个demo好像不会了,开关了几十次,没有出现异常 |
libuvccamera/src/main/java/com/herohan/uvcapp/VideoCapture.java | 4 ++-- diff --git a/libuvccamera/src/main/java/com/herohan/uvcapp/VideoCapture.java b/libuvccamera/src/main/java/com/herohan/uvcapp/VideoCapture.java
+// mAudioEncoder.release(); @@ -494,7 +494,7 @@ public class VideoCapture {
+// mVideoEncoder.release(); |
嗯,这么来看,就是系统固件的问题,你如果想着这个固件上面使用本库的话,可以把VideoCapture文件里面的释放MediaCodec的操作注释掉 |
好的,谢谢 |
log.txt
如日志所示,如果在同一个activity里面操作了多次开关摄像头,或者是在不同的activity之间跳转,有一定的几率会发生崩溃,使用demo的开关也是这样
The text was updated successfully, but these errors were encountered: