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

Android: C++ debugging does not work with Android Qt 5.14 applications

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows

    Description

      With Qt Creator 4.11 I can successfully debug an application that is buit against Android Qt 5.12.4 or 5.13.1.
      But with an application built against Android Qt 5.14.0-beta1, the debugger exits in the beginning. See the attached debugger_log.txt
      The application output:

      14:40:24: Debugging starts
      I/art     (30519): Late-enabling -Xcheck:jni
      I/ActivityManager(  472): Start proc 30519:org.qtproject.example.untitled42/u0a97 for activity org.qtproject.example.untitled42/org.qtproject.qt5.android.bindings.QtActivity
      W/ActivityThread(30519): Application org.qtproject.example.untitled42 is waiting for the debugger on port 8100...
      The command "c:\Users\alportal\AppData\Local\Android\Sdk\platform-tools\adb.exe" terminated with exit code 1.
      adb.exe: error: listener 'tcp:5038' not found
      I/System.out(30519): Sending WAIT chunk
      I/art     (30519): Debugger is active
      14:40:24: Debugging has finished
      I/System.out(30519): Debugger has connected
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): waiting for debugger to settle...
      I/System.out(30519): debugger has settled (1418)
      W/linker  (30519): libc++_shared.so: unused DT entry: type 0x6ffffef5 arg 0x25aa4
      W/linker  (30519): libc++_shared.so: unused DT entry: type 0x6ffffffe arg 0x2ff18
      W/linker  (30519): libc++_shared.so: unused DT entry: type 0x6fffffff arg 0x2
      W/linker  (30519): libQt5Core_armeabi-v7a.so: unused DT entry: type 0x6ffffef5 arg 0x58b30
      W/linker  (30519): libQt5Core_armeabi-v7a.so: unused DT entry: type 0x6ffffffe arg 0x730dc
      W/linker  (30519): libQt5Core_armeabi-v7a.so: unused DT entry: type 0x6fffffff arg 0x3
      I/QtCore  (30519): Start
      W/linker  (30519): libQt5Gui_armeabi-v7a.so: unused DT entry: type 0x6ffffef5 arg 0x840b4
      W/linker  (30519): libQt5Gui_armeabi-v7a.so: unused DT entry: type 0x6ffffffe arg 0xac2fc
      W/linker  (30519): libQt5Gui_armeabi-v7a.so: unused DT entry: type 0x6fffffff arg 0x2
      W/linker  (30519): libQt5Widgets_armeabi-v7a.so: unused DT entry: type 0x6ffffef5 arg 0x9a2dc
      W/linker  (30519): libQt5Widgets_armeabi-v7a.so: unused DT entry: type 0x6ffffffe arg 0xc57b8
      W/linker  (30519): libQt5Widgets_armeabi-v7a.so: unused DT entry: type 0x6fffffff arg 0x2
      W/linker  (30519): libplugins_platforms_qtforandroid_armeabi-v7a.so: unused DT entry: type 0x6ffffef5 arg 0xf698
      W/linker  (30519): libplugins_platforms_qtforandroid_armeabi-v7a.so: unused DT entry: type 0x6ffffffe arg 0x1289c
      W/linker  (30519): libplugins_platforms_qtforandroid_armeabi-v7a.so: unused DT entry: type 0x6fffffff arg 0x3
      I/Qt      (30519): qt started
      I/art     (30519): Debugger is no longer active
      

      The files /lib/armeabi-v7a/libgdbserver.so is missing in a Qt 5.14 based apk, but present in a Qt 5.13-based apk.
      Also, the build directory android-build/libs/armeabi-v7a does not contain a gdbserver with a Qt 5.14-based build but a Qt 5.13-based build contains it.

      Attachments

        Issue Links

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

          Activity

            People

              portale Alessandro Portale
              portale Alessandro Portale
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes