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

Androidtestrunner freezes after obtaining SDK version

    XMLWordPrintable

Details

    • Android, Linux/X11
    • 20643d17b (dev), ca80d4ff0 (6.6), 1c1f5f5cb (tqtc/lts-6.5)
    • 2023wk48FOQtforAndroid

    Description

      Sometimes after interrupting test execution, androidtestrunner will freeze on subsequent test runs, during the obtainSDKVersion() step of the process.

      Specifically after running a manual test in tqtc-android-automotive which requests a permission, requiring manual user input to approve it. In this case the tested code itself opens the permissions view if it doesn't have permissions. Interrupting the test during this will cause the bug.

      Running Android Automotive 12.0.0r1, with Qt built from dev, on Ubuntu 20.04.

      I stuffed androidtestrunner full of logs in the problematic area, and it seems like the code never returns from pclose() in execCommand() which is called from obtainSDKVersion().

      Attempted to use a different emulator to run tests after the bug appears - no luck. I've found nothing besides restarting my computer that has any impact on this. Doesn't even matter if I don't have an emulator running, it gets stuck at the same point

      Steps

      1. Launch a test in an android emulator
      2. Interrupt the test during execution
        • Possibly the test activity has to be in the background during the interruption, as in the case of this specific test?
      3. Repeat steps 1-2 until step 1 cannot be executed anymore.

       

      Attachments

        Issue Links

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

          Activity

            People

              assam Assam Boudjelthia
              pevirkku Petri Virkkunen
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes