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

Engine run failed during run android app in the debug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 5.0.3, Qt Creator 7.0.0
    • Android Support
    • None

    Description

      Debugger in the latest QtCreator 5.0.3 does not start - device is endlessly waiting for connection. Debug in 5.0.2 was also broken but due to different bug which has been fixed.

       Under the hood: 

      tResponse time: set target-async on: 0.035 s
      t15:16:13.814
      t15:16:13.814
      >1108^error,msg="/Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/$TARGET_IN_PRO-arm64-v8a-build/app_process: No such file or directory."
      t15:16:13.814
      tResponse time: -file-exec-and-symbols "/Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/$TARGET_IN_PRO-arm64-v8a-build/app_process": 0.034 s
      t15:16:13.814
      d/Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/$TARGET_IN_PRO-arm64-v8a-build/app_process: No such file or directory.
      t15:16:13.815 [1ms]
      /Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/$TARGET_IN_PRO-arm64-v8a-build/app_process: No such file or directory.
      ...
      t15:16:14.063 [1ms]
      eERROR: UNEXPECTED STATE: InferiorStopOk WANTED: InferiorRunRequested IN /Users/qt/work/build/qt-creator/src/plugins/debugger/gdb/gdbengine.cpp:1535
      t15:16:14.063
      dNOTE: INFERIOR RUN OK
      ...
      t15:18:37.629 [42680ms]
      dNOTE: ENGINE RUN FAILED
      t15:18:37.630
      Run failed.
      t15:18:37.630
      dState changed from EngineRunRequested(3) to EngineRunFailed(4)
      t15:18:37.632 [2ms]
      dState changed from EngineRunFailed(4) to EngineShutdownRequested(14)
      t15:18:37.633 [1ms]
      dCALL: SHUTDOWN ENGINE
      t15:18:37.633
      dNOTE: ENGINE SHUTDOWN FINISHED
      t15:18:37.633
      dState changed from EngineShutdownRequested(14) to EngineShutdownFinished(15)
      t15:18:37.634
      Debugger finished.
      t15:18:37.634
      dState changed from EngineShutdownFinished(15) to DebuggerFinished(16)

      Highly likely the clue is here:

      file-exec-and-symbols "/Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/$TARGET_IN_PRO-arm64-v8a-build/app_process"

      this file exists, but in the level above:

      /Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/app_process

      and this looks correct, because during android_deploy_qt process in the log 3 files are mentioned:

      15:16:09: Pulling files necessary for debugging.
      15:16:09: Package deploy: Running command "/usr/local/Caskroom/android-sdk/4333796/platform-tools/adb -s 4T89626AA1952007599 pull /system/bin/app_process64 /Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/app_process".
      15:16:10: Package deploy: Running command "/usr/local/Caskroom/android-sdk/4333796/platform-tools/adb -s 4T89626AA1952007599 pull /system/bin/linker64 /Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/linker64".
      15:16:10: Package deploy: Running command "/usr/local/Caskroom/android-sdk/4333796/platform-tools/adb -s 4T89626AA1952007599 pull /system/lib64/libc.so /Users/danilabagroff/Temp/QtCreator/AppName/Debug-5.15/Android/libc.so"

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              danilabagroff Daniil Megrabyan
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes