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

Can't debug my Qt app under Android 6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.8.0
    • Android Support, Debugger
    • None
    • Android

    Description

      I create a simply QWidget application (using QtCreator wizard). Then I create abreakpoint in the code (in main function for instance), and I start the debugger.

       

      With a Android 4.4 (Nexus 5), or Android 5.1 (Nexus 6), the program stops at specified breakpoint.

      With a Android 6 (Galaxy Tab A) or Android 7 (Galaxy S3), I get the error:

      and then, even if the app runs on the device, breakpoints are ignored and I cannot debug my app.

      Log window reports:

      11:08:31: Debugging starts
      E Zygote : v2
      I libpersona: KNOX_SDCARD checking this for 10196
      I libpersona: KNOX_SDCARD not a persona
      I SELinux : Function: selinux_compare_spd_ram, index[1], SPD-policy is existed. and_ver=SEPF_SM-T550_5.0.2-1 ver=51
      W SELinux : Function: selinux_compare_spd_ram, index[1], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0030
      W SELinux : SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=org.qtproject.example.TestAndroid
      I art : Late-enabling -Xcheck:jni
      D TimaKeyStoreProvider: TimaSignature is unavailable
      D ActivityThread: Added TimaKeyStore provider
      W ActivityThread: Application org.qtproject.example.TestAndroid is waiting for the debugger on port 8100...
      I System.out: Sending WAIT chunk
      I art : Debugger is active
      I System.out: Debugger has connected
      I System.out: waiting for debugger to settle...
      11:08:32: Debugging has finished
      I System.out: waiting for debugger to settle...
      I System.out: waiting for debugger to settle...
      I System.out: waiting for debugger to settle...
      I System.out: waiting for debugger to settle...
      I System.out: waiting for debugger to settle...
      I System.out: waiting for debugger to settle...
      I System.out: debugger has settled (1391)
      W System : ClassLoader referenced unknown path:
      I QtCore : Start
      W linker : /data/app/org.qtproject.example.TestAndroid-1/lib/arm/libQt5Gui.so: unused DT entry: type 0x1d arg 0x594c7
      W linker : /data/app/org.qtproject.example.TestAndroid-1/lib/arm/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x80
      W linker : /data/app/org.qtproject.example.TestAndroid-1/lib/arm/libQt5Widgets.so: unused DT entry: type 0x1d arg 0x6c6fd
      W linker : /data/app/org.qtproject.example.TestAndroid-1/lib/arm/libQt5Widgets.so: unsupported flags DT_FLAGS_1=0x80
      W linker : /data/data/org.qtproject.example.TestAndroid/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unused DT entry: type 0x1d arg 0x921c
      W linker : /data/data/org.qtproject.example.TestAndroid/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x80
      I Qt : qt started
      I art : Debugger is no longer active
      D SecWifiDisplayUtil: Metadata value : SecSettings2
      D ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{9f0c8ea I.E...... R.....ID 0,0-0,0}
      D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
      I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8916_32_LA.BR.1.2.6_RB1__release_AU (Ia10634f51b)
      I Adreno-EGL: OpenGL ES Shader Compiler Version: XE031.06.00.05
      I Adreno-EGL: Build Date: 01/04/16 Mon
      I Adreno-EGL: Local Branch:
      I Adreno-EGL: Remote Branch: quic/LA.BR.1.2.6_rb1.7
      I Adreno-EGL: Local Patches: NONE
      I Adreno-EGL: Reconstruct Branch: NOTHING
      I OpenGLRenderer: Initialized EGL, version 1.4
      W linker : /data/app/org.qtproject.example.TestAndroid-1/lib/arm/libTestAndroid.so: unused DT entry: type 0x1d arg 0x1059
      D ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 24 - 0, 0) vi=Rect(0, 24 - 0, 0) or=2
      D libGLESv1: DTS_GLAPI : DTS is not allowed for Package : org.qtproject.example.TestAndroid
      I Timeline: Timeline: Activity_idle id: android.os.BinderProxy@348216e time:956355977
      V ActivityThread: updateVisibility : ActivityRecord{8b20e24 token=android.os.BinderProxy@348216e {org.qtproject.example.TestAndroid/org.qtproject.qt5.android.bindings.QtActivity}} show : false

      Attachments

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

        Activity

          People

            portale Alessandro Portale
            jpo38 Jean Porcherot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes