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

REG: 6.8.0 Beta2 crashes on launch of any Android Multimedia App

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 6.8.0 RC
    • 6.8.0 Beta2
    • Multimedia
    • None
    • Android Emulator Tablet-WXGA-34 running on Linux Desktop.
      Any Android Mobile, Tablet, ChromeOS, etc.
    • Android
    • 2024wk30s2FOQtforAndroid

    Description

      Multimedia apps on Android crash on launch with 6.8.0 beta2. This is a regression from beta1.
      The betas were installed via QtInstaller where beta2 is 6.8.0-0-20240710114 and
      beta1 is 6.8.0-0-2024060709.

      The Beta2 crash looks like the following in the logs for the Qt 6.8 example app org.qtproject.example.MediaPlayerApp at location Examples/Qt-6.8.0/demos/mediaplayer/

      D QtLoader: Could not instantiate class org.qtproject.qt.android.multimedia.QtAudioDeviceManager, java.lang.IllegalAccessException: java.lang.Class<org.qtproject.qt.android.multimedia.QtAudioDeviceManager> is not accessible from java.lang.Class<org.qtproject.qt.android.QtLoader>
      D QtLoader: Could not instantiate class org.qtproject.qt.android.multimedia.QtMultimediaUtils, java.lang.IllegalAccessException: java.lang.Class<org.qtproject.qt.android.multimedia.QtMultimediaUtils> is not accessible from java.lang.Class<org.qtproject.qt.android.QtLoader>
      I QtLoader: Sleeping for 3000ms, helping the native debugger to settle. Use the env QT_ANDROID_DEBUGGER_MAIN_THREAD_SLEEP_MS variable to change this value.
      I QtCore  : Start
      I Qt      : qt started
      E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
      E AndroidRuntime: Process: org.qtproject.example.MediaPlayerApp, PID: 4997
      E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot find "libavformat.so" from verneed[3] in DT_NEEDED list for "/data/app/~~66iT93CyG67YV8gxm5udHw==/org.qtproject.example.MediaPlayerApp-UwB8UgBgd2SlKmjukERQbA==/lib/x86_64/libplugins_multimedia_ffmpegmediaplugin_x86_64.so"
      E AndroidRuntime: 	at java.lang.Runtime.load0(Runtime.java:933)
      E AndroidRuntime: 	at java.lang.System.load(System.java:1625)
      E AndroidRuntime: 	at org.qtproject.qt.android.QtLoader.loadLibraryHelper(QtLoader.java:476)
      E AndroidRuntime: 	at org.qtproject.qt.android.QtLoader.lambda$loadLibraries$1$org-qtproject-qt-android-QtLoader(QtLoader.java:549)
      E AndroidRuntime: 	at org.qtproject.qt.android.QtLoader$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
      E AndroidRuntime: 	at org.qtproject.qt.android.QtThread.lambda$run$0(QtThread.java:57)
      E AndroidRuntime: 	at org.qtproject.qt.android.QtThread$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
      E AndroidRuntime: 	at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
      E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:1012)
      I Process : Sending signal. PID: 4997 SIG: 9
      

      The same code section in Beta1 outputs the following indicating success, despite the confusing message:

      D QtLoader: Class org.qtproject.qt.android.multimedia.QtAudioDeviceManager does not implement setActivity method
      

      Full logs for Beta2 vs Beta1 running on Android Emulator are at qt680-beta2-puke-TabletWXGA34.txt

      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
              nielsmayer Niels Mayer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes