Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Opening camera in landscape shows rotated preview on some tablets #3018

Open
3 of 5 tasks
jaumereg opened this issue Jun 24, 2024 · 3 comments
Open
3 of 5 tasks
Labels
馃悰 bug Something isn't working

Comments

@jaumereg
Copy link

jaumereg commented Jun 24, 2024

What's happening?

On some tablets (specially the ones that have the selfie camera on the longer side like phones) when you open the camera in landscape orientation, the preview is rotated 90 degrees, but if you rotate the tablet to portrait, and rotate it back to landscape, it gets fixed itself.

Here is a video of the issue:

tablet.bug.mp4

I have tried to fix it in many ways, like downgrade the version, set orientation manually, remounting the camera, using format or resizeMode but none of them worked. I believe this is a bug, I have reported a similar issue one week ago, but in this case the orientation output is correct, although the preview is not.

Log output was too long, so I've shortened it, here is the full output:
log.txt

Reproduceable Code

const device = useCameraDevice('back');

// ...

return (
    <Camera
        style={{ flex: 1 }}
        device={device}
        isActive
        ref={cameraRef}
        photo
    />
)

Relevant log output

06-24 15:47:31.621   597  1349 I EDMNativeHelperService: isCameraEnabled
06-24 15:47:31.621   404  1521 W QCamera2HWI: put_parameters : X
06-24 15:47:31.622   404  1521 D ShotSingle: startPreview : PreviewWidth=640, PreviewHeight=480
06-24 15:47:31.622   404  1521 I ShotCommon: enablePreviewMsgBy : msg(In:0x200, Out:0x200)
06-24 15:47:31.622   404  1521 W QCamera2HWI: msg_type_enabled : E
06-24 15:47:31.622   404  1521 W QCamera2HWI: msg_type_enabled : X ret 0
06-24 15:47:31.622   404  1521 W QCamera2HWI: enable_msg_type : E, msg type 16
06-24 15:47:31.623   404  1521 W QCamera2HWI: enable_msg_type : X
06-24 15:47:31.623   404  1521 I ShotCommon: enableMsgType : msg(In:0x10, Out:0x81d)
06-24 15:47:31.623   404  1521 V ShotSingle: startPreview(0)
06-24 15:47:31.623   404  1521 W QCamera2HWI: [KPI Perf] start_preview: E PROFILE_START_PREVIEW
06-24 15:47:31.623   404  9671 W QCamera2HWI: preparePreview: E mCameraId=0
06-24 15:47:31.623   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.624   404  9671 W QCameraParameters: getFlipMode: No flip mode for stream type 7
06-24 15:47:31.624   404  9671 W QCameraParameters: [PARM_DBG] getFlipMode : the filp mode of stream type 7 is 0 .
06-24 15:47:31.624   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.624   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.624   431  9692 E mm-camera: mct_pipeline_process_set:command=800000a
06-24 15:47:31.625   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.625   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.625   431  9692 E mm-camera: mct_pipeline_process_set:command=8000012
06-24 15:47:31.625   431  9692 E mm-camera: mct_stream_start_link:CAM_STREAM_TYPE_METADATA
06-24 15:47:31.625   404  9671 E mm-camera-intf: mm_stream_get_v4l2_fmt: Unknown fmt=101
06-24 15:47:31.626   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.626   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.626   431  9692 E mm-camera: mct_pipeline_process_set:command=8000004
06-24 15:47:31.626   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.626   404  9671 E QCamera2HWI: [BeautyShot_dbg] getBufNumRequired =8
06-24 15:47:31.626   404  9671 W QCameraParameters: [PARM_DBG] getFlipMode : the filp mode of stream type 1 is 0 .
06-24 15:47:31.627   404  9671 E QCamera2HWI: [BeautyShot_dbg] getBufNumRequired =8
06-24 15:47:31.627   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.627   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.627   431  9692 E mm-camera: mct_pipeline_process_set:command=800000a
06-24 15:47:31.628   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.628   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.628   431  9692 E mm-camera: mct_pipeline_process_set:command=8000012
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_start_link: PREVIEW
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=sensor, name=sensor
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_get_module: module: 0xa688e820
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_start_link: sensor=0xa689a000
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=sensor, name=iface
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=iface, name=iface
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_get_module: module: 0xa688ec30
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=sensor, name=isp
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=iface, name=isp
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=isp, name=isp
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_get_module: module: 0xa688d1b0
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=sensor, name=stats
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=iface, name=stats
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=isp, name=stats
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=stats, name=stats
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_get_module: module: 0xa688d1f0
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=sensor, name=pproc
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=iface, name=pproc
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=isp, name=pproc
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=stats, name=pproc
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_check_name:mod=pproc, name=pproc
06-24 15:47:31.628   431  9692 E mm-camera: mct_stream_get_module: module: 0xa688d9e0
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.628   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_sink_check_caps_reserve:823] error because caps Type:1 not supported.
06-24 15:47:31.629   431  9692 E mm-camera: pproc_port_create_stream_topology:469] feature mask 0x0 0x0
06-24 15:47:31.629   431  9692 E mm-camera: cpp_port_check_caps_reserve:77, identity=0x20002
06-24 15:47:31.629   431  9692 E mm-camera: cpp_port_check_caps_reserve:143, identity=0x20002, reserved
06-24 15:47:31.629   431  9692 E mm-camera: cpp_module_set_output_duplication_flag:613, current stream w=640, h=480, st=640, sc=480, fmt=1, identity=0x20002
06-24 15:47:31.629   431  9692 E mm-camera: cpp_module_set_output_duplication_flag:617, info: no linked stream
06-24 15:47:31.629   431  9692 E mm-camera: cpp_module_notify_add_stream:1295, info: success, identity=0x20002
06-24 15:47:31.629   431  9692 E mm-camera: afd_port_check_caps_reserve: X
06-24 15:47:31.629   431  9692 E mm-camera: q3a_port_event: Stream type change event received!
06-24 15:47:31.630   431  9692 E mm-camera: mct_pipeline_send_ctrl_events: Send Set Parm events
06-24 15:47:31.630   431  9692 E mm-camera: Fail,cpphw=0xa68d2000, hw_params=0xa09fc600, chromatix_ptr=0x0, trigger=0xa09fc524
06-24 15:47:31.630   431  9692 E mm-camera: Fail,cpphw=0xa68d2000, hw_params=0xa09fc600, chromatix_ptr=0x0, trigger=0xa09fc524
06-24 15:47:31.630   431  9692 E mm-camera: cpp_module_util_get_asf_wnr_params:518 chromatix NULL
06-24 15:47:31.630   431  9692 E mm-camera: isp_set_hal_param: CAM_INTF_PARM_LIVE_FRAMEWORK
06-24 15:47:31.630   431  9692 E mm-camera: isp_util_set_live_framework: mode : -1600740036
06-24 15:47:31.630   431  9692 E mm-camera: isp_util_save_live_framework: aswoogi (0)
06-24 15:47:31.630   431  9692 E mm-camera: stats_port_proc_downstream_set_parm pip recording hint value: 0
06-24 15:47:31.630   431  9692 E mm-camera-sensor: sensor_set_vision_mode:656 vision mode not supported
06-24 15:47:31.631   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.631   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.631   431  9692 E mm-camera: mct_pipeline_process_set:command=8000004
06-24 15:47:31.631   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=4
06-24 15:47:31.631   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=4
06-24 15:47:31.632   431  9692 E mm-camera: mct_pipeline_send_ctrl_events: Send Set Parm events
06-24 15:47:31.632   431  9692 E mm-camera-sensor: module_sensor_event_control_get_parm:3910 [FW_DBG] CAM_INTF_PARM_FW_CL_NUMBER
06-24 15:47:31.632   431  9692 E mm-camera-sensor: eeprom_process:1459 eeprom_process:1459: event: 79 e_ctrl->fd: 28
06-24 15:47:31.632   431  9692 E mm-camera-sensor: eeprom_process:1544 [FW_DBG] EEPROM_GET_FW_CL_NUMBER
06-24 15:47:31.632   431  9692 E mm-camera-sensor: eeprom_get_cl_number:718 [FW_DBG] load from PHONE => cl_number : P_CRA02 CALC05QFIB02CM CRC1F
06-24 15:47:31.633   404  9671 I QCamera2HWI: preparePreview: [FW_DBG] fw cl_number : P_CRA02 CALC05QFIB02CM CRC1F
06-24 15:47:31.633   404  9671 W QCamera2HWI: preparePreview: X mCameraId=0
06-24 15:47:31.633   404  9671 W QCamera2HWI: startPreview: E mCameraId=0
06-24 15:47:31.633   404  9671 W QCameraChannel: QCameraChannel::start(): bundleInfo.num_of_streams=1
06-24 15:47:31.633   404  9671 W QCameraStream: getBufs: [MEM_DBG] Enter: mDynBufAlloc: 0
06-24 15:47:31.633   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.634   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.634   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.634   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.634   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.634   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.635   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.635   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.635   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.635   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.635   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.635   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.636   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.636   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.636   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.636   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.636   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.637   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.637   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.637   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.637   404  9671 W QCameraHWI_Mem: alloc: use ION_SYSTEM_HEAP_ID memory: (33554432)
06-24 15:47:31.638   404  9671 W QCameraStream: getBufs: [MEM_DBG] frame_len: 449796, numBufAlloc: 21
06-24 15:47:31.638   404  9671 W QCameraStream: getBufs: [MEM_DBG] All mNumBufs: 21
06-24 15:47:31.638   404  9671 W QCameraStream: getBufs: [MEM_DBG] MEMORY ALLOC TIME : 5ms
06-24 15:47:31.644   404  9671 W QCameraStream: getBufs: [MEM_DBG] Exit: mDynBufAlloc: 0
06-24 15:47:31.644   404  9671 E mm-camera-intf: mm_stream_request_buf: buf_num = 21, stream type = 7
06-24 15:47:31.647   404  9671 E mm-camera-intf: mm_stream_streamon: E, my_handle = 0x19900, fd = 21, state = 6
06-24 15:47:31.647   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.647   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.647   431  9692 E mm-camera: mct_pipeline_process_set:command=8000008
06-24 15:47:31.647   431  9692 E mm-camera: mct_pipeline_process_set: stream_type = 7
06-24 15:47:31.648   404  9671 W QCameraStream: getBufs: [MEM_DBG] Enter: mDynBufAlloc: 0
06-24 15:47:31.648   404  9671 I QCameraParameters: getPreviewHalPixelFormat: format 17
06-24 15:47:31.648   404  9671 E QCameraHWI_Mem: DBG_PATCH:setWindowInfo mWindow=0xab0a93d4
06-24 15:47:31.659   404  9671 W QCameraStream: getBufs: [MEM_DBG] frame_len: 462848, numBufAlloc: 8
06-24 15:47:31.659   404  9671 W QCameraStream: getBufs: [MEM_DBG] All mNumBufs: 8
06-24 15:47:31.659   404  9671 W QCameraStream: getBufs: [MEM_DBG] MEMORY ALLOC TIME : 10ms
06-24 15:47:31.659   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.659   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.659   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.659   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.660   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.660   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.661   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.661   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.661   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.661   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.662   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.662   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.662   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.662   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.663   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 0, offset 0, stride 640, scanline = 480
06-24 15:47:31.663   431  9692 D mm-camera: mct_stream_create_buffers: plane idx = 1, offset 0, stride 640, scanline = 240
06-24 15:47:31.663   404  9671 W QCameraStream: getBufs: [MEM_DBG] Exit: mDynBufAlloc: 0
06-24 15:47:31.663   404  9671 E mm-camera-intf: mm_stream_request_buf: buf_num = 8, stream type = 1
06-24 15:47:31.664   404  9671 E mm-camera-intf: mm_stream_streamon: E, my_handle = 0x19a01, fd = 24, state = 6
06-24 15:47:31.664   431   431 E mm-camera: server_process_hal_event:__DBG__ E event id=3
06-24 15:47:31.664   431   431 E mm-camera: server_process_hal_event:__DBG__ X sucess event id=3
06-24 15:47:31.664   431  9692 E mm-camera: mct_pipeline_process_set:command=8000008
06-24 15:47:31.664   431  9692 E mm-camera: mct_pipeline_process_set: stream_type = 1
06-24 15:47:31.664   431  9692 E mm-camera-sensor: port_sensor_handle_stream_on:467 H/W revision = 8(8), Criterion ver = 3
06-24 15:47:31.664   431  9692 E mm-camera-sensor: port_sensor_handle_stream_on:519 hwinfo = 43 30 35 51 46, session_id = 2
06-24 15:47:31.664   431  9692 E mm-camera-sensor: port_sensor_handle_stream_on:520 eeprom_lib_name = 0x73
06-24 15:47:31.665   431  9692 E mm-camera-sensor: port_sensor_handle_stream_on:521 sensor position = 0
06-24 15:47:31.665   431  9692 E mm-camera-sensor: port_sensor_handle_stream_on:535 reload_bin : 0, RELOAD_PROPERTY_VALUE=3757
06-24 15:47:31.665   431  9692 E mm-camera-sensor: port_sensor_handle_stream_on:543 check CRC32 Data for calibration at F-ROM = 0x1F
06-24 15:47:31.665   431  9692 E mm-camera-sensor: module_sensor_stream_on:2091 ide 20002 SENSOR_START_STREAM
06-24 15:47:31.665   431  9692 W mm-camera-sensor: module_sensor_stream_on output format = 0
06-24 15:47:31.665   431  9692 E mm-camera-sensor: modules_sensor_set_new_resolution:315 SENSOR_SET_RESOLUTION 0*0 mask 2
06-24 15:47:31.665   431  9692 E mm-camera-sensor: sensor_set_resolution:2481 width 0, height 0
06-24 15:47:31.665   431  9692 E mm-camera-sensor: sensor_set_resolution:2483 stream mask 2 hfr mode 0 fps 30.000000
06-24 15:47:31.665   431  9692 E mm-camera-sensor: sensor_pick_resolution:2000 requested aspect ratio 0
06-24 15:47:31.665   431  9692 E mm-camera-sensor: sensor_set_resolution:2596
06-24 15:47:31.665   431  9692 E mm-camera-sensor: sensor_set_resolution:2599 current_fps_div 1024
06-24 15:47:31.665   431  9692 E mm-camera-sensor: sensor_set_resolution:2618 Sensor name : sr544
06-24 15:47:31.669   431  9692 E mm-camera-sensor: sensor_get_resolution_info:3119 skip 1 frames
06-24 15:47:31.669   431  9692 E mm-camera-sensor:
06-24 15:47:31.669   431  9692 E mm-camera-sensor: sensor_get_resolution_info:3211 full 2592 1944 out 648 488 offset 0 0 scale 4
06-24 15:47:31.669   431  9692 E mm-camera-sensor: eeprom_process:1459 eeprom_process:1459: event: 70 e_ctrl->fd: 28
06-24 15:47:31.669   431  9692 E mm-camera-sensor: eeprom_process:1495 e_ctrl->dimension width= 648, height = 488
06-24 15:47:31.669   431  9692 E mm-camera-sensor:
06-24 15:47:31.669   431  9692 E mm-camera-sensor: eeprom_process:1459 eeprom_process:1459: event: 71 e_ctrl->fd: 28
06-24 15:47:31.669   431  9692 E mm-camera-sensor: eeprom_process:1500 e_ctrl->rolloff_size full width= 2592, height = 1944
06-24 15:47:31.669   431  9692 E mm-camera-sensor:
06-24 15:47:31.669   431  9692 E mm-camera: receive MCT_EVENT_MODULE_SET_STREAM_CONFIG
06-24 15:47:31.669   431  9692 E mm-camera: ispif_util_dump_sensor_cfg: sensor dim: width = 648, heght = 488, fmt = 31, is_bayer = 1
06-24 15:47:31.669   431  9692 E mm-camera: ispif_util_dump_sensor_cfg: camif_crop: first_pix = 0, last_pix = 647, first_line = 0, last_line = 487, max_fps = 119
06-24 15:47:31.669   431  9692 E mm-camera: ispif_sink_port_config <-----
06-24 15:47:31.669   431  9692 E mm-camera: reserve_camif_resource: is_ispif = 1, sess_idx = 0, fps = 120, num_isps = 1 op clk: 174000000
06-24 15:47:31.669   431  9692 E mm-camera: isp_sink_port_stream_config: E, session_id = 2, stream_id = 2, stream_type = 1
06-24 15:47:31.669   431  9692 E mm-camera: isp_sink_port_stream_config: session_id = 2, stream_id = 2, is_split = 0
06-24 15:47:31.669   431  9692 E mm-camera: isp_sink_port_stream_config: old vfe_id_mask = 0x0, new vfe_id_mask = 0x1
06-24 15:47:31.671   431  9692 E mm-camera: after port_ispif_forward_event_to_peer
06-24 15:47:31.671   431  9692 E mm-camera-sensor: chromatix name libchromatix_sr544_preview.so
06-24 15:47:31.671   431  9692 E mm-camera-sensor: chromatix_load_library:50 libchromatix_sr544_preview.so load from phone
06-24 15:47:31.671   431  9692 E mm-camera-sensor: [mm]hwinfo_make_chromatix_name:1746 hw info C05QF
06-24 15:47:31.672   431  9692 E mm-camera-sensor: [mm]hwinfo_make_chromatix_name:1757 chromatix name libchromatix_sr544_preview.so => libchromatix_sr544_preview.so
06-24 15:47:31.672   431  9692 E mm-camera-sensor: chromatix_load_library:54 chromatix from phone libchromatix_sr544_preview.so
06-24 15:47:31.672   431  9692 E mm-camera-sensor: load_chromatix:32 load_chromatix:32 chromatix_sr544_cra_preview
06-24 15:47:31.672   431  9692 E mm-camera-sensor:
06-24 15:47:31.672   431  9692 E mm-camera-sensor: load_chromatix:46 load_chromatix:46-chromatix_sr544_cra_parms header
06-24 15:47:31.672   431  9692 E mm-camera-sensor:
06-24 15:47:31.672   431  9692 E mm-camera-sensor: chromatix_load_library:50 libchromatix_sr544_zslshot.so load from phone
06-24 15:47:31.672   431  9692 E mm-camera-sensor: [mm]hwinfo_make_chromatix_name:1746 hw info C05QF
06-24 15:47:31.672   431  9692 E mm-camera-sensor: [mm]hwinfo_make_chromatix_name:1757 chromatix name libchromatix_sr544_zslshot.so => libchromatix_sr544_zslshot.so
06-24 15:47:31.672   431  9692 E mm-camera-sensor: chromatix_load_library:54 chromatix from phone libchromatix_sr544_zslshot.so
06-24 15:47:31.672   431  9692 E mm-camera-sensor: load_chromatix:32 load_chromatix:32 chromatix_sr544_cra_zslshot
06-24 15:47:31.672   431  9692 E mm-camera-sensor:
06-24 15:47:31.672   431  9692 E mm-camera-sensor: load_chromatix:46 load_chromatix:46-chromatix_sr544_cra_parms header
06-24 15:47:31.672   431  9692 E mm-camera-sensor:
06-24 15:47:31.672   431  9692 E mm-camera-sensor: chromatix_load_common_library:110 libchromatix_sr544_common.so load from phone
06-24 15:47:31.672   431  9692 E mm-camera-sensor: [mm]hwinfo_make_chromatix_name:1746 hw info C05QF
06-24 15:47:31.672   431  9692 E mm-camera-sensor: [mm]hwinfo_make_chromatix_name:1757 chromatix name libchromatix_sr544_common.so => libchromatix_sr544_common.so
06-24 15:47:31.673   431  9692 E mm-camera-sensor: chromatix_load_common_library:114 common chromatix from phone libchromatix_sr544_common.so
06-24 15:47:31.673   431  9692 E mm-camera-sensor: load_chromatix:31 load_chromatix:31- AAA chromatix_sr544_cra_common file open
06-24 15:47:31.673   431  9692 E mm-camera-sensor:
06-24 15:47:31.673   431  9692 E mm-camera-sensor: load_chromatix:45 load_chromatix:45-chromatix_sr544_cra_parms header
06-24 15:47:31.673   431  9692 E mm-camera-sensor:
06-24 15:47:31.673   431  9692 E mm-camera-sensor: sensor_set_chromatix, chx : 0xa29035a0, common chx : 0xa291e1ac
06-24 15:47:31.673   431  9692 E mm-camera-sensor: actuator_load_lib:371 name=dw9804_rossa, mode=camera
06-24 15:47:31.673   431  9692 E mm-camera-sensor: actuator_load_lib:404 loaded from Phone
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_process:1459 eeprom_process:1459: event: 72 e_ctrl->fd: 28
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_process:1513 e_ctrl->eeprom_lib.func_tbl =0xa6f2f004
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_process:1514 e_ctrl->eeprom_params.is_supported =0x1F
06-24 15:47:31.674   431  9692 E mm-camera-sensor: silicon_sr544_format_headerdata:946 sensor CRA = 0x02
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_do_calibration:436 eeprom_do_calibration: Enter
06-24 15:47:31.674   431  9692 E mm-camera-sensor:
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_do_calibration:438 eeprom_do_calibration: e_items->is_wbc = 1, e_items->is_lsc = 1
06-24 15:47:31.674   431  9692 E mm-camera-sensor:
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_whitebalance_calibration:242 eeprom_whitebalance_calibration: min_gain: 1.000000
06-24 15:47:31.674   431  9692 E mm-camera-sensor:
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_whitebalance_calibration:248 eeprom_whitebalance_calibration: gb_gain: 1.018071, gr_gain: 1.000000
06-24 15:47:31.674   431  9692 E mm-camera-sensor:
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_whitebalance_calibration:250 eeprom_whitebalance_calibration: [Caldata]gr: 0.450253, gb: 0.599534
06-24 15:47:31.674   431  9692 E mm-camera-sensor:
06-24 15:47:31.674   431  9692 E mm-camera-sensor: eeprom_do_calibration:457 Exit
06-24 15:47:31.674   431  9692 E mm-camera-sensor: module_sensor_stream_on:2695 reload_bin : 0, RELOAD_PROPERTY_VALUE=3757
06-24 15:47:31.681   431  9692 E mm-camera: cpp_module_handle_chromatix_ptr_event:627 calling cpp_module_util_get_asf_wnr_params for normal
06-24 15:47:31.682   431  9692 W mm-camera: q3a_aecawb_thread_en_q_msg: [SYNC_CHECK] int sem!
06-24 15:47:31.683   431  9692 W mm-camera: q3a_aecawb_thread_en_q_msg: [SYNC_CHECK] lock sem!
06-24 15:47:31.683   431  9692 W mm-camera: q3a_aecawb_thread_en_q_msg: [SYNC_CHECK] unlock sem!
06-24 15:47:31.683   431  9692 E mm-camera: awb_port_proc_downstream_ctrl: AWB Gains: r_gain: 1.722214 g_gain: 1.000000 b_gain: 1.551346 color_temp: 5910
06-24 15:47:31.683   431  9714 E mm-camera: isp_pipeline_util_trigger_update: No active streams
06-24 15:47:31.683   431  9706 E         : af_util_cur_pos_after_lens_move: After move: FV: 0 CurPosition: 206, frame_id: 0
06-24 15:47:31.684   431  9692 E mm-camera: cpp_module_handle_streamon_event:1761, identity=0x20002, stream-on done
06-24 15:47:31.684   431  9692 W mm-camera: q3a_aecawb_thread_en_q_msg: [SYNC_CHECK] int sem!
06-24 15:47:31.684   431  9692 W mm-camera: q3a_aecawb_thread_en_q_msg: [SYNC_CHECK] lock sem!
06-24 15:47:31.684   431  9692 W mm-camera: q3a_aecawb_thread_en_q_msg: [SYNC_CHECK] unlock sem!
06-24 15:47:31.685   431  9692 E mm-camera: isp_streamon: E, session_id = 2
06-24 15:47:31.685   431  9678 E mm-camera: isp_proc_async_command: E ISP_ASYNC_COMMAND_STREAMON = 2
06-24 15:47:31.685   431  9678 E mm-camera: isp_proc_streamon: E, session_id = 2, stream_id = 2, stream_type = 1 num_bufs 8
06-24 15:47:31.685   431  9714 E mm-camera: isp_hw_proc_set_recording_hint: recording_hint: 0
06-24 15:47:31.686   431  9678 E mm-camera: isp_proc_streamon: set_all_saved_params done, session_id = 2
06-24 15:47:31.686   431  9678 E mm-camera: isp_proc_streamon: sending dim downstream done, session_id = 2
06-24 15:47:31.686   431  9714 E mm-camera: gamma_set_solarize_table: xx82: E
06-24 15:47:31.688   431  9714 E mm-camera: linearization_set_params: param_id is not supported in this module
06-24 15:47:31.688   431  9714 E mm-camera: wb_set_params: param_id is not supported in this module
06-24 15:47:31.688   431  9714 E mm-camera: demosaic_set_params: param_id 7, is not supported in this module
06-24 15:47:31.688   431  9714 E mm-camera: demux_set_params: param_id 7, is not supported in this module
06-24 15:47:31.688   431  9714 E mm-camera: mce_set_params: param_id is not supported in this module
06-24 15:47:31.688   431  9714 E mm-camera: isp_pipeline_util_trigger_update: No active streams
06-24 15:47:31.689   431  9714 E mm-camera: stats_action_buf_config: cfg = 1, stats_mask = 0x798
06-24 15:47:31.692   431  9714 E mm-camera: stats_action: stats mask = 0x798
06-24 15:47:31.692   431  9714 E mm-camera: isp_axi_util_subscribe_v4l2_event: event_type = 0x8000100, is_subscribe = 1
06-24 15:47:31.693   431  9692 E mm-camera: isp_streamon: X, session_id = 2
06-24 15:47:31.693   431  9678 E mm-camera: isp_proc_async_command: X ISP_ASYNC_COMMAND_STREAMON = 2
06-24 15:47:31.693   431  9678 E mm-camera: isp_proc_async_command: X, session_id = 2, async_cmd_id = 1
06-24 15:47:31.696   431  9692 E mm-camera: start_sof_check_thread: Starting SOF timeout thread
06-24 15:47:31.702   431  9712 E mm-camera: awb_process_downstream_mod_event fid=0
06-24 15:47:31.702   431  9712 E mm-camera: awb_process_downstream_mod_event fid=0
06-24 15:47:31.704   431  9712 E mm-camera-sensor: port_sensor_handle_sof_notify:1118 jw count 1 timeout 16

Camera Device

{                                            
  "hardwareLevel": "legacy",                       
  "minExposure": -20,                              
  "neutralZoom": 1,                                
  "minZoom": 1,                                    
  "supportsFocus": true,                           
  "formats": [],                                   
  "supportsLowLightBoost": false,                  
  "hasTorch": false,                               
  "supportsRawCapture": false,                     
  "minFocusDistance": 0,                           
  "sensorOrientation": "landscape-left",           
  "maxZoom": 4.889999866485596,                    
  "physicalDevices": [                             
    "wide-angle-camera"                            
  ],                                               
  "isMultiCam": false,                             
  "position": "back",                              
  "id": "0",                                       
  "hasFlash": false,                               
  "maxExposure": 20,                               
  "name": "0 (BACK) androidx.camera.camera2.legacy"
}

Device

Samsung Galaxy Tab A

VisionCamera Version

4.3.2

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

@jaumereg jaumereg added the 馃悰 bug Something isn't working label Jun 24, 2024
Copy link

maintenance-hans bot commented Jun 24, 2024

Guten Tag, Hans here.

Note

New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy in his free time.
To support @mrousavy, please consider 馃挅 sponsoring him on GitHub 馃挅.
Sponsored issues will be prioritized.

@davidburson
Copy link

On my iPhone X iOS 16.7.8, the preview is correctly landscape when the Camera is started while the phone is sideways, but the picture it takes is rotated 90 degrees.

@mars-lan
Copy link

On my iPhone X iOS 16.7.8, the preview is correctly landscape when the Camera is started while the phone is sideways, but the picture it takes is rotated 90 degrees.

Couldn't get my hand on a device to verify yet, but several users of ours have reported the same issue on iOS 16 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants