videoRecording Failed 摄像头设备遇到严重错误
Posted
技术标签:
【中文标题】videoRecording Failed 摄像头设备遇到严重错误【英文标题】:videoRecording Failed The camera device has encountered a serious error 【发布时间】:2021-04-13 01:05:03 【问题描述】:当我停止视频时,我的屏幕上出现了这些错误我正在使用颤振,https://pub.dev/packages/camera 相机:^0.5.8+11 知道如何解决吗?谢谢。
相机错误相机设备遇到致命错误flutter
Error: videoRecording Failed 摄像头设备出现严重错误
视频停止时我的代码:
void stopVideoRecording() async
try
await cameraController.stopVideoRecording();
on CameraException catch (e)
_showCameraException(e);
return null;
Navigator.pushNamed(context, TutorApplicationVideoSubmitScreen.path,
arguments: videoPath);
以及日志中的错误:
I/MediaRecorder(20839): stop
E/[EGL-ERROR](20839): void __egl_platform_dequeue_buffer(egl_surface*):1734: failed to dequeue buffer from native window 0x5587d0d1f0; err = -19, buf = 0x0,max_allowed_dequeued_buffers 3
E/CameraDeviceGLThread-1(20839): Received exception on GL render thread:
E/CameraDeviceGLThread-1(20839): java.lang.IllegalStateException: swapBuffers: EGL error: 0x300d
E/CameraDeviceGLThread-1(20839): at android.hardware.camera2.legacy.SurfaceTextureRenderer.checkEglError(SurfaceTextureRenderer.java:530)
E/CameraDeviceGLThread-1(20839): at android.hardware.camera2.legacy.SurfaceTextureRenderer.swapBuffers(SurfaceTextureRenderer.java:523)
【问题讨论】:
【参考方案1】:看起来你正在使用camera: 0.5.8+11
这个错误已经修复。请将包升级到最新版本0.6.4+3
。
参考:https://github.com/flutter/flutter/issues/72994
【讨论】:
以上是关于videoRecording Failed 摄像头设备遇到严重错误的主要内容,如果未能解决你的问题,请参考以下文章
Gym wrapper videorecorder 在 Hopper-v2 环境中无法正常工作。给出分段错误
摄像头推流受前端请求而无故停止(中断):rtsp response send failed: Connection reset by peer(未解决)
EasyNVR通道在线但无法播放,且报错“easyrtmp connect failed...”