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

Qt Application Hangs When Restarted Immediately After Closure

XMLWordPrintable

    • Android

      When a Qt application is restarted immediately after closing, it hangs on the splash screen.

      • This issue occurs because the previous instance does not close properly. When reproduced on an Android Virtual Device, Logcat messages show "Destroy timeout of remove-task, attempt to kill Task..." (see attached *_android14.txt).
      • The issue is frequently reproduced in applications that use the camera on Android 14 and above. Applications without camera functionality can also reproduce the issue, but it is more difficult to trigger.
      • The issue has not been observed so far on Android 12 or 13.
      • Applications known to reproduce the issue include:
        • The Camera Example application (widgets) bundled in Qt Examples
        • Sample QML applications from a user (with and without Camera support; see attachments)

      Steps to reproduce:

      1. Start the app.
      2. Use the Android navigation bar square button or swipe up (gesture navigation) to open the list of running apps.
      3. Tap "Clear all" to close all apps.
      4. Immediately start the app again.
      5. The app becomes stuck on the splash screen.

      To reproduce the issue, you must restart the app as quickly as possible, ensuring the second instance launches before the first has fully terminated.

       

      — additional information —

      • The issue was observed first time on an Android 14 phone (Ulefone Armor x12, with TinyMDM but in developer mode).
      • On the Android virtual devices, terminating the app again and waiting a bit longer before starting the app solves the issue. But on the physical device, you have to wait for a minute or so to solve the issue, or reboot the device.

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

            qtandroidteam Qt Android Team
            hitoshiito Hitoshi Ito
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes