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

Camera crash on image acquire on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.4, 6.6.2, 6.7.0 FF
    • 6.6.1
    • Multimedia
    • None
    • Android
    • 2273293ba (dev), c503819ca (6.6), 2b494c899 (tqtc/lts-6.5)
    • 2023wk48FOQtforAndroid

    Description

      Reported old bug QTBUG-115460 that has been fixed. Now camera example start but if you try to capture a photo the app crash with the following error:

      I hwaps   : JNI_OnLoad
      E AndroidRuntime: FATAL EXCEPTION: CameraBackground
      E AndroidRuntime: Process: org.qtproject.example.camera, PID: 17304
      E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
      E AndroidRuntime:     at org.qtproject.qt.android.multimedia.QtCamera2$3.process(QtCamera2.java:133)
      E AndroidRuntime:     at org.qtproject.qt.android.multimedia.QtCamera2$3.onCaptureProgressed(QtCamera2.java:178)
      E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
      E AndroidRuntime:     at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
      E AndroidRuntime:     at android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
      E AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:808)
      E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:101)
      E AndroidRuntime:     at android.os.Looper.loop(Looper.java:166)
      E AndroidRuntime:     at android.os.HandlerThread.run(HandlerThread.java:65)
      I CameraDevice-JV-0: close camera: 0, package name: org.qtproject.example.camera
      I HwSystemManager: pkgName = org.qtproject.example.camera pid = 17304uidOf3RdApk = 10137permType = 0permCfg=0
      I BackgroundPermManager: pkgName: org.qtproject.example.camera,pid: 17304 ,uidOf3RdApk: 10137 ,permType: 0 ,permCfg: 0
      I Process : Sending signal. PID: 17304 SIG: 9

       

      So the component is not yet usable.

      Attachments

        Issue Links

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

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              falsinsoft Fabio Falsini
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes