[ZTE Axon 7 Mini ROMs, Kernels, Recoveries, & Other] ghyu:
I'm having trouble with the camera. I can take pictures OK, but Whatsapp and zxing barcode scanner app can't scan 2D barcodes. the barcode scanner app can scan 1d barcodes, but on the success screen, the image it presents is garbled:

.

Strangely enough, signal managed to scan its 2d barcode just fine...

I flashed a fresh lineage-14.1-20171202-UNOFFICIAL-tulip.zip today (twice, both with the same problem).

If it helps, here is the logcat of shortly after the barcode scanner preview window is launched.

12-07 15:48:33.453 2386 2453 I ActivityManager: Displayed com.google.zxing.client.android/.CaptureActivity: +500ms
12-07 15:48:33.471 2386 2453 I WindowManager: Screen frozen for +513ms due to Window{e99d71e u0 com.google.zxing.client.android/com.google.zxing.client.android.CaptureActivity}
12-07 15:48:33.486 26418 27823 E mm-camera: :cpp_hardware_set_clock:356 Set clock 133330000 BW abg 318504960 BW inst 318504960
12-07 15:48:33.487 26418 27823 D mm-camera: cpp_hw_params_update_wnr_params:6505, invalid trigger input 0.000000
12-07 15:48:33.505 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 4100, new = 4100
12-07 15:48:33.507 26418 27818 E mm-camera-isp2: bf_stats47_stats_config_update:2650 roi from 3a
12-07 15:48:33.507 26418 27818 E mm-camera-isp2: bf_stats47_sort_ending_pixel_order:2138 i_start = 1689381
12-07 15:48:33.507 26418 27818 E mm-camera-isp2: bf_stats47_sort_ending_pixel_order:2138 i_start = 1689473
12-07 15:48:33.507 26418 27818 E mm-camera-isp2: be_stats44_trigger_update:447 failed Denomitor is zero hnum 0 vnum 0
12-07 15:48:33.507 26418 27818 E mm-camera-isp2: bg_stats44_trigger_update:404 bg_rgn_width 36 bg_rgn_height 36
12-07 15:48:33.508 26418 27818 E mm-camera-isp2: abf40_trigger_update:587 aec_ratio.ratio = 0.000000
12-07 15:48:33.510 506 27846 I QCamera2HWI: [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : PROFILE_FIRST_PREVIEW_FRAME
12-07 15:48:33.512 377 377 I Adreno : Invalid colorspace 1
12-07 15:48:33.520 26418 27823 D mm-camera: cpp_hw_params_update_wnr_params:6505, invalid trigger input 0.000000
12-07 15:48:33.540 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 4100, new = 4100
12-07 15:48:33.546 377 377 I Adreno : Invalid colorspace 1
12-07 15:48:33.570 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 4100, new = 4100
12-07 15:48:33.571 26418 27818 E mm-camera-isp2: abf40_trigger_update:587 aec_ratio.ratio = 0.000000
12-07 15:48:33.577 377 377 I Adreno : Invalid colorspace 1
12-07 15:48:33.604 26418 27818 E mm-camera-isp2: abf40_trigger_update:587 aec_ratio.ratio = 0.000000
12-07 15:48:33.627 377 377 I Adreno : Invalid colorspace 1
12-07 15:48:33.661 377 377 I Adreno : Invalid colorspace 1
12-07 15:48:33.802 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:33.813 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:162
12-07 15:48:33.836 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:33.846 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:182
12-07 15:48:33.870 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:33.880 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:202
12-07 15:48:33.902 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:33.912 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:222
12-07 15:48:33.939 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:33.947 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:242
12-07 15:48:33.969 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:33.979 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:262
12-07 15:48:34.002 26418 27818 E mm-camera-isp2: color_correct40_save_awb_params:959 skip awb trigger update, colort temp old = 3711, new = 3711
12-07 15:48:34.012 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:282
12-07 15:48:34.035 26418 27818 E mm-camera-isp2: abf40_aec_update:734 abf40_aec_update [2.700000 - 3.069597 - 3.240000] = 0.684438
12-07 15:48:34.036 26418 27818 E mm-camera-isp2: abf40_trigger_update:587 aec_ratio.ratio = 0.684438
12-07 15:48:34.045 26418 27833 I mm-camera-sensor: af_actuator_move_focus:305curr_len_pos:305