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

Qt 6.x Android apps broken on Nexus5 device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.3, 6.2.4, 6.3, 6.4, 6.5.0, 5.15
    • None
    • Qt 5.15 with RHI, Qt 6.x (6.2-6.5)
      jdk-11.0.x, Android NDK 21.4.7075529/22.1.7171670/23.1.7779620 (tried all), Android build SDK 30/31
    • Android
    • Next, 2022wk14FOAndroid&Automotive, 2022wk50FOQtforAndroid, 2022wk52FOQtforAndroid

    Description

      I've noticed that QtQuick Android applications completely broken on Google Nexus 5 (Android 6.0.1):
      -Qt 5.15.2 apps without RHI runs fine
      -Qt 6.2.3 apps and Qt 5.15.2 apps with enabled RHI start with empty screen (QtQuick doesn't draw anything)

      03-13 17:49:09.420 23824 23868 W libcoffee_armeabi-v7a.so: Failed to link shader program: --From Vertex Shader:
      03-13 17:49:09.420 23824 23868 W libcoffee_armeabi-v7a.so: --From Fragment Shader:
      03-13 17:49:09.420 23824 23868 W libcoffee_armeabi-v7a.so:
      03-13 17:49:09.420 23824 23868 W libcoffee_armeabi-v7a.so: Failed to build graphics pipeline state
      

      -Qt 6.2.4 and Qt 6.3 beta3 apps crash after start

      03-20 02:05:27.731   892  4273 I WindowState: WIN DEATH: Window{e0dab89 u0 org.qtproject.example.gallery/org.qtproject.qt.android.bindings.QtActivity}
      03-20 02:05:27.731   892  4273 W WindowManager: Force-removing child win Window{9ec27a8 u0 SurfaceView} from container Window{e0dab89 u0 org.qtproject.example.gallery/org.qtproject.qt.android.bindings.QtActivity}
      03-20 02:05:27.739   892  1107 W WindowManager: Failed looking up window
      03-20 02:05:27.739   892  1107 W WindowManager: java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@77283cb does not exist
      03-20 02:05:27.739   892  1107 W WindowManager:         at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8743)
      03-20 02:05:27.739   892  1107 W WindowManager:         at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8734)
      03-20 02:05:27.739   892  1107 W WindowManager:         at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1209)
      03-20 02:05:27.739   892  1107 W WindowManager:         at android.os.BinderProxy.sendDeathNotice(Binder.java:558)
      03-20 02:05:27.739   892  1107 I WindowState: WIN DEATH: null
      03-20 02:05:27.774   323   323 I Zygote  : Process 24887 exited cleanly (1)
      

      -Qt 6.4.2 apps doesn't crash, but still don't draw anything

      Looks like those issues related to QRhi
      Reproduceable on physical device, I did not observe such issues on API23 Android emulators (x86_64/armeabi_v7a)

      Android logcat output captured at deploy/runtime attached.

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              morte Maxim Bescherevnykh
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes