[Android-development] Debugging on device, any success?
Harri Pasanen
harri at mpaja.com
Mon Sep 29 17:31:01 CEST 2014
Hi,
I wonder if everybody else is happily debugging on Android and it is
just me who is having issues?
I'm not able to debug anything on my Nexus 7 tablet, gdb times out. Qt
5.3.2, Kubuntu 14.04 amd64 host
Almost immediately after startup I get the message box:
Connecting to remote server failed:
Remote communication error. Target disconnected.:
Connection reset by peer.
Not sure if I should post here or at qt-creator list.
Anyway, some log snippets below, full logs on request.
Harri
It appears to initialize after some ping/pong:
I/Qt JAVA ( 3628): DEBUGGER: waiting for pong at
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2, attempt 5
I/Qt JAVA ( 3628): DEBUGGER: go to sleep
I/Qt JAVA ( 3628): DEBUGGER: waiting for pong at
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2, attempt 6
I/Qt JAVA ( 3628): DEBUGGER: go to sleep
Could not load shared library symbols for 96 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 retry eventurally. Meanwhile, it is likely
that GDB is unable to debug shared library initializers
or resolve pending breakpoints after dlopen().I/Qt JAVA ( 3628):
DEBUGGER: waiting for pong at
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2, attempt 7
I/Qt JAVA ( 3628): DEBUGGER: got pong
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2
But then dies shortly after.
Looking at the debugger log in qt creator, it says:
ENGINE SUCCESSFULLY STARTED
dNOTE: ENGINE SETUP OK
dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master]
dQUEUE: SETUP INFERIOR
dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master]
dQUEUE: SETUP INFERIOR
>1245^done
>&"set debug-file-directory
/usr/lib/debug:/tmp/ndk-andrewhsieh/build/toolchain/prefix/lib/debug\n"
>1246^done
dCALL: SETUP INFERIOR
<1247set solib-search-path
/home/harri/projects/mbraille-qt/build-MBraille-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_2-Debug:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/sensors:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/qmltooling:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/sqldrivers:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/audio:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/folderlistmodel:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/video/videonode:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/accessible:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/shaders:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/generic:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/qml1tooling:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/imageformats:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/platforms:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/platforms/android:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/sensorgestures:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/bearer:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/iconengines:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/playlistformats:/home/harri/Qt5.3.2/5.3/android_armv7/lib:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/position:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/mediaservice:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/particles:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/gestures
<1248-file-exec-and-symbols
"/home/harri/projects/mbraille-qt/build-MBraille-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_2-Debug/app_process"
>&"set solib-search-path
/home/harri/projects/mbraille-qt/build-MBraille-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_2-Debug:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/sensors:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/qmltooling:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/sqldrivers:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/audio:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/folderlistmodel:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/video/videonode:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/accessible:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/shaders:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/generic:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/qml1tooling:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/imageformats:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/platforms:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/platforms/android:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/sensorgestures:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/bearer:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/iconengines:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/playlistformats:/home/harri/Qt5.3.2/5.3/android_armv7/lib:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/position:/home/harri/Qt5.3.2/5.3/android_armv7/plugins/mediaservice:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/particles:/home/harri/Qt5.3.2/5.3/android_armv7/imports/Qt/labs/gestures\n"
>1247^done
>1248^done
<1249target extended-remote :5039
>&"target extended-remote :5039\n"
>~"Remote debugging using :5039\n"
>&"Remote communication error. Target disconnected.: Connection reset
by peer.\n"
>1249^error,msg="Remote communication error. Target disconnected.:
Connection reset by peer."
sFailed to start application: Connecting to remote server failed:
sRemote communication error. Target disconnected.: Connection reset by peer.
dINFERIOR START FAILED
dNOTE: INFERIOR SETUP FAILED
sSetup failed.
dState changed from InferiorSetupRequested(4) to InferiorSetupFailed(5)
[master]
dState changed from InferiorSetupFailed(5) to
EngineShutdownRequested(20) [master]
dQUEUE: SHUTDOWN ENGINE
dCALL: SHUTDOWN ENGINE
dINITIATE GDBENGINE SHUTDOWN IN STATE 0, PROC: 2
<1250-gdb-exit
>1250^exit
dGDB CLAIMS EXIT; WAITING
dGDB PROCESS FINISHED, status 0, code 0
dNOTE: ENGINE SHUTDOWN OK
dState changed from EngineShutdownRequested(20) to EngineShutdownOk(22)
[master]
dState changed from EngineShutdownOk(22) to DebuggerFinished(23) [master]
dQUEUE: FINISH DEBUGGER
dNOTE: FINISH DEBUGGER
dHANDLE RUNCONTROL FINISHED
sDebugger finished.
I/Qt JAVA ( 3967): DEBUGGER: waiting for pong at
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2, attempt 8
I/Qt JAVA ( 3967): DEBUGGER: go to sleep
I/Qt JAVA ( 3967): DEBUGGER: waiting for pong at
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2, attempt 9
I/Qt JAVA ( 3967): DEBUGGER: go to sleep
I/Qt JAVA ( 3967): DEBUGGER: waiting for pong at
/data/local/tmp/qt/debug-pong-com.mpaja.mbraille2, attempt 10
I/Qt JAVA ( 3967): DEBUGGER: go to sleep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20140929/ae19321a/attachment.html>
More information about the Android-development
mailing list