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

Empty Android app freezes when switching programs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3.1
    • QPA: Android
    • None
    • Android 10 QKQ1.190828.002 + MIUI 12.0.10
      Qt Creator 8.0.1
      jdk-11.0.15+10
    • Android

    Description

      I'm use empty Android application with empty main qml window and build application on windows with Android Qt6.3.1 Clang arm64-v8a. Run on Android 10 with MIUI.

      The application can be run either under the debugger or independently. The problem is reproduced faster if you run it under the debugger and run a couple of other applications on your smartphone. If you collapse, expand the application somewhat, or switch to another application and back, a hang occurs, a black screen is displayed, nothing is written to the log. The problem was found on a large application after switching from Qt5 to Qt6.3.1. But the problem was reproduced on an empty application. On another person's Samsung smartphone with Android 12, it does not reproduced.

       

      compilation and launch logs attached

       

      The run log ends with the following lines:

       

      I AdrenoGLES: PFP: 0x016ee18a, ME: 0x00000000
      W AdrenoUtils: <ReadGpuID_from_sysfs:198>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
      W AdrenoUtils: <ReadGpuID:222>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
      W RenderThread: type=1400 audit(0.0:114881): avc: denied { search } for name="kgsl-3d0" dev="sysfs" ino=44948 scontext=u:r:untrusted_app:s0:c124,c258,c512,c768 tcontext=u:object_r:sysfs_kgsl:s0 tclass=dir permissive=0
      W Gralloc3: mapper 3.x is not supported
      E LB : fail to open file: No such file or directory
      D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.empty_project_qt6 activity: org.qtproject.qt.android.bindings.QtActivity@3cdcbe
      D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.empty_project_qt6 activity: org.qtproject.qt.android.bindings.QtActivity@3cdcbe
      D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.empty_project_qt6 activity: org.qtproject.qt.android.bindings.QtActivity@3cdcbe

      W Qt A11Y : Could not (yet) activate platform accessibility.
      D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.empty_project_qt6 activity: org.qtproject.qt.android.bindings.QtActivity@3cdcbe
      W libEGL : EGLNativeWindowType 0x6fcabff010 disconnect failed
      D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.empty_project_qt6 activity: org.qtproject.qt.android.bindings.QtActivity@3cdcbe
      W libEGL : EGLNativeWindowType 0x6fc8494010 disconnect failed

      I pty_project_qt: ProcessProfilingInfo new_methods=193 is saved saved_to_disk=1 resolve_classes_delay=8000
      D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.empty_project_qt6 activity: org.qtproject.qt.android.bindings.QtActivity@3cdcbe

       

       

      ====================================

      Small statistics - the data below is not for an empty application. But I think they are relevant:

      problem reproduced:

      • Android 10 QKQ1,198028,002 + MIUI Global 12.0.4
      • Android 10 QKQ1,198028,002 + MIUI Global 12.0.10

      problem not reproduced:

      • Android 8.1.0 (Lenovo - 8504X)
      • Android 10 (Samsung?)
      • Android 10 + EMUI

       

       

      Attachments

        1. compile_output.txt
          21 kB
          Kondrik
        2. empty_project_qt6.pro
          0.5 kB
          Kondrik
        3. main.cpp
          0.5 kB
          Kondrik
        4. main.qml
          0.2 kB
          Kondrik
        5. run_output.txt
          6 kB
          Kondrik

        Activity

          People

            qtandroidteam Qt Android Team
            tolikkon Kondrik
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: