XZ3 Camera issues

I have started having an issue with the camera, it has been fine since originally installing the OS. No new apps have been installed.

When using Open Camera it says “failed to start preview” or sometimes an error about camera ID already being in use. I also have this issue with other camera apps I have installed since to test it.
I have cleared the cache from the app and have also removed and reinstalled the app, still the same result.

Is it likely to be a hardware fault ?

Not sure if this is any use came across a logcat command

1f5)
01-23 09:15:03.466 7514 7514 F DEBUG : #14 pc 0000eed9 /apex/com.android.vndk.v30/lib/libutils.so (android::thread::_threadLoop(void*)+168) (BuildId: 5c8720d9de26d8f6f6a3fefb819447a3)
01-23 09:15:03.466 7514 7514 F DEBUG : #15 pc 0000ea15 /apex/com.android.vndk.v30/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+256) (BuildId: 5c8720d9de26d8f6f6a3fefb819447a3)
01-23 09:15:03.466 7514 7514 F DEBUG : #16 pc 000abc5f /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: ba679736f908fca5bdeb4a2c21a2a9b2)
01-23 09:15:03.466 7514 7514 F DEBUG : #17 pc 00064285 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: ba679736f908fca5bdeb4a2c21a2a9b2)
01-23 09:15:03.482 908 7484 W campf : 186480224667 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.499 908 7484 W campf : 186497076542 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.515 908 7484 W campf : 186513634198 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.533 908 7484 W campf : 186530890500 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.549 908 7484 W campf : 186546980552 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.566 908 7484 W campf : 186563999354 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.582 908 7484 W campf : 186580486021 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.599 908 7484 W campf : 186596971854 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.615 908 7484 W campf : 186613802427 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.632 908 7484 W campf : 186630467792 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.649 908 7484 W campf : 186646953469 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.665 908 7484 W campf : 186663742115 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.682 908 7484 W campf : 186680554667 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.699 908 7484 W campf : 186697001073 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.716 908 7484 W campf : 186713902115 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.732 908 7484 W campf : 186730475136 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.749 908 7484 W campf : 186747262375 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.765 908 7484 W campf : 186763813104 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.782 908 7484 W campf : 186780441125 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.799 908 7484 W campf : 186797165552 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.816 908 7484 W campf : 186813991438 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.832 908 7484 W campf : 186830530760 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.849 908 7484 W campf : 186847588781 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.865 908 7484 W campf : 186863782844 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.882 908 7484 W campf : 186880869563 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.899 908 7484 W campf : 186897216646 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.900 1530 1777 E LightsService: Light requested not available on this device. 2
01-23 09:15:03.916 908 7484 W campf : 186914014354 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.933 908 7484 W campf : 186930903052 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.337 0 0 W healthd : battery l=36 v=3785 t=32.7 h=2 st=2 c=-3906 fc=2988000 cc=64 chg=u
01-23 09:15:03.939 0 0 D logd : logdr: UID=1047 GID=1006 PID=7514 n tail=50 logMask=8 pid=908 start=0ns timeout=0ns
01-23 09:15:03.949 908 7484 W campf : 186947571229 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.948 0 0 D logd : logdr: UID=1047 GID=1006 PID=7514 n tail=50 logMask=1 pid=908 start=0ns timeout=0ns
01-23 09:15:03.966 908 7484 W campf : 186964165292 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.983 908 7484 W campf : 186981455292 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:03.986 4861 4861 D Native : [Device] connect, connection state: DISCONNECTED
01-23 09:15:03.988 4861 7521 W BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
01-23 09:15:03.989 4861 4861 V Native : [BTCSC] SetConnectionState device: id: F1:A8:01:95:98:43 name: DC 47, mConnectionState: eDisconnected, aState: eConnecting, aError: none
01-23 09:15:03.992 1945 2764 I btif_av : isBATEnabled: 0
01-23 09:15:03.992 1945 2764 E bt_btif : bta_av_co_get_active_peer: peer index out of bounds: 5
01-23 09:15:03.992 1945 2764 E bt_btif : btif_av_is_split_a2dp_enabled: No active peer codec config found, by default splitmode
01-23 09:15:03.992 1945 2764 V bt_stack: [VERBOSE1:btm_inq.cc(1019)] BTM_InqDbRead: bd addr 90:f1:57:0d:79:7d
01-23 09:15:03.992 1945 2764 V bt_stack: [VERBOSE1:btm_inq.cc(1019)] BTM_InqDbRead: bd addr 90:f1:57:0d:79:7d
01-23 09:15:03.992 1945 2764 V bt_stack: [VERBOSE1:btm_acl.cc(3008)] connecting_bda: 90:f1:57:0d:79:7d
01-23 09:15:03.992 914 914 D vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK ON
01-23 09:15:03.994 914 914 D vendor.qti.bluetooth@1.0-wake_lock: Acquire wakelock is acquired
01-23 09:15:03.994 914 914 I vendor.qti.bluetooth@1.0-ibs_handler: DeviceWakeUp: Writing IBS_WAKE_IND
01-23 09:15:03.997 914 2761 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_ACK: 0xFC
01-23 09:15:03.998 914 2761 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_IND: 0xFD
01-23 09:15:03.998 914 2761 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Writing IBS_WAKE_ACK
01-23 09:15:03.999 908 7484 W campf : 186997562792 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.016 908 7484 W campf : 187014006229 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.032 1263 2560 D BufferPoolAccessor2.0: bufferpool2 0x74af08f3a8 : 0(0 size) total buffers - 0(0 size) used buffers - 11/13 (recycle/alloc) - 2/12 (fetch/transfer)
01-23 09:15:04.032 1263 2560 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 1
01-23 09:15:04.033 4555 4609 D BufferPoolAccessor2.0: bufferpool2 0x77fe2dfa68 : 0(0 size) total buffers - 0(0 size) used buffers - 2/7 (recycle/alloc) - 5/30 (fetch/transfer)
01-23 09:15:04.033 4555 4609 D BufferPoolAccessor2.0: evictor expired: 1, evicted: 1
01-23 09:15:04.033 908 7484 W campf : 187031229198 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.039 914 2761 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_SLEEP_IND: 0xFE
01-23 09:15:04.049 908 7484 W campf : 187047471281 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.066 908 7484 W campf : 187064099927 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.082 908 7484 W campf : 187080841542 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.099 908 7484 W campf : 187097401437 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.116 908 7484 W campf : 187114232635 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.133 908 7484 W campf : 187131106177 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.149 908 7484 W campf : 187147470500 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.156 0 0 D logd : logdr: UID=1047 GID=1006 PID=7514 n tail=0 logMask=8 pid=908 start=0ns timeout=0ns
01-23 09:15:04.166 908 7484 W campf : 187164143156 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.165 0 0 D logd : logdr: UID=1047 GID=1006 PID=7514 n tail=0 logMask=1 pid=908 start=0ns timeout=0ns
01-23 09:15:04.182 1530 2034 W NativeCrashListener: Couldn’t find ProcessRecord for pid 908
01-23 09:15:04.182 908 7484 W campf : 187180869302 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.187 782 782 E tombstoned: Tombstone written to: /data/tombstones/tombstone_10
01-23 09:15:04.198 1530 1588 I BootReceiver: Copying /data/tombstones/tombstone_10 to DropBox (SYSTEM_TOMBSTONE)
01-23 09:15:04.199 908 7484 W campf : 187197557010 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.199 1530 1588 I DropBoxManagerService: add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2
01-23 09:15:04.216 908 7484 W campf : 187214392219 cammw_pipeline_server.cpp (1993) 7484 W [CMW] [PPL] Still pending one request (0xdc556f00)
01-23 09:15:04.237 0 0 I init : Untracked pid 7514 exited with status 0
01-23 09:15:04.264 0 0 I init : Untracked pid 7518 exited with status 0
01-23 09:15:04.296 0 0 E binder_alloc: 908: binder_alloc_buf, no vma
01-23 09:15:04.297 0 0 I binder : 1530:5571 transaction failed 29189/-3, size 100-8 line 3283
01-23 09:15:04.359 1107 2241 E Camera3-Device: operator(): Transaction error: Status(EX_TRANSACTION_FAILED): 'DEAD_OBJECT: ’
01-23 09:15:04.359 1107 2241 E Camera3-Device: Camera 0: configureStreamsLocked: Unable to configure streams with HAL: Broken pipe (-32)
01-23 09:15:04.359 1107 2241 E Camera2Client: notifyError: Error condition 1 reported by HAL, requestId -1
01-23 09:15:04.361 1107 1254 I CameraProviderManager: Camera provider ‘internal/0’ has died; removing it
01-23 09:15:04.361 1107 1254 I CameraService: onDeviceStatusChanged: Status changed for cameraId=0, newStatus=0
01-23 09:15:04.358 0 0 I binder : release 908:4884 transaction 330561 in, still active
01-23 09:15:04.358 0 0 I binder : send failed reply for transaction 330561 to 1107:2241
01-23 09:15:04.361 1107 1254 E CameraService: supportsCameraApi: Unknown camera ID 0
01-23 09:15:04.361 1107 1254 W CameraService: updateStatus: Failed to determine if device supports HAL3 0, supportsCameraApi call failed
01-23 09:15:04.361 945 945 I sensors-hal: batch:191, android.sensor.accelerometer/11, period=200000000, max_latency=0
01-23 09:15:04.362 945 945 I sensors-hal: batch:200, android.sensor.accelerometer/11, period=200000000, max_latency=0 request completed
01-23 09:15:04.358 0 0 I binder : undelivered transaction 334632, process died.
01-23 09:15:04.358 0 0 I binder : undelivered transaction 334633, process died.
01-23 09:15:04.358 0 0 I binder : undelivered transaction 334634, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334635, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334636, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334637, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334638, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334639, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334640, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334641, process died.
01-23 09:15:04.359 0 0 I binder : undelivered transaction 334642, process died.
01-23 09:15:04.360 0 0 I binder : undelivered transaction 334643, process died.
01-23 09:15:04.360 0 0 I binder : undelivered transaction 334644, process died.
01-23 09:15:04.360 0 0 I binder : undelivered transaction 334645, process died.
01-23 09:15:04.360 0 0 I binder : undelivered transaction 334646, process died.
01-23 09:15:04.360 0 0 I binder : undelivered transaction 334647, process died.
01-23 09:15:04.361 0 0 E CAM-REQ-MGR_UTIL cam_destroy_hdl: 299 CAM_ERR: CAM_CRM: cam_destroy_hdl: 299 Invalid idx 255
01-23 09:15:04.364 1107 1254 W CameraService: removeClientLocked: Could not evict client, no client for camera ID offline-0
01-23 09:15:04.364 1107 1254 I CameraService: disconnectClient: Client for camera ID 0 evicted due to device status change from HAL
01-23 09:15:04.364 945 945 I sensors-hal: batch:191, android.sensor.gyroscope/41, period=200000000, max_latency=0
01-23 09:15:04.364 1107 1254 E Camera2Client: notifyError: Error condition 0 reported by HAL, requestId -1
01-23 09:15:04.364 945 945 I sensors-hal: batch:200, android.sensor.gyroscope/41, period=200000000, max_latency=0 request completed
01-23 09:15:04.367 0 0 I chatty : uid=0(root) logd identical 1 line
01-23 09:15:04.371 0 0 E CAM-REQ-MGR_UTIL cam_destroy_hdl: 299 CAM_ERR: CAM_CRM: cam_destroy_hdl: 299 Invalid idx 255
01-23 09:15:04.372 0 0 E CAM_ERR : CAM-CORE: cam_context_handle_crm_unlink: 138 No crm unlink in dev -1, name isp, state 1
01-23 09:15:04.372 0 0 E CAM_ERR : CAM_CRM: __cam_req_mgr_destroy_link_info: 1189 Unlink failed dev_hdl 5570817
01-23 09:15:04.372 0 0 E CAM_ERR : CAM-CORE: __cam_req_mgr_unlink: 2225 Unlink for all devices was not successful
01-23 09:15:04.372 0 0 E CAM-REQ-MGR_UTIL cam_req_mgr_util_free_hdls: 106 CAM_ERR: CAM_CRM: cam_req_mgr_util_free_hdls: 106 Dev handle = 550101 session_handle = 110200
01-23 09:15:04.372 0 0 E CAM-REQ-MGR_UTIL cam_req_mgr_util_free_hdls: 106 CAM_ERR: CAM_CRM: cam_req_mgr_util_free_hdls: 106 Dev handle = d30102 session_handle = 110200
01-23 09:15:04.372 0 0 E CAM-REQ-MGR_UTIL cam_req_mgr_util_free_hdls: 106 CAM_ERR: CAM_CRM: cam_req_mgr_util_free_hdls: 106 Dev handle = c20103 session_handle = 110200
01-23 09:15:04.379 0 0 I init : Service ‘vendor.somc.hardware.camera-provider-1-0’ (pid 908) received signal 6
01-23 09:15:04.381 0 0 I init : Sending signal 9 to service ‘vendor.somc.hardware.camera-provider-1-0’ (pid 908) process group…
01-23 09:15:04.382 0 0 I libprocessgroup: Successfully killed process cgroup uid 1047 pid 908 in 0ms
01-23 09:15:04.386 0 0 I init : starting service ‘vendor.somc.hardware.camera-provider-1-0’…
01-23 09:15:04.386 0 0 I init : Created socket ‘/dev/socket/cammw_excal:ipc:9000’, mode 660, user 1047, group 1006
01-23 09:15:04.386 0 0 I init : Created socket ‘/dev/socket/cammw_excal:ipc:9001’, mode 660, user 1047, group 1006
01-23 09:15:04.544 7525 7525 D libcameralight: msm_calc_parameters.c v_batt thres_num set to: 5
01-23 09:15:04.544 7525 7525 D libcameralight: msm_calc_parameters.c v_batt[0] max 4200 min 4100 current 1000000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_calc_parameters.c v_batt[1] max 4100 min 3700 current 900000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_calc_parameters.c v_batt[2] max 3700 min 3500 current 800000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_calc_parameters.c v_batt[3] max 3500 min 3300 current 700000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_calc_parameters.c v_batt[4] max 3300 min 3000 current 600000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_flash_v2.cpp chip_set_configuration: v_batts[0] max 4200 min 4100 current 1000000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_flash_v2.cpp chip_set_configuration: v_batts[1] max 4100 min 3700 current 900000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_flash_v2.cpp chip_set_configuration: v_batts[2] max 3700 min 3500 current 800000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_flash_v2.cpp chip_set_configuration: v_batts[3] max 3500 min 3300 current 700000
01-23 09:15:04.544 7525 7525 D libcameralight: msm_flash_v2.cpp chip_set_configuration: v_batts[4] max 3300 min 3000 current 600000
01-23 09:15:04.551 7525 7525 I vendor.somc.hardware.camera.provider@1.0-service: fastrpc_apps_user_init done
01-23 09:15:04.591 7525 7525 I campf : 187589364666 pal.cpp (3243) 7525 I [INF] PAL_Create
01-23 09:15:04.633 0 0 I ueventd : firmware: loading ‘CAMERA_ICP.elf’ for ‘/devices/platform/soc/ac00000.qcom,a5/firmware/CAMERA_ICP.elf’
01-23 09:15:04.642 0 0 I ueventd : loading /devices/platform/soc/ac00000.qcom,a5/firmware/CAMERA_ICP.elf took 9ms
01-23 09:15:04.645 1107 2241 D CameraTraces: Process trace saved. Use dumpsys media.camera to view.
01-23 09:15:04.645 1107 2241 E Camera3-Device: Camera 0: setUpRequestLocked: Can’t set up streams: Broken pipe (-32)
01-23 09:15:04.645 1107 2241 E Camera3-Device: Camera 0: convertMetadataListToRequestListLocked: Can’t create capture request
01-23 09:15:04.645 1107 2241 E Camera2-StreamingProcessor: startStream: Camera 0: Unable to set preview request to start preview: Invalid argument (-22)
01-23 09:15:04.645 1107 2241 E Camera2Client: startPreviewL: Camera 0: Unable to start streaming preview: Invalid argument (-22)
01-23 09:15:04.645 1107 1254 E Camera3-Device: Camera 0: clearStreamingRequest: Device has encountered a serious error
01-23 09:15:04.645 1107 1254 E Camera2-StreamingProcessor: stopStream: Camera 0: Can’t clear stream request: Function not implemented (-38)
01-23 09:15:04.645 1107 1254 E Camera2Client: stopPreviewL: Camera 0: Can’t stop streaming: Function not implemented (-38)
01-23 09:15:04.645 1107 1254 E Camera3-Device: flush: Transaction error: Status(EX_TRANSACTION_FAILED): 'DEAD_OBJECT: ’
01-23 09:15:04.645 1107 1254 E Camera2Client: stopPreviewL: Camera 0: Unable to flush pending requests: Broken pipe (-32)
01-23 09:15:04.645 4555 4555 W System.err: java.lang.RuntimeException: startPreview failed
01-23 09:15:04.650 4555 4555 W System.err: at android.hardware.Camera.startPreview(Native Method)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.cameracontroller.CameraController1.startPreview(CameraController1.java:1554)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.startCameraPreview(Preview.java:6496)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.setupCamera(Preview.java:2001)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.cameraOpened(Preview.java:1758)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.access$1400(Preview.java:108)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview$1.onPostExecute(Preview.java:1600)
01-23 09:15:04.650 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview$1.onPostExecute(Preview.java:1583)
01-23 09:15:04.650 4555 4555 W System.err: at android.os.AsyncTask.finish(AsyncTask.java:771)
01-23 09:15:04.650 4555 4555 W System.err: at android.os.AsyncTask.access$900(AsyncTask.java:199)
01-23 09:15:04.650 4555 4555 W System.err: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
01-23 09:15:04.650 4555 4555 W System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
01-23 09:15:04.650 4555 4555 W System.err: at android.os.Looper.loop(Looper.java:223)
01-23 09:15:04.650 4555 4555 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7664)
01-23 09:15:04.650 4555 4555 W System.err: at java.lang.reflect.Method.invoke(Native Method)
01-23 09:15:04.650 4555 4555 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-23 09:15:04.650 4555 4555 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-23 09:15:04.650 4555 4555 W System.err: net.sourceforge.opencamera.cameracontroller.CameraControllerException
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.cameracontroller.CameraController1.startPreview(CameraController1.java:1560)
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.startCameraPreview(Preview.java:6496)
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.setupCamera(Preview.java:2001)
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.cameraOpened(Preview.java:1758)
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.access$1400(Preview.java:108)
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview$1.onPostExecute(Preview.java:1600)
01-23 09:15:04.651 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview$1.onPostExecute(Preview.java:1583)
01-23 09:15:04.651 4555 4555 W System.err: at android.os.AsyncTask.finish(AsyncTask.java:771)
01-23 09:15:04.651 4555 4555 W System.err: at android.os.AsyncTask.access$900(AsyncTask.java:199)
01-23 09:15:04.651 4555 4555 W System.err: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
01-23 09:15:04.651 4555 4555 W System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
01-23 09:15:04.651 4555 4555 W System.err: at android.os.Looper.loop(Looper.java:223)
01-23 09:15:04.651 4555 4555 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7664)
01-23 09:15:04.651 4555 4555 W System.err: at java.lang.reflect.Method.invoke(Native Method)
01-23 09:15:04.651 4555 4555 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-23 09:15:04.651 4555 4555 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-23 09:15:04.654 1107 1254 W Camera3-Device: deleteStream: Camera 0: deleteStream not allowed in ERROR state
01-23 09:15:04.654 1107 1254 E Camera2-StreamingProcessor: deletePreviewStream: Unable to delete old preview stream: Device or resource busy (-16)
01-23 09:15:04.654 1107 1254 I Camera3-Device: disconnectImpl: E
01-23 09:15:04.654 1107 1254 E Camera3-Device: Camera 0: disconnectImpl: Shutting down in an error state
01-23 09:15:04.654 1107 1254 I Camera3-Device: disconnectImpl: X
01-23 09:15:04.655 1107 1254 E CameraService: supportsCameraApi: Unknown camera ID 0
01-23 09:15:04.655 1107 1254 W CameraService: updateStatus: Failed to determine if device supports HAL3 0, supportsCameraApi call failed
01-23 09:15:04.656 7525 7525 E CamX : [ERROR][CSL ] camxcslhwinternal.cpp:2582 CSLHwInternalDefaultIoctl() Ioctl failed for File Descriptor 6 with error reason Invalid argument
01-23 09:15:04.656 1107 1254 I CameraService: disconnect: Disconnected client for camera 0 for PID 4555
01-23 09:15:04.656 1107 1254 I CameraService: onDeviceStatusChanged: Status changed for cameraId=1, newStatus=0
01-23 09:15:04.656 1107 1254 E CameraService: supportsCameraApi: Unknown camera ID 1
01-23 09:15:04.656 1107 1254 W CameraService: updateStatus: Failed to determine if device supports HAL3 1, supportsCameraApi call failed
01-23 09:15:04.656 1107 1254 W CameraService: removeClientLocked: Could not evict client, no client for camera ID 1
01-23 09:15:04.656 1107 1254 W CameraService: removeClientLocked: Could not evict client, no client for camera ID offline-1
01-23 09:15:04.653 0 0 I CAM_INFO: CAM-ICP: cam_icp_mgr_hw_open: 2798 FW download done successfully
01-23 09:15:04.662 4555 4555 D CompatibilityChangeReporter: Compat change id reported: 147798919; UID 10257; state: ENABLED
01-23 09:15:04.671 1107 2241 W ServiceManager: Permission failure: android.permission.SYSTEM_CAMERA from uid=10257 pid=4555
01-23 09:15:04.672 1107 2241 E Camera2ClientBase: getParameters: attempt to use a locked camera from a different process (old pid 0, new pid 4555)
01-23 09:15:04.672 4555 4555 W System.err: java.lang.RuntimeException: getParameters failed (empty parameters)
01-23 09:15:04.672 4555 4555 W System.err: at android.hardware.Camera.native_getParameters(Native Method)
01-23 09:15:04.672 4555 4555 W System.err: at android.hardware.Camera.getParameters(Camera.java:2222)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.cameracontroller.CameraController1.getParameters(CameraController1.java:147)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.cameracontroller.CameraController1.getSceneMode(CameraController1.java:461)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.MainActivity.showPhotoVideoToast(MainActivity.java:5555)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.MainActivity.cameraSetup(MainActivity.java:5063)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.MyApplicationInterface.cameraSetup(MyApplicationInterface.java:1791)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.setupCamera(Preview.java:2030)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.cameraOpened(Preview.java:1758)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview.access$1400(Preview.java:108)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview$1.onPostExecute(Preview.java:1600)
01-23 09:15:04.672 4555 4555 W System.err: at net.sourceforge.opencamera.preview.Preview$1.onPostExecute(Preview.java:1583)
01-23 09:15:04.672 4555 4555 W System.err: at android.os.AsyncTask.finish(AsyncTask.java:771)
01-23 09:15:04.672 4555 4555 W System.err: at android.os.AsyncTask.access$900(AsyncTask.java:199)
01-23 09:15:04.672 4555 4555 W System.err: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
01-23 09:15:04.673 4555 4555 W System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
01-23 09:15:04.673 4555 4555 W System.err: at android.os.Looper.loop(Looper.java:223)
01-23 09:15:04.673 4555 4555 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7664)
01-23 09:15:04.673 4555 4555 W System.err: at java.lang.reflect.Method.invoke(Native Method)
01-23 09:15:04.673 4555 4555 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-23 09:15:04.673 4555 4555 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-23 09:15:04.675 7525 7525 E vendor.somc.hardware.camera.provider@1.0-service: ChiAWBAlgorithmEntry
01-23 09:15:04.676 4555 4555 I Choreographer: Skipped 393 frames! The application may be doing too much work on its main thread.
01-23 09:15:04.682 4555 4555 E Camera : Error 1
01-23 09:15:04.682 4555 4555 E CameraController1: camera onError: 1
01-23 09:15:04.682 4555 4555 E CameraController1: CAMERA_ERROR_UNKNOWN
01-23 09:15:04.682 4555 4555 E Camera : Error 2
01-23 09:15:04.682 4555 4555 E CameraController1: camera onError: 2

1 Like

This first warning should not be there, some information are missing before that.
Maybe a factory reset could help: at least, if it did not work, a hardware error could be the main hypothesis.

wiped and re flashed and still the same issue.

logcat

mmm

It also doesn’t work with /e/ or Lineage os for Microg either.

I’ll have to re-flash to latest release from Sony and see if the camera works on factory rom.

Have another XZ3 in the house which is still using /e/ (will be moving to iode) camera works fine on that phone.