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

QtCreator 7: lag every 10 seconds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 7.0.0
    • Android Support, Editors
    • None
    • Windows

    Description

      Hello,

      Since latest version, QtCreator 7 has a lag of ~= 2 seconds on my projects every 10 seconds, which makes it unusable without doing workarounds.

      The only specifics of my projects is that I have both Desktop (Windows) and Android kits, Qt 5.14.2 for both.

      Logs point to "qtcprocess" launching adb and failing to get information:

      11:58:07.397 qtc.android.androidManager: Running command (sync): "C:\\Users\\Louis\\Android\\Sdk\\platform-tools\\adb.exe -s emulator-5562 emu avd name"
      
      11:58:07.397 qtc.utils.qtcprocess: Starting blocking: C:\Users\Louis\Android\Sdk\platform-tools\adb.exe -s emulator-5562 emu avd name  process user events:  true
      
      11:58:07.397 qtc.utils.qtcprocess: STARTING PROCESS:  3    "C:\\Users\\Louis\\Android\\Sdk\\platform-tools\\adb.exe -s emulator-5562 emu avd name"
      
      11:58:09.549 qtc.utils.qtcprocess: QtcProcess: result=1 ex=1
      0 bytes stdout, stderr="error: could not connect to TCP port 5562: cannot connect to 127.0.0.1:5562: Aucune connexion n\xE2\x80\x99""a pu \xC3\xAAtre \xC3\xA9tablie car l\xE2\x80\x99ordinateur cible l\xE2\x80\x99""a express\xC3\xA9ment refus\xC3\xA9""e. (10061)\r\n"
      
      11:58:09.549 qtc.android.androidManager: Command finshed (sync): "C:\\Users\\Louis\\Android\\Sdk\\platform-tools\\adb.exe -s emulator-5562 emu avd name" Success: false Output: "error: could not connect to TCP port 5562: cannot connect to 127.0.0.1:5562: Aucune connexion n\xE2\x80\x99""a pu \xC3\xAAtre \xC3\xA9tablie car l\xE2\x80\x99ordinateur cible l\xE2\x80\x99""a express\xC3\xA9ment refus\xC3\xA9""e. (10061)\r\n"
      
      11:58:17.382 qtc.android.androidManager: Running command (sync): "C:\\Users\\Louis\\Android\\Sdk\\platform-tools\\adb.exe -s emulator-5562 emu avd name"
      
      11:58:17.382 qtc.utils.qtcprocess: Starting blocking: C:\Users\Louis\Android\Sdk\platform-tools\adb.exe -s emulator-5562 emu avd name  process user events:  true
      
      11:58:17.382 qtc.utils.qtcprocess: STARTING PROCESS:  4    "C:\\Users\\Louis\\Android\\Sdk\\platform-tools\\adb.exe -s emulator-5562 emu avd name"
      
      11:58:19.489 qtc.utils.qtcprocess: QtcProcess: result=1 ex=1
      0 bytes stdout, stderr="error: could not connect to TCP port 5562: cannot connect to 127.0.0.1:5562: Aucune connexion n\xE2\x80\x99""a pu \xC3\xAAtre \xC3\xA9tablie car l\xE2\x80\x99ordinateur cible l\xE2\x80\x99""a express\xC3\xA9ment refus\xC3\xA9""e. (10061)\r\n"
      
      11:58:19.489 qtc.android.androidManager: Command finshed (sync): "C:\\Users\\Louis\\Android\\Sdk\\platform-tools\\adb.exe -s emulator-5562 emu avd name" Success: false Output: "error: could not connect to TCP port 5562: cannot connect to 127.0.0.1:5562: Aucune connexion n\xE2\x80\x99""a pu \xC3\xAAtre \xC3\xA9tablie car l\xE2\x80\x99ordinateur cible l\xE2\x80\x99""a express\xC3\xA9ment refus\xC3\xA9""e. (10061)\r\n"
      

      Sorry for the French on certain logs, but basically it says "No connection could be established because the target host refused the connection (10061)". This makes sense because this emulator-5562 is marked "offline" in ADB, and is basically not a real emulator but a music app that is detected by ADB since it unfortunately uses a port in the range of 5555+. I can kill it temporarily to work around the issue but it's not really convenient.

      It happens regardless of if I'm using Android or Desktop kit.

      Could this be done in background to avoid to freeze the GUI, please?

      Thank you,
      Louis

      Attachments

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

        Activity

          People

            portale Alessandro Portale
            amnell Louis du Verdier
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes