Closed YoonJeongLulu closed 6 months ago
Hey - I think this issue has been fixed in VisionCamera 4.0.0. 🥳
Please try V4 and let me know if you still experience this issue;
@mrousavy Hey, we are still experiencing this issue. I am on version 4.2.1. The exact same thing that is happening to OP is happening to me.
Here are the logs:
2024-07-31 15:45:57.013 276-5341 JPG_OEM and...e.camera.provider@2.4-service D L 230, sprd_jpeg_init: jpeg handle 0xae5f8380
2024-07-31 15:45:57.013 276-5341 JPG_OEM and...e.camera.provider@2.4-service D L 239, sprd_jpeg_init: done 0
2024-07-31 15:45:57.033 276-276 ae_sprd_adpt and...e.camera.provider@2.4-service E 4112, ae_parser_otp_info: ae otp_info_ptr is NULL
2024-07-31 15:45:57.033 276-276 ae_sprd_adpt and...e.camera.provider@2.4-service E 4164, ae_parser_otp_info: ae ae_otp_info_ptr = 0x0, module_info_ptr = 0x0. Parser fail !
2024-07-31 15:45:57.034 276-276 flash_lib and...e.camera.provider@2.4-service I 591, flash_init: FLASH VERSION: FLASH VERSION : 20181225-0900
2024-07-31 15:45:57.034 276-276 ae_lib_misc and...e.camera.provider@2.4-service I 121, ae_misc_init: AE2.1 branch: trunk VERSION : 20180526_1700_1_1
2024-07-31 15:45:57.035 276-276 deflicker and...e.camera.provider@2.4-service E flicker detection library version:ver2.1a_20180130
2024-07-31 15:45:57.041 276-276 awb_adpt and...e.camera.provider@2.4-service E 948, _awb_parser_otp_info: awb otp info ptr is NULL
2024-07-31 15:45:57.041 276-276 awb_adpt and...e.camera.provider@2.4-service E 1018, _awb_parser_otp_info: awb awb_otp_info_ptr = 0x0, module_info_ptr = 0x0. Parser fail !
2024-07-31 15:45:57.041 276-276 AWBLIB and...e.camera.provider@2.4-service E awb version: AWB VERSION : 0x20180312-1000
2024-07-31 15:45:57.041 276-276 AWBLIB and...e.camera.provider@2.4-service E awb stat: 50x37
2024-07-31 15:45:57.041 276-276 AWBLIB and...e.camera.provider@2.4-service E awb otp: random(0,0,0) golden(0,0,0)
2024-07-31 15:45:57.048 276-276 ATM and...e.camera.provider@2.4-service E atm version: ATM VERSION : 0x20170830-1600
2024-07-31 15:45:57.049 276-276 lsc_ctrl and...e.camera.provider@2.4-service E 250, _lsc_parser_otp: lsc otp_info_ptr is NULL
2024-07-31 15:45:57.049 276-276 lsc_ctrl and...e.camera.provider@2.4-service E 328, _lsc_parser_otp: lsc module_info_ptr = 0x0. Parser fail !
2024-07-31 15:45:57.050 276-276 <no-tag> and...e.camera.provider@2.4-service I [ALSC]: L 911, lsc_adv_init_alg2: LSC_VERSION: W2018.05.03_update_alsc_version !
2024-07-31 15:45:57.058 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.058 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.059 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.060 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.060 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.061 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.062 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.062 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.062 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.062 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.063 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.063 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.063 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.064 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.064 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.064 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.066 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.066 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.066 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.067 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.067 4296-4383 CameraDevices com.suncard.sunchatmobile I Camera #0 is now unavailable.
2024-07-31 15:45:57.067 4296-4388 Camera2CameraImpl com.suncard.sunchatmobile D {Camera@7aa5233[id=0]} Use case androidx.camera.core.Preview-28799934-e468-45bd-917c-c20a42b7b5af154723875 ACTIVE
2024-07-31 15:45:57.068 4296-4388 UseCaseAttachState com.suncard.sunchatmobile D Active and attached use case: [androidx.camera.core.Preview-28799934-e468-45bd-917c-c20a42b7b5af154723875, androidx.camera.core.ImageAnalysis-262e3327-1e38-4414-ab19-b2fc2be6c72390887968] for camera: 0
2024-07-31 15:45:57.069 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.069 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.070 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.070 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.071 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.071 4296-5012 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.072 4296-5012 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.072 4296-4383 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.073 4296-4388 Camera2CameraImpl com.suncard.sunchatmobile D {Camera@7aa5233[id=0]} Use case androidx.camera.core.ImageAnalysis-262e3327-1e38-4414-ab19-b2fc2be6c72390887968 ACTIVE
2024-07-31 15:45:57.073 4296-4388 UseCaseAttachState com.suncard.sunchatmobile D Active and attached use case: [androidx.camera.core.Preview-28799934-e468-45bd-917c-c20a42b7b5af154723875, androidx.camera.core.ImageAnalysis-262e3327-1e38-4414-ab19-b2fc2be6c72390887968] for camera: 0
2024-07-31 15:45:57.076 4296-4383 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.076 4296-4383 Camera-JNI com.suncard.sunchatmobile I scan_packages:
2024-07-31 15:45:57.077 4296-4383 Camera-JNI com.suncard.sunchatmobile I number_of_cameras:1
2024-07-31 15:45:57.079 4296-4388 Camera2CameraImpl com.suncard.sunchatmobile D {Camera@7aa5233[id=0]} CameraDevice.onOpened()
2024-07-31 15:45:57.079 4296-4388 Camera2CameraImpl com.suncard.sunchatmobile D {Camera@7aa5233[id=0]} Transitioning camera internal state: OPENING --> OPENED
2024-07-31 15:45:57.080 4296-4388 CameraStateRegistry com.suncard.sunchatmobile D Recalculating open cameras:
Camera State
-------------------------------------------------------------------
Camera@7aa5233[id=0] OPEN
-------------------------------------------------------------------
Open count: 1 (Max allowed: 1)
2024-07-31 15:45:57.080 4296-4388 CameraStateMachine com.suncard.sunchatmobile D New public camera state CameraState{type=OPEN, error=null} from OPEN and null
2024-07-31 15:45:57.080 4296-4388 CameraStateMachine com.suncard.sunchatmobile D Publishing new public camera state CameraState{type=OPEN, error=null}
2024-07-31 15:45:57.080 4296-4296 CameraSession com.suncard.sunchatmobile I Camera State: OPEN (has error: false)
2024-07-31 15:45:57.081 4296-4296 CameraView com.suncard.sunchatmobile I invokeOnInitialized()
2024-07-31 15:45:57.081 4296-4388 UseCaseAttachState com.suncard.sunchatmobile D All use case: [androidx.camera.core.Preview-28799934-e468-45bd-917c-c20a42b7b5af154723875, androidx.camera.core.ImageAnalysis-262e3327-1e38-4414-ab19-b2fc2be6c72390887968] for camera: 0
2024-07-31 15:45:57.083 4296-4388 UseCaseAttachState com.suncard.sunchatmobile D Active and attached use case: [androidx.camera.core.Preview-28799934-e468-45bd-917c-c20a42b7b5af154723875, androidx.camera.core.ImageAnalysis-262e3327-1e38-4414-ab19-b2fc2be6c72390887968] for camera: 0
2024-07-31 15:45:57.086 4296-4388 SyncCaptureSessionBase com.suncard.sunchatmobile D [androidx.camera.camera2.internal.SynchronizedCaptureSessionImpl@afda1f3] getSurface done with results: [Surface(name=null)/@0x1d08a26, Surface(name=null)/@0x8cd9c62]
2024-07-31 15:45:57.094 4296-4388 SyncCaptureSessionImpl com.suncard.sunchatmobile D [androidx.camera.camera2.internal.SynchronizedCaptureSessionImpl@afda1f3] start openCaptureSession
2024-07-31 15:45:57.096 4296-4388 DeferrableSurface com.suncard.sunchatmobile D use count+1, useCount=2 androidx.camera.core.SurfaceRequest$2@722f69b
2024-07-31 15:45:57.096 4296-4388 DeferrableSurface com.suncard.sunchatmobile D New surface in use[total_surfaces=3, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@6d5f1e4}
2024-07-31 15:45:57.096 4296-4388 DeferrableSurface com.suncard.sunchatmobile D use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@6d5f1e4
2024-07-31 15:45:57.098 451-3310 CameraDeviceClient cameraserver W createSurfaceFromGbp: Camera 0 with consumer usage flag: 2304: Forcing asynchronous mode for stream
2024-07-31 15:45:57.099 451-3310 CameraDeviceClient cameraserver W createSurfaceFromGbp: Camera 0: Overriding format 0x4 to IMPLEMENTATION_DEFINED
2024-07-31 15:45:57.101 451-3310 Camera3-Device cameraserver E configureStreams: Stream 1: DataSpace override not allowed for format 0x23
2024-07-31 15:45:57.103 451-3310 Camera3-Device cameraserver D Set real time priority for request queue thread (tid 5370)
2024-07-31 15:45:57.104 4296-4388 SyncCaptureSessionImpl com.suncard.sunchatmobile D [androidx.camera.camera2.internal.SynchronizedCaptureSessionImpl@afda1f3] Session onConfigured()
2024-07-31 15:45:57.104 4296-4388 Camera2Cap...estBuilder com.suncard.sunchatmobile D createCaptureRequest
2024-07-31 15:45:57.108 4296-4388 CaptureSession com.suncard.sunchatmobile D CameraCaptureSession.onConfigured() mState=OPENED
2024-07-31 15:45:57.110 4296-4388 CaptureSession com.suncard.sunchatmobile D CameraCaptureSession.onReady() OPENED
2024-07-31 15:45:57.110 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33600, share_fd=16, share_attr_fd=18, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xab62e000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.114 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca336c0, share_fd=19, share_attr_fd=20, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xab4dc000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.114 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.115 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc0c0, share_fd=18, share_attr_fd=20, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xa330e000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.115 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.116 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc180, share_fd=22, share_attr_fd=23, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xa306e000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.117 451-5370 CameraProviderManager cameraserver I Camera device device@3.3/legacy/0 torch status is now NOT_AVAILABLE
2024-07-31 15:45:57.117 451-5370 CameraService cameraserver I onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
2024-07-31 15:45:57.126 276-5347 <no-tag> and...e.camera.provider@2.4-service I [ALSC]: L 2458, lsc_adv_ioctrl_alg2: ALSC_FW_START, read table from file, lsc_id=1
2024-07-31 15:45:57.126 276-5347 <no-tag> and...e.camera.provider@2.4-service I [ALSC]: L 2460, lsc_adv_ioctrl_alg2: ALSC_FW_START, read table from file done
2024-07-31 15:45:57.253 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33780, share_fd=21, share_attr_fd=22, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xab3de000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.257 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33840, share_fd=23, share_attr_fd=24, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xab28c000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.258 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.259 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc240, share_fd=32, share_attr_fd=33, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xa24c2000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.259 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.260 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc300, share_fd=34, share_attr_fd=35, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xa2370000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.264 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33900, share_fd=25, share_attr_fd=26, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xab18e000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.268 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca339c0, share_fd=27, share_attr_fd=28, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xab03c000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.268 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.269 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc3c0, share_fd=36, share_attr_fd=37, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xa2272000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.269 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.270 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc480, share_fd=38, share_attr_fd=39, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xa2120000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.274 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33a80, share_fd=29, share_attr_fd=30, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xaaf3e000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.279 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33b40, share_fd=31, share_attr_fd=32, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xaadec000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.279 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.280 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc540, share_fd=40, share_attr_fd=41, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xa2022000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.280 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.281 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc600, share_fd=42, share_attr_fd=43, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xa1ed0000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.583 296-296 PowerHAL ven...rd.hardware.power@2.0-service D ###Exit camera_perf scene bgn###
2024-07-31 15:45:57.584 296-296 PowerHAL ven...rd.hardware.power@2.0-service D ###Exit camera_perf scene end###
2024-07-31 15:45:57.584 296-3834 PowerHAL ven...rd.hardware.power@2.0-service D ###Enter camera_lowpower scene bgn###
2024-07-31 15:45:57.585 296-3834 PowerHAL ven...rd.hardware.power@2.0-service D ###Enter camera_lowpower scene end###
2024-07-31 15:45:57.586 4296-4296 CameraView com.suncard.sunchatmobile I invokeOnStarted()
2024-07-31 15:45:57.591 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33d80, share_fd=33, share_attr_fd=34, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xaacee000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.600 451-5370 gralloc cameraserver I gralloc_register_buffer hnd=0xaca33e40, share_fd=35, share_attr_fd=36, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xaab9c000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.600 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.602 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc6c0, share_fd=44, share_attr_fd=45, magic=51647890, format=17, internal_format=11, byte_stride=960, flags=4, usage=0x20000903, size=1036800, width=960, height=720, internalWidth=960, internalHeight=720, stride=960, base=0xa1dd2000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.602 276-276 vndksupport and...e.camera.provider@2.4-service D Loading /vendor/lib/hw/gralloc.sp9832e.so from current namespace instead of sphal namespace.
2024-07-31 15:45:57.603 276-276 gralloc and...e.camera.provider@2.4-service I gralloc_register_buffer hnd=0xae5bc780, share_fd=46, share_attr_fd=47, magic=51647890, format=35, internal_format=23, byte_stride=1280, flags=4, usage=0x3, size=1382400, width=1280, height=720, internalWidth=1280, internalHeight=720, stride=1280, base=0xa1c80000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0
2024-07-31 15:45:57.713 4296-5328 CameraView com.suncard.sunchatmobile I invokeOnAverageFpsChanged(0.0)
2024-07-31 15:45:58.712 4296-5328 CameraView com.suncard.sunchatmobile I invokeOnAverageFpsChanged(0.0)
What's happening?
s shown in the picture above, the camera invades the status bar only on Android.
The code I wrote is as follows, but I added svg to mask part of the camera only in the center.
What I want is for the camera to only exist in the masked area. I need help.
I tried wrapping it in SafeAreaView and adding width and height to the Camera Component's style, but it didn't help.
Reproduceable Code
Relevant log output
Camera Device
Device
Galaxy A24, SM-A245N
VisionCamera Version
"react-native-vision-camera": "^3.9.0"
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information