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

QtMainLoopThread crashes on x86_64 android emulator due to graphics backend initialization fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.1
    • QPA: Android
    • Android Studio x86_64 Emulator (API 35),
      Windows 11 23H2,

      CMake = 3.30.5,
      Gradle = 8.14,
      Qt Tools for Android Studio = 4.1,
      QtGP = 1.3,
      Kotlin = 2.0.21,
      Java = jdk-17,
      NDK = 27.2.12479018
    • Android

      What:

      Occasionally running into the following crash when attempting to load an activity with 6 QtQuickViews:

      Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5487 (qtMainLoopThrea), pid 5469 (le.quickcompose)

      OpenGLFailCrashLog.txt

      This issue does not appear every time despite taking the exact same route with no deviations. A crash not occurring is rare, I'm estimating it happens less than 10% of the time

       

      Steps to reproduce:

      1. Open app
      2. Click "Pure Compose Example"
      3. EXPECTED: All six QtQuickViews display on the screen
      4. ACTUAL
        1. CASE 1: Some number of the QtQuickViews properly render (usually 1-3) and the crash in the .txt above happens
        2. (rarer) CASE 2: Some number of the QtQuickViews render (usually 1-3), but no crash happens and the app stays stable in the Activity

      This behaviour is not reproducible when the app is ran on a native android device (Samsung Galaxy S21 FE, API 35-ext-16). When running on android hardware, all QtQuickViews render without fail, without crashes.

       

      Full log from process start to end:

      fullLogForOpenGLCrash.txt

      Example video:

      OpenGLCrashVideo.mkv

      (Note that the recording software running is slowing down the performance of the already slow x86_64 android emulator)

      Example project:
      QTBUG-139006.7z
      (Note: replace QtBuild file directories in build.gradle with your local installations)

        1. OpenGLFailCrashLog.txt
          7 kB
          Tino Marttila
        2. fullLogForOpenGLCrash.txt
          33 kB
          Tino Marttila
        3. OpenGLCrashVideo.mkv
          4.78 MB
          Tino Marttila
        4. QTBUG-139006.7z
          91 kB
          Tino Marttila
        5. OpenGLCrashVideo.mov
          3.65 MB
          Assam Boudjelthia
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtandroidteam Qt Android Team
            tinomarttila Tino Marttila
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes