Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31969

Android: Limit the executed process count when starting debugging

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 16.0.0
    • Android Support
    • None

    Description

      Currently when starting debugging, the following processes are executed until the debugged application is fully started (Android emulator):

      qtc.utils.process: Process 38 starting (non blocking, main thread): /usr/bin/cmake --build /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug --target all
      qtc.utils.process: Process 38 finished: result=0, ex=0, 60 bytes stdout: "[1/1 125.0/sec] Copy", 0 bytes stderr: "", 17 ms elapsed
      qtc.utils.process: Process 39 starting (non blocking, main thread): /home/jarek/Qt/6.7.3/gcc_64/bin/androiddeployqt --input /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-appandroid_qml-deployment-settings.json --output /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-build --android-platform android-34 --jdk /usr/lib/jvm/java-17-openjdk-amd64 --gradle --gdbserver
      qtc.utils.process: Process 39 finished: result=0, ex=0, 2766 bytes stdout: "Generating Android P", 353 bytes stderr: "Warning: QML import could not be resolved in any of the import paths: QML\nWarning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows\nWarning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS\nWarning: QML import could not be resolved in any of the import paths: QtQuick.Controls.iOS\n", 1758 ms elapsed
      qtc.utils.process: Process 40 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb devices
      qtc.utils.process: Process 40 finished: result=0, ex=0, 26 bytes stdout: "List of devices atta", 0 bytes stderr: "", 3 ms elapsed
      qtc.utils.process: Process 41 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb devices
      qtc.utils.process: Process 41 finished: result=0, ex=0, 26 bytes stdout: "List of devices atta", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 42 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb devices
      qtc.utils.process: Process 42 finished: result=0, ex=0, 26 bytes stdout: "List of devices atta", 0 bytes stderr: "", 7 ms elapsed
      qtc.utils.process: Process 43 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb devices
      qtc.utils.process: Process 43 finished: result=0, ex=0, 26 bytes stdout: "List of devices atta", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 44 starting (blocking with event loop, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 emu avd name
      qtc.utils.process: Process 45 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb devices
      qtc.utils.process: Process 45 finished: result=0, ex=0, 48 bytes stdout: "List of devices atta", 0 bytes stderr: "", 4 ms elapsed
      qtc.utils.process: Process 46 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop init.svc.bootanim
      qtc.utils.process: Process 44 finished: result=0, ex=0, 17 bytes stdout: "AndroidDevice\nOK\n", 0 bytes stderr: "", 1670 ms elapsed
      qtc.utils.process: Process 46 finished: result=1, ex=1, 0 bytes stdout: "", 20 bytes stderr: "adb: device offline\n", 2 ms elapsed
      qtc.utils.process: Process 47 starting (blocking with event loop, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 emu avd name
      qtc.utils.process: Process 47 finished: result=0, ex=0, 17 bytes stdout: "AndroidDevice\nOK\n", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 48 starting (blocking with event loop, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 emu avd name
      qtc.utils.process: Process 49 starting (blocking with event loop, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 emu avd name
      qtc.utils.process: Process 48 finished: result=0, ex=0, 17 bytes stdout: "AndroidDevice\nOK\n", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 49 finished: result=0, ex=0, 17 bytes stdout: "AndroidDevice\nOK\n", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 50 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb devices
      qtc.utils.process: Process 50 finished: result=0, ex=0, 47 bytes stdout: "List of devices atta", 0 bytes stderr: "", 1 ms elapsed
      qtc.utils.process: Process 51 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop init.svc.bootanim
      qtc.utils.process: Process 51 finished: result=0, ex=0, 8 bytes stdout: "stopped\n", 0 bytes stderr: "", 22 ms elapsed
      qtc.utils.process: Process 52 starting (non blocking, main thread): /home/jarek/Qt/6.7.3/gcc_64/bin/androiddeployqt --verbose --output /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-build --no-build --input /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-appandroid_qml-deployment-settings.json --gradle --reinstall --device emulator-5554
      SOFT ASSERT [17:58:46.433]: "d->m_stdOut.keepRawData" in /home/jarek/dev/creator-15/src/libs/utils/qtcprocess.cpp:1757
      SOFT ASSERT [17:58:46.433]: "d->m_stdErr.keepRawData" in /home/jarek/dev/creator-15/src/libs/utils/qtcprocess.cpp:1763
      qtc.utils.process: Process 52 finished: result=0, ex=0, 0 bytes stdout: "", 0 bytes stderr: "", 1483 ms elapsed
      qtc.utils.process: Process 53 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 pull /system/bin/app_process64 /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-app-process/app_process
      qtc.utils.process: Process 53 finished: result=0, ex=0, 0 bytes stdout: "", 86 bytes stderr: "/system/bin/app_process64: 1 file pulled, 0 skipped. 0.3 MB/s (14416 bytes in 0.042s)\n", 60 ms elapsed
      qtc.utils.process: Process 54 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 pull /system/bin/linker64 /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-app-process/linker64
      qtc.utils.process: Process 54 finished: result=0, ex=0, 0 bytes stdout: "", 85 bytes stderr: "/system/bin/linker64: 1 file pulled, 0 skipped. 111.6 MB/s (1844088 bytes in 0.016s)\n", 20 ms elapsed
      qtc.utils.process: Process 55 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 pull /system/lib64/libc.so /home/jarek/dev/projects/android_qml/build/Android_Qt_6_7_3_android_x86_64_Clang_x86_64-Debug/android-app-process/libc.so
      qtc.utils.process: Process 55 finished: result=0, ex=0, 0 bytes stdout: "", 86 bytes stderr: "/system/lib64/libc.so: 1 file pulled, 0 skipped. 206.7 MB/s (1031864 bytes in 0.005s)\n", 8 ms elapsed
      About to initiate state
      qtc.utils.process: Process 56 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop org.qtproject.example.appandroid_qml
      qtc.utils.process: Process 56 finished: result=0, ex=0, 0 bytes stdout: "", 0 bytes stderr: "", 33 ms elapsed
      qtc.utils.process: Process 57 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell date +%s
      qtc.utils.process: Process 58 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell
      qtc.utils.process: Process 58 finished: result=0, ex=0, 0 bytes stdout: "", 0 bytes stderr: "", 11 ms elapsed
      qtc.utils.process: Process 59 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb forward --list
      qtc.utils.process: Process 59 finished: result=0, ex=0, 1 bytes stdout: "\n", 0 bytes stderr: "", 1 ms elapsed
      qtc.utils.process: Process 60 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:40221 tcp:40221
      qtc.utils.process: Process 60 finished: result=0, ex=0, 6 bytes stdout: "40221\n", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 61 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -n org.qtproject.example.appandroid_qml/org.qtproject.qt.android.bindings.QtActivity -D -e extraappparams LXFtbGpzZGVidWdnZXI9cG9ydDo0MDIyMSxibG9jayxzZXJ2aWNlczpEZWJ1Z01lc3NhZ2VzLFFtbERlYnVnZ2VyLFY4RGVidWdnZXIsUW1sSW5zcGVjdG9yLERlYnVnVHJhbnNsYXRpb24=
      qtc.utils.process: Process 57 finished: result=0, ex=0, 11 bytes stdout: "1730912324\n", 0 bytes stderr: "", 19 ms elapsed
      qtc.utils.process: Process 62 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 logcat -v color -v brief -T '11-06 17:58:44.5858'
      qtc.utils.process: Process 61 finished: result=0, ex=0, 120 bytes stdout: "Starting: Intent { c", 0 bytes stderr: "", 39 ms elapsed
      qtc.utils.process: Process 63 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell 'pidof -s '\''org.qtproject.example.appandroid_qml'\'''
      qtc.utils.process: Process 63 finished: result=1, ex=1, 0 bytes stdout: "", 0 bytes stderr: "", 52 ms elapsed
      qtc.utils.process: Process 64 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell 'pidof -s '\''org.qtproject.example.appandroid_qml'\'''
      qtc.utils.process: Process 64 finished: result=0, ex=0, 5 bytes stdout: "3290\n", 0 bytes stderr: "", 13 ms elapsed
      qtc.utils.process: Process 65 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 shell ps -o user -p 3290
      qtc.utils.process: Process 66 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb forward --list
      qtc.utils.process: Process 66 finished: result=0, ex=0, 35 bytes stdout: "emulator-5554 tcp:40", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 67 starting (non blocking, main thread): /home/jarek/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:5038 jdwp:3290
      qtc.utils.process: Process 67 finished: result=0, ex=0, 5 bytes stdout: "5038\n", 0 bytes stderr: "", 2 ms elapsed
      qtc.utils.process: Process 68 starting (non blocking, main thread): /usr/lib/jvm/java-17-openjdk-amd64/bin/jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=5038
      

      Try limit this amount. Check, if the order of execution is proper. Simplify some shell sequences into one shell script execution.
      The log was generated by setting the env var: "QT_LOGGING_RULES=qtc.utils.process=true"

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            jkobus Jarek Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes