我正在用Vuforia和Unity开发一个简单的Video App,但遇到了奇怪的麻烦。
该应用正常启动,突然相机发出噪音;我已经在3台设备(2台三星和1台Motorola)中测试了我的应用程序,但问题仍然存在于Samsung设备(S6和S6 Edge)中,但在我的Motorola设备中却没有。
这里是我的日志:
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_OUTPUT]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:85) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1678]):node(3AA_OUTPUT)->getBuffer() fail, index(5), frameCount(2333), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_PREVIEW]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:91) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_PREVIEW)->getBuffer() fail, index(4), frameCount(2333), ret(-1)
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_CAPTURE]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:89) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_CAPTURE)->getBuffer() fail, index(1), frameCount(2333), ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]- ERR(m_getBuffer[1908]):frameCount(2333) : captureNodeCount == 0 || checkRet(-1) != NO_ERROR. so, setFrameState(FRAME_STATE_SKIPPED)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]- WARN(m_getBufferThreadFunc[1326]):m_getBuffer fail, ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-ERR(m_putBuffer[1370]):New frame is INVALID, frameCount(2333)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_putBuffer[1562]):clean frame, frameCount(2333)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_completeFrame[2286]):NOT DONE frameCount(2333)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-WARN(m_putBufferThreadFunc[1310]):m_putbuffer fail, ret(-38)
W/ExynosCamera( 2974): [CAM_ID(0)][]-WARN(m_removeFrameFromList):frame count mismatch: expected(2333), current(2332)
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_OUTPUT]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:85) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1678]):node(3AA_OUTPUT)->getBuffer() fail, index(6), frameCount(2334), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_PREVIEW]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:91) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_PREVIEW)->getBuffer() fail, index(7), frameCount(2334), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_CAPTURE]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:89) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_CAPTURE)->getBuffer() fail, index(0), frameCount(2334), ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1908]):frameCount(2334) : captureNodeCount == 0 || checkRet(-1) != NO_ERROR. so, setFrameState(FRAME_STATE_SKIPPED)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-WARN(m_getBufferThreadFunc[1326]):m_getBuffer fail, ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-ERR(m_putBuffer[1370]):New frame is INVALID, frameCount(2334)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_putBuffer[1562]):clean frame, frameCount(2334)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_completeFrame[2286]):NOT DONE frameCount(2334)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-WARN(m_putBufferThreadFunc[1310]):m_putbuffer fail, ret(-38)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_OUTPUT]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:85) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1678]):node(3AA_OUTPUT)->getBuffer() fail, index(7), frameCount(2335), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_PREVIEW]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:91) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_PREVIEW)->getBuffer() fail, index(6), frameCount(2335), ret(-1)
E/ExynosCameraNode( 2974): [CAM_ID(0)][3AA_CAPTURE]-ERR(m_dqBuf):exynos_v4l2_dqbuf(fd:89) returned with error (64)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1793]):node(3AA_CAPTURE)->getBuffer() fail, index(2), frameCount(2335), ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-ERR(m_getBuffer[1908]):frameCount(2335) : captureNodeCount == 0 || checkRet(-1) != NO_ERROR. so, setFrameState(FRAME_STATE_SKIPPED)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_3AA]-WARN(m_getBufferThreadFunc[1326]):m_getBuffer fail, ret(-1)
E/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-ERR(m_putBuffer[1370]):New frame is INVALID, frameCount(2335)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_putBuffer[1562]):clean frame, frameCount(2335)
D/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-DEBUG(m_completeFrame[2286]):NOT DONE frameCount(2335)
W/ExynosCameraMCPipe( 2974): [CAM_ID(0)][PIPE_ISP]-WARN(m_putBufferThreadFunc[1310]):m_putbuffer fail, ret(-38)
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME E
I/EDMNativeHelperService( 3564): isCameraEnabled
D/ShotSingle( 2974): CAMERA_MSG_PREVIEW_FRAME X
以及指向Video的链接
再一次,是一个简单的视频应用程序,带有用于截取屏幕截图的按钮,仅此而已。
希望有人知道如何解决这个问题。
提前感谢。
我解决了这个问题,请按照以下步骤操作: