[AT&T LG G3] shimbob:
Cant use front camera

When I try switching to front camera, the camera app hangs, then "Unfortunately, Camera has stopped."

Restarting the app gives "Can't connect to the camera."

After rebooting, camera app repeats the first error.

Have to clear camera app data for the camera to reset and work again (back camera only, rince, repeat)

Media Server is kicking the bucket.

Logcat

m-camera( 325): port_isp_mct_ctrl_cmd: X, identity = 0x20003, STREAMON, ret = 0

E/mm-camera( 325): ispif_streamon: session_id = 2, active_streams = 2

E/mm-camera-sensor( 325): sensor_set_exposure:1252 reg_gain=65546, line_count=1080, dig_gain=1.001817

E/mm-camera-sensor( 325): module_sensor_stream_on: Sending start bus message

D/QCamera2HWI( 6346): int qcamera::QCamera2HardwareInterface::startPreview(): X

E/QCamera2HWI( 6346): int qcamera::QCamera2HardwareInterface::startPreview(): dual_camera1=-1

E/QCamera2HWI( 6346): int qcamera::QCamera2HardwareInterface::startPreview(): VIDEO_DENOISER_P_INIT=-1

E/mm-camera-intf( 6346): VDN_video_denoiser_initialize_preview = Morpho Video Denoiser Ver.1.0.0 forLGE-LITE 2013/12/04 fixGreen Line non log

D/QCamera2HWI( 6346): int qcamera::QCamera2HardwareInterface::startPreview(): X

E/QCamera2HWI( 6346): waitAPIResult: api_evt = 9 test dennis

V/QCamera2HWI( 6346): void qcamera::QCamera2HardwareInterface::waitAPIResult(qcamera::qcamera_sm_evt_enum_t, qcamera::qcamera_api_result_t*): return (0) from API result wait for evt (9)

D/QCamera2HWI( 6346): [KPI Perf] static int qcamera::QCamera2HardwareInterface::start_preview(camera_device*): X

V/CameraWrapper( 6346): camera_send_command->B8216D10->B822C098

V/QCamera2HWI( 6346): void qcamera::QCamera2HardwareInterface::waitAPIResult(qcamera::qcamera_sm_evt_enum_t, qcamera::qcamera_api_result_t*): wait for API result of evt (23)

E/QCameraStateMachine( 6346): stateMachine : m_state [2], evt [23]

E/QCameraParameters( 6346): [KPI Perf] int32_t qcamera::QCameraParameters::setFaceDetection(bool): PROFILE_FACE_DETECTION_VALUE = 1 num_fd = 5

D/QCameraParameters( 6346): int32_t qcamera::QCameraParameters::initBatchUpdate(void*):Initializing batch parameter set

D/QCameraParameters( 6346): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 1, paramType: 32, paramLength: 8, aligned_size_req: 24

D/QCameraParameters( 6346): int32_t qcamera::QCameraParameters::setFaceDetection(bool):waiting for commitSetBatch to complete

D/QCameraParameters( 6346): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete

E/QCameraParameters( 6346): int32_t qcamera::QCameraParameters::commitParamChanges(), m_bZslMode = 1 , m_bZslMode_new = 1

D/QCameraParameters( 6346): int32_t qcamera::QCameraParameters::setFaceDetection(bool): FaceProcMask -> 1

E/QCamera2HWI( 6346): waitAPIResult: api_evt = 23 test dennis

V/QCamera2HWI( 6346): void qcamera::QCamera2HardwareInterface::waitAPIResult(qcamera::qcamera_sm_evt_enum_t, qcamera::qcamera_api_result_t*): return (0) from API result wait for evt (23)

E/CAM_PhotoModule( 6482): Width = 1920Height = 1080

D/CAM_UI ( 6482): setAspectRatio() ratio[1.7777778] mAspectRatio[1.3333334]

E/mm-camera( 325): mct_bus_sof_thread_run: SOF freeze; Sending error message

E/QCameraStateMachine( 6346): stateMachine : m_state [2], evt [28]

E/Camera ( 6482): Error 100

E/CameraErrorCallback( 6482): Got camera error callback. error=100

E/AndroidRuntime( 6482): FATAL EXCEPTION: Camera Handler Thread

E/AndroidRuntime( 6482): Process: com.android.camera2, PID: 6482

E/AndroidRuntime( 6482): java.lang.RuntimeException: Media server died.

E/AndroidRuntime( 6482):	at com.android.camera.CameraErrorCallback.onError(CameraErrorCallback.java:33)

E/AndroidRuntime( 6482):	at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1017)

E/AndroidRuntime( 6482):	at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 6482):	at android.os.Looper.loop(Looper.java:136)

E/AndroidRuntime( 6482):	at android.os.HandlerThread.run(HandlerThread.java:61)

W/ActivityManager( 881): Force finishing activity com.android.camera2/com.android.camera.CameraLauncher

D/qcom_sensors_hal( 881): hal_schedule_acquire_resources: Setting acquire resources timer for 10000 usec

D/qcom_sensors_hal( 881): hal_schedule_acquire_resources: Resetting acquire resources timer for 10000 usec. old_value = 9591 usec

D/CAM_PhotoModule( 6482): remove idle handleer in onPause

V/CAM_PhotoModule( 6482): On pause.

V/CAM_PhotoModule( 6482): stopPreview

D/qcom_sensors_hal( 881): hal_acquire_resources

D/qcom_sensors_hal( 881): hal_acquire_resources: Deactivating sensor handle=0

D/qcom_sensors_hal( 881): hal_smgr_report_delete: handle=0

D/qcom_sensors_hal( 881): hal_wait_for_response: timeout=1000

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 1, Sn 0, msg Id 33, txn Id 0

D/qcom_sensors_hal( 881): hal_process_smgr_resp: 33

D/qcom_sensors_hal( 881): hal_process_buffering_resp: Id: 0 Resp: 0 txn id 0

D/qcom_sensors_hal( 881): hal_smgr_report_delete: Rcvd success response from request

D/qcom_sensors_hal( 881): hal_acquire_resources: Deactivating sensor handle=10

D/qcom_sensors_hal( 881): hal_smgr_report_delete: handle=10

D/qcom_sensors_hal( 881): hal_wait_for_response: timeout=1000

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 1, Sn 0, msg Id 33, txn Id 10

D/qcom_sensors_hal( 881): hal_process_smgr_resp: 33

D/qcom_sensors_hal( 881): hal_process_buffering_resp: Id: 10 Resp: 0 txn id 10

D/qcom_sensors_hal( 881): hal_smgr_report_delete: Rcvd success response from request

I/art ( 881): Heap trim of managed (duration=35.625990ms, advised=3MB) and native (duration=1.701198ms, advised=428KB) heaps. Managed heap utilization of 61%.

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 2, Sn 0, msg Id 34, txn Id 0

D/qcom_sensors_hal( 881): hal_process_buffering_ind: Samples_len=1 Items=1 max_reports_per_index=1

V/qcom_sensors_hal( 881): hal_process_report_ind: St: 0 ReportId: 1 Rate: 0, Len: 1

V/qcom_sensors_hal( 881): hal_process_report_ind: Id: PROX_LIGHT_DATA: Ty: 1 Q: 0

V/qcom_sensors_hal( 881): hal_process_report_ind: 20000 2.000000

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 2, Sn 0, msg Id 34, txn Id 0

D/qcom_sensors_hal( 881): hal_process_buffering_ind: Samples_len=1 Items=1 max_reports_per_index=1

V/qcom_sensors_hal( 881): hal_process_report_ind: St: 0 ReportId: 1 Rate: 0, Len: 1

V/qcom_sensors_hal( 881): hal_process_report_ind: Id: PROX_LIGHT_DATA: Ty: 1 Q: 0

V/qcom_sensors_hal( 881): hal_process_report_ind: 30000 3.000000

D/qcom_sensors_hal( 881): _hal_sensors_data_poll: poll data:1;data[0].sensor:1 .type:5 .x:3.000000 .y:0.000000 .z:0.000000

D/qcom_sensors_hal( 881): _hal_sensors_data_poll: cnt: 36

D/qcom_sensors_hal( 881): hal_wait_for_response: timeout=0

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 2, Sn 0, msg Id 34, txn Id 0

D/qcom_sensors_hal( 881): hal_process_buffering_ind: Samples_len=1 Items=1 max_reports_per_index=1

V/qcom_sensors_hal( 881): hal_process_report_ind: St: 0 ReportId: 1 Rate: 0, Len: 1

V/qcom_sensors_hal( 881): hal_process_report_ind: Id: PROX_LIGHT_DATA: Ty: 1 Q: 0

V/qcom_sensors_hal( 881): hal_process_report_ind: 30000 3.000000

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 2, Sn 0, msg Id 34, txn Id 0

D/qcom_sensors_hal( 881): hal_process_buffering_ind: Samples_len=1 Items=1 max_reports_per_index=1

V/qcom_sensors_hal( 881): hal_process_report_ind: St: 0 ReportId: 1 Rate: 0, Len: 1

V/qcom_sensors_hal( 881): hal_process_report_ind: Id: PROX_LIGHT_DATA: Ty: 1 Q: 0

V/qcom_sensors_hal( 881): hal_process_report_ind: 30000 3.000000

V/qcom_sensors_hal( 881): hal_sensor1_data_cb: msg_type 2, Sn 0, msg Id 34, txn Id 0

D/qcom_sensors_hal( 881): hal_process_buffering_ind: Samples_len=1 Items=1 max_reports_per_index=1

V/qcom_sensors_hal( 881): hal_process_report_ind: St: 0 ReportId: 1 Rate: 0, Len: 1

V/qcom_sensors_hal( 881): hal_process_report_ind: Id: PROX_LIGHT_DATA: Ty: 1 Q: 0

V/qcom_sensors_hal( 881): hal_process_report_ind: 30000 3.000000

W/ActivityManager( 881): Activity pause timeout for ActivityRecord{65a30ac0 u0 com.android.camera2/com.android.camera.CameraLauncher t9 f}

I/Timeline( 1456): Timeline: Activity_idle id: android.os.BinderProxy@64cd8ad0 time:466089

I/Timeline( 881): Timeline: Activity_windows_visible id: ActivityRecord{65355968 u0 com.cyanogenmod.trebuchet/org.cyanogenmod.trebuchet.CustomHomeLauncher t1} time:466488

dmesg:

<6>[ 769.793267 / 11-21 19:19:17.461] [Touch] 1 finger pressed : <0> x[ 579] y[2504] z[ 47]

<6>[ 769.844134 / 11-21 19:19:17.511] [Touch] touch_release[ ] : <0> x[ 573] y[2504]

<6>[ 770.063605 / 11-21 19:19:17.731] pet_watchdog

<6>[ 770.068241 / 11-21 19:19:17.731] [XO_THERM] Result:26 Raw:33672

<4>[ 770.665444 / 11-21 19:19:18.331] IRQ40 no longer affine to CPU3

<6>[ 771.175397 / 11-21 19:19:18.841] [Touch] 1 finger pressed : <0> x[ 551] y[1732] z[ 49]

<6>[ 771.199356 / 11-21 19:19:18.861] [Touch] touch_release[ ] : <0> x[ 551] y[1732]

<3>[ 771.727221 / 11-21 19:19:19.391] msm_sensor_power_up:1070 sensor_name imx208

<3>[ 771.735076 / 11-21 19:19:19.401] MSM-CPP cpp_init_hardware:766 stream_cnt:0

<6>[ 771.759951 / 11-21 19:19:19.421] MSM-CPP cpp_load_fw:896 MC Bootloader Version: 0x312e3176

<6>[ 771.765371 / 11-21 19:19:19.431] MSM-CPP cpp_load_fw:908 CPP FW Version: 0x1002001a

<3>[ 771.864086 / 11-21 19:19:19.531] msm_cci_irq:881 MASTER_1 error 40000000

<3>[ 771.864234 / 11-21 19:19:19.531] msm_cci_i2c_read:433 read_words = 0, exp words = 1

<3>[ 771.864301 / 11-21 19:19:19.531] msm_cci_i2c_read_bytes:511 failed rc -22

<3>[ 771.864365 / 11-21 19:19:19.531] msm_camera_cci_i2c_read: line 53 rc = -22

<3>[ 771.883495 / 11-21 19:19:19.551] msm_cci_irq:881 MASTER_1 error 40000000

<3>[ 771.883644 / 11-21 19:19:19.551] msm_cci_i2c_read:433 read_words = 0, exp words = 1

<3>[ 771.883658 / 11-21 19:19:19.551] msm_cci_i2c_read_bytes:511 failed rc -22

<3>[ 771.883670 / 11-21 19:19:19.551] msm_camera_cci_i2c_read: line 53 rc = -22

<3>[ 771.903496 / 11-21 19:19:19.571] msm_cci_irq:881 MASTER_1 error 40000000

<3>[ 771.903565 / 11-21 19:19:19.571] msm_cci_i2c_read:433 read_words = 0, exp words = 1

<3>[ 771.903579 / 11-21 19:19:19.571] msm_cci_i2c_read_bytes:511 failed rc -22

<3>[ 771.903590 / 11-21 19:19:19.571] msm_camera_cci_i2c_read: line 53 rc = -22

<3>[ 771.923187 / 11-21 19:19:19.591] msm_sensor_match_id: imx208: read id failed

<3>[ 771.923215 / 11-21 19:19:19.591] msm_sensor_match_id: imx208: forcelly mapping the chip ID

<3>[ 771.923231 / 11-21 19:19:19.591] msm_sensor_power_up sensor_name imx208 exit

<3>[ 771.923251 / 11-21 19:19:19.591] msm_sensor_config:1792 sensor state 1

<3>[ 771.923424 / 11-21 19:19:19.591] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.041208 / 11-21 19:19:19.701] MSM-CPP msm_cpp_subdev_ioctl:1728 clk:266670000

<3>[ 772.111892 / 11-21 19:19:19.771] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.112344 / 11-21 19:19:19.771] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.112838 / 11-21 19:19:19.771] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.125497 / 11-21 19:19:19.791] MSM-CPP msm_cpp_subdev_ioctl:1635 stream_cnt:1

<3>[ 772.126871 / 11-21 19:19:19.791] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.131197 / 11-21 19:19:19.791] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.142225 / 11-21 19:19:19.801] msm_isp_get_buf_ptr: Invalid buf index

<3>[ 772.142241 / 11-21 19:19:19.801] Invalid buffer prepare

<3>[ 772.142251 / 11-21 19:19:19.801] msm_isp_buf_enqueue: Buf prepare failed

<3>[ 772.142265 / 11-21 19:19:19.801] msm_isp_get_buf_ptr: Invalid buf index

<3>[ 772.142276 / 11-21 19:19:19.801] Invalid buffer prepare

<3>[ 772.142285 / 11-21 19:19:19.801] msm_isp_buf_enqueue: Buf prepare failed

<3>[ 772.142299 / 11-21 19:19:19.801] msm_isp_get_buf_ptr: Invalid buf index

<3>[ 772.142309 / 11-21 19:19:19.801] Invalid buffer prepare

<3>[ 772.142318 / 11-21 19:19:19.801] msm_isp_buf_enqueue: Buf prepare failed

<3>[ 772.144579 / 11-21 19:19:19.811] msm_ispif_init:893 camera_wake_lock unlock

<3>[ 772.145588 / 11-21 19:19:19.811] msm_cci_irq:881 MASTER_1 error 20000000

<3>[ 772.145937 / 11-21 19:19:19.811] msm_cci_irq:881 MASTER_1 error 20000000

<4>[ 772.587813 / 11-21 19:19:20.251] IRQ40 no longer affine to CPU2

root@d850:/ # dmesg -c

<3>[ 773.203410 / 11-21 19:19:20.871] wlan: [1211:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan

<6>[ 773.288212 / 11-21 19:19:20.951] pm_power_get_event_property_wireless : POWER_SUPPLY_PROP_WIRELESS_ONLINE :0

<6>[ 773.288231 / 11-21 19:19:20.951] bq24296_monitor_batt_temp: thermal-engine set req.chg_current_ma = 1500, req.chg_current_te = 1500

<3>[ 773.289092 / 11-21 19:19:20.951] LGE charging scenario : state 0 -> 0(0-0), temp=24, volt=3771, BTM=0, charger=0, cur_set=1500/1500, chg_cur = 5764

<6>[ 773.289110 / 11-21 19:19:20.951] bq24296_monitor_batt_temp: otp_ibat_current=1500

<6>[ 773.298973 / 11-21 19:19:20.961] bq24296_reginfo: 0x40 0x1D 0x3C 0x30 0xD6 0x8A 0x73 0x4B 0x00 0x00

<6>[ 780.063587 / 11-21 19:19:27.731] pet_watchdog

<6>[ 780.068676 / 11-21 19:19:27.731] [XO_THERM] Result:26 Raw:33599

I'm on the 1112 build