Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unable to debug Android device
Forum Update on Monday, May 27th 2025

Unable to debug Android device

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cantdebug
    wrote on 8 Nov 2014, 14:47 last edited by
    #1

    I create an empty Widgets project in Qt Creator, and it builds and runs on my device fine.

    But as soon as I set a breakpoint, the app terminates. If there are breakpoints set when the app is started, then the app terminates immediately.

    Even if no breakpoints are set, after a minute, the following dialog is displayed and the debugging session ends:

    !http://i.stack.imgur.com/j7xyJ.png(Image)!

    I have created a video showing the problem https://www.youtube.com/watch?v=F-XV0d8yPzY

    Here is the output in Qt Creator from one of these run attempts:

    @ Debugging starts
    E/SELinux ( 6982): selinux_android_seapp_context_reload: seapp_contexts file is loaded from /data/security/spota/seapp_contexts
    D/dalvikvm( 6982): Late-enabling CheckJNI
    E/MoreInfoHPW_ViewGroup( 6982): Parent view is not a TextView
    D/dalvikvm( 6982): Trying to load lib /data/data/org.qtproject.example.test2/lib/libgnustl_shared.so 0x41835b40
    D/dalvikvm( 6982): Added shared lib /data/data/org.qtproject.example.test2/lib/libgnustl_shared.so 0x41835b40
    D/dalvikvm( 6982): No JNI_OnLoad found in /data/data/org.qtproject.example.test2/lib/libgnustl_shared.so 0x41835b40, skipping init
    D/dalvikvm( 6982): Trying to load lib /data/data/org.qtproject.example.test2/lib/libQt5Core.so 0x41835b40
    D/dalvikvm( 6982): Added shared lib /data/data/org.qtproject.example.test2/lib/libQt5Core.so 0x41835b40
    D/dalvikvm( 6982): Trying to load lib /data/data/org.qtproject.example.test2/lib/libQt5Gui.so 0x41835b40
    D/dalvikvm( 6982): Added shared lib /data/data/org.qtproject.example.test2/lib/libQt5Gui.so 0x41835b40
    D/dalvikvm( 6982): No JNI_OnLoad found in /data/data/org.qtproject.example.test2/lib/libQt5Gui.so 0x41835b40, skipping init
    D/dalvikvm( 6982): Trying to load lib /data/data/org.qtproject.example.test2/lib/libQt5Widgets.so 0x41835b40
    D/dalvikvm( 6982): Added shared lib /data/data/org.qtproject.example.test2/lib/libQt5Widgets.so 0x41835b40
    D/dalvikvm( 6982): No JNI_OnLoad found in /data/data/org.qtproject.example.test2/lib/libQt5Widgets.so 0x41835b40, skipping init
    D/dalvikvm( 6982): Trying to load lib /data/data/org.qtproject.example.test2/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x41835b40
    D/dalvikvm( 6982): Added shared lib /data/data/org.qtproject.example.test2/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x41835b40
    I/Qt ( 6982): qt start
    D/dalvikvm( 6982): Trying to load lib /data/app-lib/org.qtproject.example.test2-1/libtest2.so 0x41835b40
    D/dalvikvm( 6982): Added shared lib /data/app-lib/org.qtproject.example.test2-1/libtest2.so 0x41835b40
    D/dalvikvm( 6982): No JNI_OnLoad found in /data/app-lib/org.qtproject.example.test2-1/libtest2.so 0x41835b40, skipping init
    I/Qt JAVA ( 6982): DEBUGGER: extra parameters: Bundle[{pong_file=/data/local/tmp/qt/debug-pong-org.qtproject.example.test2, use_local_qt_libs=true, load_local_jars=jar/QtAndroid-bundled.jar:jar/QtAndroidAccessibility-bundled.jar:, debug_ping=true, gdbserver_socket=/data/data/org.qtproject.example.test2/debug-socket, static_init_classes=:, libs_prefix=/data/local/tmp/qt/, load_local_libs=plugins/platforms/android/libqtforandroid.so:, gdbserver_command=/data/data/org.qtproject.example.test2/lib/gdbserver --multi +/data/data/org.qtproject.example.test2/debug-socket, ping_file=/data/data/org.qtproject.example.test2/debug-ping}]
    I/Qt JAVA ( 6982): DEBUGGER: go to sleep
    I/Qt JAVA ( 6982): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.test2, attempt 8
    I/Qt JAVA ( 6982): DEBUGGER: go to sleep
    I/Qt JAVA ( 6982): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.test2, attempt 9
    I/Qt JAVA ( 6982): DEBUGGER: go to sleep
    Could not load shared library symbols for 91 libraries, e.g. /system/bin/linker.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?Unable to find dynamic linker breakpoint function.
    GDB will be unable to debug shared library initializers
    and track explicitly loaded dynamic code.I/Qt JAVA ( 6982): DEBUGGER: waiting for pong at /data/local/tmp/qt/debug-pong-org.qtproject.example.test2, attempt 10
    I/Qt JAVA ( 6982): DEBUGGER: got pong /data/local/tmp/qt/debug-pong-org.qtproject.example.test2
    D/libEGL ( 6982): loaded /system/lib/egl/libEGL_adreno200.so
    D/libEGL ( 6982): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
    D/libEGL ( 6982): loaded /system/lib/egl/libGLESv2_adreno200.so
    I/Adreno200-EGL( 6982): <qeglDrvAPI_eglInitialize:265>: EGL 1.4 QUALCOMM build: AYELDER_AU_LINUX_ANDROID_JB_2.5.5.04.02.02.092.023+PATCH[ES]_msm8960_JB_2.5.5_CL3556704_release_ENGG (CL3556704)
    I/Adreno200-EGL( 6982): Build Date: 05/17/13 Fri
    I/Adreno200-EGL( 6982): Local Branch:
    I/Adreno200-EGL( 6982): Remote Branch: quic/jb_2.5.5
    I/Adreno200-EGL( 6982): Local Patches: 34c9e193f12610d3e68dabd6198d2c4bfbc66974 RB: Update the master timestamp of the hw_image in rb_texture_update_aliased
    I/Adreno200-EGL( 6982): Reconstruct Branch: AU_LINUX_ANDROID_JB_2.5.5.04.02.02.092.023 + 01d3c78 + e6f0547 + LOCAL_PATCH[ES]
    D/OpenGLRenderer( 6982): Enabling debug mode 0
    Could not load shared library symbols for 11 libraries, e.g. libgsl.so.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?Unable to find dynamic linker breakpoint function.
    GDB will be unable to debug shared library initializers
    and track explicitly loaded dynamic code.Debugging has finished

    "org.qtproject.example.test2" terminated.
    

    @

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cantdebug
      wrote on 8 Nov 2014, 18:27 last edited by
      #2

      Here is the full debug log:

      "http://pastebin.com/emvK6y5P":http://pastebin.com/emvK6y5P

      Things seem to be going well, up to the point at which gdb asks:

      @>&"target remote tcp::5039\n"

      ~"A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal]\n"@

      And then the debugger exits.

      1 Reply Last reply
      0

      1/2

      8 Nov 2014, 14:47

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved