AnsweredAssumed Answered

[imx6][android_4.3]processFrame renderBuffer failed during camera preview

Question asked by Jimmy Su on May 6, 2014
Branched to a new discussion

[Issue description]

Camera preview always stuck , PreviewStream stop running caused by queueBuffer fail.

 

[Scenario]

We are trying to implement a v4l2-loopback camera device.

For doing this, we also modified driver to request buffer by using MMAP instead of USERPRT.

Device works but it will crash after few seconds preview.

 

Please help to solve this issue.

Thanks a lot.

 

[adb log]

========================================================================================

I/FslCameraHAL( 2803): DeviceAdapter(J)::deviceThread

 

V/BufferQueue( 3546): [unnamed-3546-1] queueBuffer: slot=0 time=0x45c8467613 crop=[0,0,0,0] tr=0 scale=SCALE_TO_WINDOW

 

V/BufferQueue( 3546): [unnamed-3546-1] dequeueBuffer: w=320 h=240 fmt=0x103 usage=0x8000302

 

V/BufferQueue( 3546): [unnamed-3546-1] dequeueBuffer: returning slot=1 buf=0x40015798 flags=0

 

I/FslCameraHAL( 2803): OvDevice(J): fillCameraFrame mQueued=2

 

V/BufferQueue( 2328): [NavigationBar] dequeueBuffer: returning slot=2 buf=0x400fbcb0 flags=0

 

V/BufferQueue( 2328): [FramebufferSurface] dequeueBuffer: w=0 h=0 fmt=0x1 usage=0x300

 

V/BufferQueue( 2328): [FramebufferSurface] dequeueBuffer: returning slot=0 buf=0x40a3c0a8 flags=0

 

V/BufferQueue( 2328): [FramebufferSurface] queueBuffer: slot=0 time=0x45cc8d51ed crop=[0,0,0,0] tr=0 scale=FREEZE

 

V/BufferQueue( 2328): [SurfaceView] dequeueBuffer: returning slot=1 buf=0x4075a970 flags=0

 

V/BufferQueue( 2328): [NavigationBar] queueBuffer: slot=1 time=0x45c78cbb32 crop=[0,0,0,0] tr=0 scale=FREEZE

 

V/BufferQueue( 2328): [SurfaceView] queueBuffer: slot=0 time=0x45cc933322 crop=[0,0,0,0] tr=0 scale=FREEZE

 

V/BufferQueue( 2328): [StatusBar] queueBuffer: slot=0 time=0x45c6ea1914 crop=[0,0,0,0] tr=0 scale=FREEZE

 

I/FslCameraHAL( 2803): OvDevice(J): acquireCameraFrame mQueued=3

 

V/BufferQueue( 2328): [SurfaceView] dequeueBuffer: w=0 h=0 fmt=0x2 usage=0x300

 

I/FslCameraHAL( 2803): DeviceAdapter(J)::deviceThread

 

V/BufferQueue( 3546): [unnamed-3546-1] queueBuffer: slot=0 time=0x45cd0bd740 crop=[0,0,0,0] tr=0 scale=SCALE_TO_WINDOW

 

E/BufferQueue( 3546): [unnamed-3546-1] queueBuffer: slot 0 is not owned by the client (state=3)

 

E/Surface ( 2803): queueBuffer: error queuing buffer to SurfaceTexture, -22

 

E/Camera2-Device( 2803): enqueue_buffer: Error queueing buffer to native window: Invalid argument (-22)

 

E/FslCameraHAL( 2803): Surface::queueBuffer returned error -22

 

E/FslCameraHAL( 2803): processFrame renderBuffer failed

 

V/BufferQueue( 3546): [unnamed-3546-1] cancelBuffer: slot=0

 

E/BufferQueue( 3546): [unnamed-3546-1] cancelBuffer: slot 0 is not owned by the client (state=3)

 

E/FslCameraHAL( 2803): handleError handle error:-22

 

E/Camera2ClientBase( 2803): Error condition -22 reported by HAL, arguments 0, 0

 

I/FslCameraHAL( 2803): stream thread dead because of error...

Original Attachment has been moved to: camera_log_000111.log.zip

Outcomes