[ROM] [OFFICIAL] LineageOS 17.1 for Oneplus2 | Android 10

Johannes1098

Senior Member
Jul 19, 2017
154
171
63
Hi I recently rooted my oneplus2 and installed liniageOS from this page.
However, I now do not have root access any more, and cant seem to get it back.
I have the recovery image from liniageOS flashed, and have liniageOS installed, with gapps-micro.
Everything works fine, but I have no root access.
If I go into fastboot, and try "oem unlock" it says "OKEY finished" but I don't get prompted to accept on my phone, it just reboots into liniageOS recovery.
After which I can still boot into liniageOS, but not have ROOT access.
I had tried to install liniageOS with the latest TWRP recovery but that did not work, so I tried the liniageOS recovery.
I think this was a mistake, but how to fix?
I cant find info on this.
Did you also flash the Magisk.zip?
 

koniiiik

Senior Member
Jun 12, 2008
269
134
73
Göteborg
koniiiik.org
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:
Code:
"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)
I'm experiencing a similar issue, in my case, I got it triggered by using droidcam, and it takes a bit longer (more than half an hour); once it does, it breaks both the front and the back camera with the same symptoms, and for any application that tries to use them, until I reboot. Here's a snippet of logs when the cameras don't work:
Code:
11-23 10:46:48.640  4319 26018 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)                               
11-23 10:46:48.640  4319 26018 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000004                                                                                                                                                                                                                                                              
11-23 10:46:48.640  4319 26018 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646                                                                                                                                                                                                                                                                            
11-23 10:46:48.640  4319 26018 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)                                                                                                                                                                                                                               
11-23 10:46:48.640  4319 26018 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000004                                                                                                                                                                                                                                                              
11-23 10:46:48.640  4319 26018 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646                                                                            
11-23 10:46:48.640  4319 26018 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)                                                                                                                                                                                                                               
11-23 10:46:48.640  4319 26018 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000004                                                                                                                                                                                                                                                              
11-23 10:46:48.640  4319 26018 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646                                                                            
11-23 10:46:48.640  4319 26018 E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)                                                                                                                                                                                                                               
11-23 10:46:48.640  4319 26018 W Camera2Client: notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000004                                                                                                                                                                                                                                                              
11-23 10:46:48.641  4319 26018 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646
I'll try to see if I can capture the moment it breaks, in case there's any specific error that gets logged at that time, though I can't make any promises.
 

dedo1996

Senior Member
Dec 23, 2015
219
32
58
chrome.google.com
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:
Code:
"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)
+1.

It happens with both cameras (for me) and impacts also microphone -> audio notes sent via Whatsapp, for example, are sent muted.
 

koniiiik

Senior Member
Jun 12, 2008
269
134
73
Göteborg
koniiiik.org
I'm experiencing a similar issue, in my case, I got it triggered by using droidcam, and it takes a bit longer (more than half an hour); once it does, it breaks both the front and the back camera with the same symptoms, and for any application that tries to use them, until I reboot.

[…]

I'll try to see if I can capture the moment it breaks, in case there's any specific error that gets logged at that time, though I can't make any promises.
I'm back with more information about the camera issue. The TL;DR of it is that cameraserver is leaking memory and file descriptors.

I let the phone run with droidcam on while capturing logs, and here's what the transition from working camera to broken looks like (with `logcat -v long`):
Code:
[ 11-24 18:21:55.141   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:55.149  9095:13035 I/47       ]
Connection from 192.168.0.35

[ 11-24 18:21:55.209   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:55.210  4216:13028 E/QCameraHWI_Mem ]
registerBuffer: failed: could not open ion device

[ 11-24 18:21:55.210  4216:13028 E/QCamera3Channel ]
registerBuffer: Buffer 0xf00025e0 couldn't be registered -12

[ 11-24 18:21:55.210  4216:13028 E/QCamera3Channel ]
request: On-the-fly buffer registration failed -12

[ 11-24 18:21:55.210  4216:13028 E/QCamera3HWI ]
processCaptureRequest: request failed

[ 11-24 18:21:55.213  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:55.280  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:55.281   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:55.351  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:55.351   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:55.422  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:55.424   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:55.490   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:55.492  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:55.564  4216:13028 E/Parcel   ]
fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files

[ 11-24 18:21:55.564  4216:13028 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22

[ 11-24 18:21:55.565  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 7: Can't dequeue next output buffer: Invalid argument (-22)

[ 11-24 18:21:55.565  4216:13028 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000014

[ 11-24 18:21:55.566  4216:13028 E/Parcel   ]
fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files

[ 11-24 18:21:55.566  4216:13028 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22

[ 11-24 18:21:55.566  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 7: Can't dequeue next output buffer: Invalid argument (-22)

[ 11-24 18:21:55.566  4216:13028 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000014

[ 11-24 18:21:55.568  4216:13028 E/Parcel   ]
fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files

[ 11-24 18:21:55.568  4216:13028 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22

[ 11-24 18:21:55.568  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 7: Can't dequeue next output buffer: Invalid argument (-22)

[ 11-24 18:21:55.568  4216:13028 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000014

[ 11-24 18:21:55.569  4216:13028 E/Parcel   ]
fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files

[ 11-24 18:21:55.569  4216:13028 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22

[ 11-24 18:21:55.570  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 7: Can't dequeue next output buffer: Invalid argument (-22)

[ 11-24 18:21:55.570  4216:13028 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000014

[ 11-24 18:21:55.571  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:55.571  4216:13028 E/Parcel   ]
fcntl(F_DUPFD_CLOEXEC) failed in Parcel::read, i is 0, fds[i] is -1, fd_count is 2, error: Too many open files

[ 11-24 18:21:55.571  4216:13028 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -22
You can see that before the 18:21:55.564 mark, everything looks normal (the “Invalid CAC camera parameter” errors get spammed all the time when the camera works), but then at 18:21:55.564, we can see that the file descriptors get exhausted. This state persists for about a second, and then about a second later, the following appears in the log:

Code:
[ 11-24 18:21:56.408  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 7: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)

[ 11-24 18:21:56.408  4216:13028 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000014

[ 11-24 18:21:56.408  4216:13028 E/QCameraHWI_Mem ]
registerBuffer: failed: could not open ion device

[ 11-24 18:21:56.408  4216:13028 E/QCamera3Channel ]
registerBuffer: Buffer 0xf00021a8 couldn't be registered -12

[ 11-24 18:21:56.408  4216:13028 E/QCamera3Channel ]
request: On-the-fly buffer registration failed -12

[ 11-24 18:21:56.408  4216:13028 E/QCamera3HWI ]
processCaptureRequest: request failed

[ 11-24 18:21:56.408  4216:13028 E/QCameraHWI_Mem ]
registerBuffer: failed: could not open ion device

[ 11-24 18:21:56.408  4216:13028 E/QCamera3Channel ]
registerBuffer: Buffer 0xf00022c8 couldn't be registered -12

[ 11-24 18:21:56.408  4216:13028 E/QCamera3Channel ]
request: On-the-fly buffer registration failed -12

[ 11-24 18:21:56.408  4216:13028 E/QCamera3HWI ]
processCaptureRequest: request failed

[ 11-24 18:21:56.458   742:13011 E/mm-camera ]
v4l2 ioctl() failed. rc:-1, trans_code:-11, stream_id=2


[ 11-24 18:21:56.458   742:13011 E/mm-camera ]
retry=0


[ 11-24 18:21:56.459   742:13011 E/mm-camera ]
v4l2 ioctl() failed. retry=0


[ 11-24 18:21:56.459   742:13011 E/mm-camera ]
retry=1


[ 11-24 18:21:56.460   742:13011 E/mm-camera ]
v4l2 ioctl() failed. retry=1


[ 11-24 18:21:56.461   742:13011 E/mm-camera ]
retry=2


[ 11-24 18:21:56.462   742:13011 E/mm-camera ]
v4l2 ioctl() failed. retry=2


[ 11-24 18:21:56.462   742:13011 E/mm-camera ]
retry=3


[ 11-24 18:21:56.463   742:13011 E/mm-camera ]
v4l2 ioctl() failed. retry=3


[ 11-24 18:21:56.463   742:13011 E/mm-camera ]
retry=4


[ 11-24 18:21:56.464   742:13011 E/mm-camera ]
v4l2 ioctl() failed. retry=4


[ 11-24 18:21:56.464   742:13011 E/mm-camera ]
drop this frame

[ 11-24 18:21:56.464   742:13011 E/mm-camera ]
drop this frame

[ 11-24 18:21:56.464   742:13011 E/mm-camera ]
cpp_thread_handle_process_buf_event:325, dropped frame id=121056 identity=0x30002


[ 11-24 18:21:56.474   742:13016 I/mm-camera-sensor ]
sensor_calculate_exposure:62 sensor_calculate_exposure:real_gain=4.387069,reg_gain=0x46,sensor_real_gian=4.375000,digital_gain=1.002759


[ 11-24 18:21:56.480  4216:13028 E/GraphicBufferAllocator ]
Failed to allocate (1280 x 720) layerCount 1 format 35 usage 20003: 5

[ 11-24 18:21:56.480  4216:13028 E/BufferQueueProducer ]
[Camera2-CallbackConsumer] dequeueBuffer: createGraphicBuffer failed

[ 11-24 18:21:56.480  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 2: Can't dequeue next output buffer: Out of memory (-12)

[ 11-24 18:21:56.480  4216:13028 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000014

[ 11-24 18:21:56.481  4216:13028 E/GraphicBufferAllocator ]
Failed to allocate (1280 x 720) layerCount 1 format 35 usage 20003: 5

[ 11-24 18:21:56.481  4216:13028 E/BufferQueueProducer ]
[Camera2-CallbackConsumer] dequeueBuffer: createGraphicBuffer failed

[ 11-24 18:21:56.481  4216:14699 E/QCamera3HWI ]
translateFromHalMetadata: Invalid CAC camera parameter: 1065323518

[ 11-24 18:21:56.481  4216:13028 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 2: Can't dequeue next output buffer: Out of memory (-12)
…and these messages loop for the rest of eternity.

Stopping the application trying to access the camera, and trying again, gets rid of the OOM messages, and switches to the following pattern (which I believe to be the same as what I posted earlier):

Code:
[ 11-24 19:00:46.309  4216:21795 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)

[ 11-24 19:00:46.309  4216:21795 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000005

[ 11-24 19:00:46.309  4216:21795 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646

[ 11-24 19:00:46.309  4216:21795 E/Camera3-OutputStream ]
getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Unknown error 2147483646 (-2147483646)

[ 11-24 19:00:46.309  4216:21795 W/Camera2Client ]
notifyError: Received recoverable error 3 from HAL - ignoring, requestId 10000005

[ 11-24 19:00:46.309  4216:21795 E/Surface  ]
dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -2147483646
Now, the process that experiences the FD and memory exhaustion here is the one with PID 4216, which is the following bugger:
Code:
cameraserver  4216     1   93712  16144 binder_th+   f18eddbc S cameraserver
And indeed, killing the cameraserver, and letting it get restarted by the system makes the camera work again.

The ticket can be found at https://gitlab.com/LineageOS/issues/android/-/issues/2671.
 
Last edited:
  • Like
Reactions: knpk13 and dedo1996

Jakic007

Senior Member
Nov 20, 2010
172
35
58
Zagreb
Hi,

I have experienced some unexpected black screens/freezes while using camera. Also, sometimes camera will crash and apps will say that camera is unavailable until I reboot my phone.

Another thing that is problematic is bluetooth. It works generally, but for devices that require pairing with code it does not want to init pairing. It just says pairing and then fails after some time without ever showing code.
One example would be samsung bluetooth keyboard and other would be ledger nano x wallet.
Those devices are confirmed to pair normally with my iPad and another android device.

Other than those two issues, ROM is amazing!

Thanks :)
 

Aequita

Member
Nov 21, 2018
23
3
13
I have experienced some unexpected black screens/freezes while using camera. Also, sometimes camera will crash and apps will say that camera is unavailable until I reboot my phone.
I can second this problem.
The camera-app in use does not seem to play a role here - happens with various ones.

Edit:
And with ICQnew the phone crashes completely when swapping cameras (buzzing noise -> dead).
 

Johannes1098

Senior Member
Jul 19, 2017
154
171
63
Hi,

I have experienced some unexpected black screens/freezes while using camera. Also, sometimes camera will crash and apps will say that camera is unavailable until I reboot my phone.

Another thing that is problematic is bluetooth. It works generally, but for devices that require pairing with code it does not want to init pairing. It just says pairing and then fails after some time without ever showing code.
One example would be samsung bluetooth keyboard and other would be ledger nano x wallet.
Those devices are confirmed to pair normally with my iPad and another android device.

Other than those two issues, ROM is amazing!

Thanks :)
I can second this problem.
The camera-app in use does not seem to play a role here - happens with various ones.

Edit:
And with ICQnew the phone crashes completely when swapping cameras (buzzing noise -> dead).
I can confirm that there are problems with the camera and it's not sticked to one camera app
And I think it's worse than last year. I think there were some patches refering to our op2 cam? Maybe some change there is causing it but I don't know.
I'll look at changelog and merges if I have time this weekend..
 
  • Like
Reactions: Jakic007

k1LLbOy

New member
May 9, 2010
2
2
23
Hi,
I had the same bootloop issue with Build 20210123 .
Solved it by reinstalling Build 20210123 , wiping cache and the resintalling Gapps in TWRP. Without reinstalling Gapps it won't boot.
Hope it helps.
 
  • Like
Reactions: dedo1996 and piens

k1LLbOy

New member
May 9, 2010
2
2
23
After reinstalling gapps, it boot up?
Yes, I tried clearing cache and reinstalling lineage but that didn't work, reinstalling gapps was the last thing I was trying before doing a clean install and it worked.
I should say that Google maps and Gmail didn't work after booting, but reinstalling them fixed everything.