Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-140862

Camera stream throwing exception when assigning zoom

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10.0 RC
    • Multimedia
    • None
    • Android
    • Multimedia Next

      Tested using a Google Pixel 8a, running Android 15.

      When using QCamera with this device, the properties 'minimumZoomFactor' and 'maximumZoomFactor' report the range 0.5 to 8.0.

      If you try to assign a value less than 1, the camera feed stops and we log that an exception was thrown by the backend. The QCamera property 'active' is still set to true.

      A solution here would be to report a range that we can support.

      F/Lyric   : graph_runner.cc:735] graph_runner.cc:735: error running node: {type: Node, name: top_graph_for_camera_RearMultiFov.cam3_retiming, class_name: RetimingNode} : INVALID_ARGUMENT: Metadata doesn't have the entry for ANDROID_LENS_FOCUS_DISTANCE;  UpdateLogicalResult failed for frame number: 669
      F/libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 16289 (RunnerH:P+:A:11), pid 16093 (camera.provider)
      F/DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
      F/DEBUG   : Build fingerprint: 'google/akita/akita:15/BP1A.250305.019/13003188:user/release-keys'
      F/DEBUG   : Revision: 'MP1.0'
      F/DEBUG   : ABI: 'arm64'
      F/DEBUG   : Timestamp: 2025-02-04 02:59:58.822085892+0100
      F/DEBUG   : Process uptime: 0s
      F/DEBUG   : Cmdline: /apex/com.google.pixel.camera.hal/bin/hw/android.hardware.camera.provider@2.7-service-google
      F/DEBUG   : pid: 16093, tid: 16289, name: RunnerH:P+:A:11  >>> /apex/com.google.pixel.camera.hal/bin/hw/android.hardware.camera.provider@2.7-service-google <<<
      F/DEBUG   : uid: 1000
      F/DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
      F/DEBUG   : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)
      F/DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
      F/DEBUG   : Abort message: 'error running node: {type: Node, name: top_graph_for_camera_RearMultiFov.cam3_retiming, class_name: RetimingNode} : INVALID_ARGUMENT: Metadata doesn't have the entry for ANDROID_LENS_FOCUS_DISTANCE;  UpdateLogicalResult failed for frame number: 669'
      F/DEBUG   :     x0  0000000000000000  x1  0000000000003fa1  x2  0000000000000006  x3  00000074af4e4100
      F/DEBUG   :     x4  646d6d74715e676f  x5  646d6d74715e676f  x6  646d6d74715e676f  x7  7f7f7f7f7f7f7f7f
      F/DEBUG   :     x8  00000000000000f0  x9  a2ed1502f72fff80  x10 0000000000000001  x11 0000007797b57900
      F/DEBUG   :     x12 000000000018000d  x13 000000007fffffff  x14 000000000016faea  x15 000000700ac10146
      F/DEBUG   :     x16 0000007797bc1068  x17 0000007797bab380  x18 00000074af4abf60  x19 0000000000003edd
      F/DEBUG   :     x20 0000000000003fa1  x21 00000000ffffffff  x22 b400007669233ef0  x23 0000000000000100
      F/DEBUG   :     x24 00000074af4e4ac0  x25 b4000075191c8050  x26 0000000000000003  x27 b4000075a91761c8
      F/DEBUG   :     x28 b40000752919f350  x29 00000074af4e4180
      F/DEBUG   :     lr  0000007797b408d8  sp  00000074af4e4100  pc  0000007797b408fc  pst 0000000000001000
      F/DEBUG   : 10 total frames
      F/DEBUG   : backtrace:
      F/DEBUG   :       #00 pc 000000000005e8fc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+156) (BuildId: 3cad38c74be79004f5b2927be886e077)
      F/DEBUG   :       #01 pc 000000000000cbdc  /system/lib64/liblog.so (__android_log_default_aborter+12) (BuildId: 48406a31ddc5dd853bbe32127daa406c)
      F/DEBUG   :       #02 pc 0000000000015a08  /apex/com.google.pixel.camera.hal/lib64/libbase.so (android::base::LogMessage::~LogMessage()+520) (BuildId: bd58e7fe2eabbf338cfd183cc96afc62)
      F/DEBUG   :       #03 pc 0000000000f3050c  /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (BuildId: cd5723bc432086cfc25ba49ff4ddfed7)
      F/DEBUG   :       #04 pc 0000000000f335cc  /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (BuildId: cd5723bc432086cfc25ba49ff4ddfed7)
      F/DEBUG   :       #05 pc 0000000000a1cb10  /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (BuildId: cd5723bc432086cfc25ba49ff4ddfed7)
      F/DEBUG   :       #06 pc 00000000005642f4  /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (BuildId: cd5723bc432086cfc25ba49ff4ddfed7)
      F/DEBUG   :       #07 pc 0000000000564200  /apex/com.google.pixel.camera.hal/lib64/liblyric_hwl.so (BuildId: cd5723bc432086cfc25ba49ff4ddfed7)
      F/DEBUG   :       #08 pc 0000000000070374  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+180) (BuildId: 3cad38c74be79004f5b2927be886e077)
      F/DEBUG   :       #09 pc 00000000000620a0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 3cad38c74be79004f5b2927be886e077)
      D/qml     : Camera.onActiveChanged signal fired: false
      W/QtCamera2: Failed to set zoom:java.lang.IllegalStateException: Session has been closed; further changes are illegal.
      D/qml     : Camera.errorOccurred signal fired: Capture error with Camera Rear Camera: 0. Camera2 Api error code: 4
      W/QtCamera2: Failed to set zoom:java.lang.IllegalStateException: Session has been closed; further changes are illegal.
      W/QtCamera2: Failed to set zoom:java.lang.IllegalStateException: Session has been closed; further changes are illegal.
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtmultimediateam Qt Multimedia Team
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes