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

QML: Creation of a VideoOutput element crashes on some Android devices

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • 6.5.3, 6.6.1, 6.7.0 FF
    • 6.5.2
    • Multimedia
    • None
    • Samsung Galaxy S10
    • Android
    • 2023wk38FOQtforAndroid

      On Samsung Galaxy S10 Android devices, loading a QML scene containing a VideoOutput element crash the app (SIBABRT).

      Logs provide the following information:

      java.lang.NullPointerException: Attempt to get length of null array
          at org.qtproject.qt.android.multimedia.QtVideoDeviceManager.getStreamConfigurationsSizes(QtVideoDeviceManager.java:113)
          at org.qtproject.qt.android.QtNative.startQtApplication(Native Method)
          at org.qtproject.qt.android.QtNative$7.run(QtNative.java:465)
          at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
          at java.lang.Thread.run(Thread.java:920)

       

      A fix  for this issue has been submitted as a pull request on github ( https://github.com/qt/qtmultimedia/pull/3 ) before I realized this wasn't being used by the Qt project

      A simple fix would be to add a null check as done in this commit ( https://github.com/qt/qtmultimedia/pull/3/commits/8f8ad420b6d6f4a10203c04aa15d35bc00d4fdf6 ). 

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

            bartlomiejmoskal Bartlomiej Moskal
            nirv nirv
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes