[OnePlus 2 Original Android Development] Zigardeli:
Camera issue!

Hello everyone.

When using the rear camera for a short time (usually more than 5-10 mins) it gets frozen.

If i reboot it works again with the same behavior.

I don't know if it happens with the front camera as well.

Also i think i had the same issue with Android 9 (LineageOS 16) the last months before the LineageOS 17.1 got official. But i am not quite sure.

Also i know it can be a hardware problem.

Any suggestions?

Here is the logcat on working and frozen state of the camera:

"adb logcat" While camera is working:
09-12 11:50:01.033 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.049 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 28
09-12 11:50:01.057 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.094 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.096 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 29
09-12 11:50:01.127 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.141 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 28
09-12 11:50:01.168 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.183 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 29
09-12 11:50:01.193 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.392 4423 17054 I chatty : uid=1047(cameraserver) cam_stream_proc identical 6 lines
09-12 11:50:01.425 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.452 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 28
09-12 11:50:01.464 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.493 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.498 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 29
09-12 11:50:01.525 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.549 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 28
09-12 11:50:01.561 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.592 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.595 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 29
09-12 11:50:01.625 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.644 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 28
09-12 11:50:01.660 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.690 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 29
09-12 11:50:01.691 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.725 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.733 733 17058 E Sensors : readEvents:224 mPendingEvent.data[0] = 28
09-12 11:50:01.760 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.792 4423 17054 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065331711
09-12 11:50:01.816 733 17029 E mm-camera-CORE: af_process_update_fv_history: Stats index zero

09-12 12:05:11.396 733 18866 I mm-camera-sensor: sensor_fill_exposure_array:85 sensor_fill_exposure_array:gain=0x55,line=0x37f,fl_line=0x3e3,digital_gain=0x1
09-12 12:05:11.402 4423 18922 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065323518
09-12 12:05:11.420 4423 18922 E QCamera3HWI: translateFromHalMetadata: Invalid CAC camera parameter: 1065323518
09-12 12:05:11.422 733 18866 I mm-camera-sensor: sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=5.333516,reg_gain=0x55,sensor_real_gian=5.312500,digital_gain=1.003956

"adb logcat" While camera is frozen:

09-12 12:06:45.255 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.255 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.256 18536 18948 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.256 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.256 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.256 18536 18554 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.257 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.257 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.257 18536 19518 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.257 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.257 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.258 18536 18553 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.258 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.258 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.258 18536 19521 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.258 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.258 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.258 18536 19510 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.258 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.259 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.259 18536 19509 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.259 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)
09-12 12:06:45.259 4423 18879 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000003
09-12 12:06:45.260 18536 18948 E BufferQueueProducer: [SurfaceTexture-1-18536-2] dequeueBuffer: attempting to exceed the max dequeued buffer count (6)
09-12 12:06:45.260 4423 18879 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Function not implemented (-38)