Crash using Camera2 and physical camera id

On S24-ultra, I get the following crash when trying to use camera “0” with physical camera “6” when taking a photo. The same app words on S22 and S23

This is the crash log:

Cmdline: /vendor/bin/hw/vendor.samsung.hardware.camera.provider-service_64
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A  pid: 6455, tid: 6475, name: binder:6455_2  >>> /vendor/bin/hw/vendor.samsung.hardware.camera.provider-service_64 <<<
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #01 pc 0000000000037d78  /vendor/lib64/libcamxcommonutils.so (CamX::Mutex::Lock()+168) (BuildId: f85522983151bae39f5e969a5e7172fe)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #02 pc 000000000054cf40  /vendor/lib64/hw/camera.qcom.so (CSLSubmitHW(int, int, int, unsigned long, int) (.cfi)+672) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #03 pc 0000000000534908  /vendor/lib64/hw/camera.qcom.so (CSLSubmit.cfi+360) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #04 pc 0000000001d73e34  /vendor/lib64/hw/camera.qcom.so (CamX::OIS::ConfigureOISDriverOutput(int)+1076) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #05 pc 0000000001d7311c  /vendor/lib64/hw/camera.qcom.so (CamX::OIS::Initialize(CamX::OisCreateData*, int)+11308) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #06 pc 0000000001d700e8  /vendor/lib64/hw/camera.qcom.so (CamX::OIS::Create(CamX::OisCreateData*, int) (.cfi)+472) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #07 pc 0000000001de034c  /vendor/lib64/hw/camera.qcom.so (CamX::SensorNode::CreateOISSubmodule()+2284) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #08 pc 0000000001dd38b4  /vendor/lib64/hw/camera.qcom.so (CamX::SensorNode::SensorThreadJobCallback(void*) (.cfi)+1636) (BuildId: 698fc62205714658703f258cb1f309d0)
2024-10-06 18:12:56.436  6960-6960  DEBUG                   pid-6960                             A        #09 pc 000000000003dd6c  /vendor/lib64/libcamxcommonutils.so (CamX::ThreadCore::WorkerThreadBody(void*) (.cfi)+1532) (BuildId: f85522983151bae39f5e969a5e7172fe)
2024-10-06 18:12:56.642  2014-5427  cameraserver            cameraserver                         I

Before the crash I see these messages but not sure if related:

2024-10-06 18:12:56.352  6455-6962  CamX                    ven...re.camera.provider-service_64  E  [ERROR][SENSOR ] camximagesensordata.cpp:5627 PopulateSensorModeData() [s5khp2] Sensor Resolution:0, Invalid CFA Pixel Type 0 at coordinate [0,0]
2024-10-06 18:12:56.352  6455-6962  CamX                    ven...re.camera.provider-service_64  E  [ERROR][SENSOR ] camximagesensordata.cpp:5627 PopulateSensorModeData() [s5khp2] Sensor Resolution:0, Invalid CFA Pixel Type 0 at coordinate [0,0]
2024-10-06 18:12:56.352  6455-6962  CamX                    ven...re.camera.provider-service_64  E  [ERROR][SENSOR ] camximagesensordata.cpp:5627 PopulateSensorModeData() [s5khp2] Sensor Resolution:0, Invalid CFA Pixel Type 0 at coordinate [0,0]
2024-10-06 18:12:56.352  6455-6962  CamX                    ven...re.camera.provider-service_64  E  [ERROR][SENSOR ] camximagesensordata.cpp:5627 PopulateSensorModeData() [s5khp2] Sensor Resolution:0, Invalid CFA Pixel Type 0 at coordinate [0,0]
2024-10-06 18:12:56.352  6455-6962  CamX                    ven...re.camera.provider-service_64  E  [ERROR][SENSOR ] camximagesensordata.cpp:5627 PopulateSensorModeData() [s5khp2] Sensor Resolution:1, Invalid CFA Pixel Type 0 at coordinate [0,0]

Hello yoah,
This issue needs investigation from the development team. Please submit a support request here with the following information:

  • Sample app (APK/ Play store or Galaxy Store link)
  • Issue reproduction path with the app
  • Dumpstate log

To take dumpstate log please follow the below steps:

  1. In the Phone Application, enter *#9900#
  2. Set the Debug Level to Mid.
  3. Wait for the device to restart.
  4. Open the app you want to debug and reproduce your issue.
  5. After reproducing your issue, enter *#9900# again in the Phone Application
  6. Select Run dumpstate/logcat
  7. Select Copy to sdcard Navigate to the log directory that was created on the device using the My Files app or a Windows PC with a USB cable connection.
  8. Send the dumpState in a Zip file.
  9. After you have finished, you can follow steps 1-3 again and delete dumpstate/logcat and return the Debug Level to low.

Please note that the device’s log buffer is cleared after 15 minutes so it is important that the log file is captured within this period of time.

If the attachment size is too big to attach, you can share it with us via file sharing site like Google drive or One drive.

Best Regards,
Ummey Habiba Bristy
Samsung Developer Program Team