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

Android QtQuickApp Not Work with Qt 6.8.0 ARM64-v8a

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7.3, 6.8.0
    • None
    • Ubuntu 22.04
    • Android
    • 2024wk42s3FOQtforAndroid, 2024wk44s3FOQtforAndroid

    Description

      Hi,

      I created a simple qtquick project with Qt Creator. I didn't do any changes.
      I successfully compiled and installed it on my device. The application doesn't work.
      What should I do in this situation?

      Host: Ubuntu 22.04 x64
      Kit: Qt 6.8.0 arm64-v8a
      Ndk: 27.1.12297006
      Java: openjdk version "17.0.12" 2024-07-16
      OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04)
      Build-tools: v34.0.0
      Build platform SDK: 34
      Make: Cmake (Default)

      My Phone: Android 14 QPR3 September Security Patch  

      When I run the application, the following logs appear in the Qt console. Also, When I run the application, "Your application encountered a fatal error and cannot continue" appear in the phone screen.

      Qt Console Log:
      (I already installed QMultimedia)

      I ple.appuntitled: Late-enabling -Xcheck:jni
      I ple.appuntitled: Using CollectorTypeCC GC.
      D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
      D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10632; state: ENABLED
      D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 10632; state: ENABLED
      W ziparchive: Unable to open '/data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/base.dm': No such file or directory
      W ziparchive: Unable to open '/data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/base.dm': No such file or directory
      D nativeloader: Configuring clns-6 for other apk /data/app/~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64:/data/app/~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/org.qtproject.example.appuntitled
      V GraphicsEnvironment: Currently set values for:
      V GraphicsEnvironment:   angle_gl_driver_selection_pkgs=[com.android.angle, com.linecorp.b612.android, com.campmobile.snow, com.google.android.apps.tachyon]
      V GraphicsEnvironment:   angle_gl_driver_selection_values=[angle, native, native, native]
      V GraphicsEnvironment: org.qtproject.example.appuntitled is not listed in per-application setting
      V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
      D CompatibilityChangeReporter: Compat change id reported: 279646685; UID 10632; state: DISABLED
      D CompatibilityChangeReporter: Compat change id reported: 247079863; UID 10632; state: ENABLED
      W ziparchive: Unable to open '/data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/base.dm': No such file or directory
      W ziparchive: Unable to open '/data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/base.dm': No such file or directory
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libc++_shared.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Core_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      I QtCore  : Start
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Gui_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Network_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6OpenGL_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Qml_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6QmlModels_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6QmlWorkerScript_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6QmlMeta_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Quick_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Svg_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6VirtualKeyboard_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6QuickLayouts_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6LabsFolderListModel_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6VirtualKeyboardSettings_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6Multimedia_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libQt6MultimediaQuick_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      D nativeloader: Load /data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libplugins_platforms_qtforandroid_arm64-v8a.so using ns clns-6 from class loader (caller=<unknown>): ok
      I Qt      : qt started
      E QtLoader: Can't find '/data/app/~~Lig18uwa35gSufJsfTo5DQ==/org.qtproject.example.appuntitled-98Kz_bFqLd3slSzBdB1Wgg==/lib/arm64/libplugins_multimedia_ffmpegmediaplugin_arm64-v8a.so'
      E QtLoader: Loading Qt native libraries failed
      D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10632; state: ENABLED
      D CompatibilityChangeReporter: Compat change id reported: 63938206; UID 10632; state: DISABLED
      D CompatibilityChangeReporter: Compat change id reported: 171228096; UID 10632; state: ENABLED
      D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10632; state: DISABLED
      W HWUI    : Unknown dataspace 0
      I AdrenoGLES: QUALCOMM build                   : 6209c5d, Ifdcc64d6e8
      I AdrenoGLES: Build Date                       : 12/12/19
      I AdrenoGLES: OpenGL ES Shader Compiler Version: EV031.27.05.03
      I AdrenoGLES: Local Branch                     : mybranchea1c9b4a-9e05-f149-a3b2-1458d0b52ae8
      I AdrenoGLES: Remote Branch                    : quic/gfx-adreno.lnx.1.0.r85-rel
      I AdrenoGLES: Remote Branch                    : NONE
      I AdrenoGLES: Reconstruct Branch               : NOTHING
      I AdrenoGLES: Build Config                     : C O 9.0.3 AArch64
      I AdrenoGLES: PFP: 0x005ff112, ME: 0x005ff066
      I Gralloc4: mapper 4.x is not supported
      W Gralloc3: mapper 3.x is not supported
      I Gralloc2: Adding additional valid usage bits: 0x202000
      D ProfileInstaller: Installing profile for org.qtproject.example.appuntitled

      I think this issue is related to Qt. The default configuration is wrong, the multimedia package is missing.
      I changed two lines in Cmake.txt as below and the application works fine.

      My solution is :

       

      find_package(Qt6 6.5 REQUIRED COMPONENTS Quick) -> find_package(Qt6 6.5 REQUIRED COMPONENTS Quick Multimedia)

       

      target_link_libraries(appuntitled
          PRIVATE Qt6::Quick
      )

      to

      target_link_libraries(appuntitled
          PRIVATE Qt6::Quick
          PRIVATE Qt6::Multimedia
      )

      Btw, Everything works fine with Qt 6.5.3.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-129946
          # Subject Branch Project Status CR V

          Activity

            People

              bartlomiejmoskal Bartlomiej Moskal
              osos11 Alperen UNAL
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change