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

Unable to deploy gdbserver to Android device for debug builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.8.2
    • Qt Creator 4.6.0 , Qt Creator 4.7.0, Qt Creator 4.8.0-beta1
    • Android Support
    • None
    • Windows 10
      Android SDK v28
      Android NDK 15c
    • Android, Windows

    Description

      Trying to start debugger on Windows for an Android project using a QtCreator (which is already using the "new" debug mechanism => QtCreator 4.6 onwards) i receive the message:

      Can not find/copy C++ debug server.

      Investigating this issue further lead me to the method AndroidRunnerWorker::uploadFile() (in src\plugins\android\androidrunnerworker.cpp).

      It specifically fails on the execution of the command

      adb shell run-as my.package.name sh -c 'cat > gdbserver'
      

      Debugging the call further showed the result message:

      adb.exe did not respond within the timeout limit (30 s).

      This happened to me on different machines and different projects and QtCreator versions (4.6+).

      When running the mentioned command manually it expects the file contents of gdserver binary. Since the content comes from a QByteArray, maybe just an EOF is missing?

       

      Attachments

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

        Activity

          People

            vikas Vikas Pachdha
            raven-worx raven-worx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes