[SOLVED]The GDB inside this NDK seems to not support Python...



  • Hi!

    Debugger for Android doesn't work.
    I didn't notice when it exactly happened (I didn't need to launch debugging since month or two) but it was working before. I could run debug build on emulator with debugging.

    I can see those complains in Qt creator settings, I tried to get suggested archive, then I merged it with recent Android-NDK - didn't help. Also I tried creator 3.6 beta - the same communicate.
    I'm under Arch Linux (64bit) - it worked just out of the box before.
    I found some ugly crash in my Android app and get stacked with debugging now.
    Could someone help me, please....



  • I still can not get this working. I sow a few similar posts without any solution.
    I'm using Qt 5.5.1 opensource (online installer) under Arch Linux 64 bit.

    Here is my debug output:

    D/dalvikvm( 2367): Late-enabling CheckJNI
    I/ActivityManager(  405): Start proc net.sf.nootka for activity net.sf.nootka/org.qtproject.qt5.android.bindings.QtActivity: pid=2367 uid=10052 gids={50052, 1015, 1028}
    D/dalvikvm( 2367): GC_CONCURRENT freed 321K, 4% free 8736K/9084K, paused 3ms+1ms, total 57ms
    D/dalvikvm( 2367): GC_FOR_ALLOC freed 249K, 5% free 8637K/9084K, paused 9ms, total 21ms
    I/dalvikvm-heap( 2367): Grow heap (frag case) to 9.342MB for 927988-byte allocation
    D/dalvikvm( 2367): GC_FOR_ALLOC freed <1K, 5% free 9543K/9992K, paused 21ms, total 21ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 4K, 5% free 9539K/9992K, paused 8ms+1ms, total 28ms
    D/dalvikvm( 2367): GC_FOR_ALLOC freed <1K, 5% free 9538K/9992K, paused 13ms, total 13ms
    I/dalvikvm-heap( 2367): Grow heap (frag case) to 10.909MB for 1648032-byte allocation
    D/dalvikvm( 2367): GC_CONCURRENT freed 0K, 4% free 11148K/11604K, paused 2ms+1ms, total 13ms
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libgnustl_shared.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libgnustl_shared.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libgnustl_shared.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5Core.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5Core.so 0xa69e3b18
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5Network.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5Network.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libQt5Network.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5Gui.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5Gui.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libQt5Gui.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5Multimedia.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5Multimedia.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libQt5Multimedia.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5Widgets.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5Widgets.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libQt5Widgets.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5PrintSupport.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5PrintSupport.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libQt5PrintSupport.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/lib/libQt5AndroidExtras.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/lib/libQt5AndroidExtras.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/lib/libQt5AndroidExtras.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0xa69e3b18
    I/Qt      ( 2367): qt start
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/data/net.sf.nootka/qt-reserved-files/plugins/bearer/libqandroidbearer.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/data/net.sf.nootka/qt-reserved-files/plugins/mediaservice/libqtmedia_android.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/data/net.sf.nootka/qt-reserved-files/plugins/mediaservice/libqtmedia_android.so 0xa69e3b18
    D/dalvikvm( 2367): Trying to load lib /data/app-lib/net.sf.nootka-2/libNootkaCore.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/app-lib/net.sf.nootka-2/libNootkaCore.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/app-lib/net.sf.nootka-2/libNootkaCore.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/app-lib/net.sf.nootka-2/libNootkaSound.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/app-lib/net.sf.nootka-2/libNootkaSound.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/app-lib/net.sf.nootka-2/libNootkaSound.so 0xa69e3b18, skipping init
    D/dalvikvm( 2367): Trying to load lib /data/app-lib/net.sf.nootka-2/libNootkaMisc.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/app-lib/net.sf.nootka-2/libNootkaMisc.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/app-lib/net.sf.nootka-2/libNootkaMisc.so 0xa69e3b18, skipping init
    W/System.err( 2367): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err( 2367): 	at java.lang.Class.classForName(Native Method)
    W/System.err( 2367): 	at java.lang.Class.forName(Class.java:217)
    W/System.err( 2367): 	at java.lang.Class.forName(Class.java:172)
    W/System.err( 2367): 	at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:388)
    W/System.err( 2367): 	at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:92)
    W/System.err( 2367): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:430)
    W/System.err( 2367): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 2367): 	at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err( 2367): 	at android.app.Activity.performCreate(Activity.java:5104)
    W/System.err( 2367): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
    W/System.err( 2367): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
    W/System.err( 2367): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    W/System.err( 2367): 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
    W/System.err( 2367): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    W/System.err( 2367): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 2367): 	at android.os.Looper.loop(Looper.java:137)
    W/System.err( 2367): 	at android.app.ActivityThread.main(ActivityThread.java:5041)
    W/System.err( 2367): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 2367): 	at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 2367): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    W/System.err( 2367): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    W/System.err( 2367): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 2367): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/RippleDrawable
    W/System.err( 2367): 	... 25 more
    W/System.err( 2367): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.RippleDrawable" on path: /data/app/net.sf.nootka-2.apk
    W/System.err( 2367): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
    W/System.err( 2367): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err( 2367): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err( 2367): 	... 25 more
    W/System.err( 2367): java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err( 2367): 	at java.lang.Class.classForName(Native Method)
    W/System.err( 2367): 	at java.lang.Class.forName(Class.java:217)
    W/System.err( 2367): 	at java.lang.Class.forName(Class.java:172)
    W/System.err( 2367): 	at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:388)
    W/System.err( 2367): 	at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:93)
    W/System.err( 2367): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:430)
    W/System.err( 2367): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 2367): 	at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err( 2367): 	at android.app.Activity.performCreate(Activity.java:5104)
    W/System.err( 2367): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
    W/System.err( 2367): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
    W/System.err( 2367): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    W/System.err( 2367): 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
    W/System.err( 2367): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    W/System.err( 2367): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 2367): 	at android.os.Looper.loop(Looper.java:137)
    W/System.err( 2367): 	at android.app.ActivityThread.main(ActivityThread.java:5041)
    W/System.err( 2367): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 2367): 	at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 2367): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    W/System.err( 2367): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    W/System.err( 2367): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 2367): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/AnimatedStateListDrawable
    W/System.err( 2367): 	... 25 more
    W/System.err( 2367): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.AnimatedStateListDrawable" on path: /data/app/net.sf.nootka-2.apk
    W/System.err( 2367): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
    W/System.err( 2367): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err( 2367): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err( 2367): 	... 25 more
    W/System.err( 2367): java.lang.ClassNotFoundException: android.graphics.drawable.VectorDrawable
    W/System.err( 2367): 	at java.lang.Class.classForName(Native Method)
    W/System.err( 2367): 	at java.lang.Class.forName(Class.java:217)
    W/System.err( 2367): 	at java.lang.Class.forName(Class.java:172)
    W/System.err( 2367): 	at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:388)
    W/System.err( 2367): 	at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:94)
    W/System.err( 2367): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:430)
    W/System.err( 2367): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 2367): 	at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 2367): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err( 2367): 	at android.app.Activity.performCreate(Activity.java:5104)
    W/System.err( 2367): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
    W/System.err( 2367): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
    W/System.err( 2367): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
    W/System.err( 2367): 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
    W/System.err( 2367): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
    W/System.err( 2367): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 2367): 	at android.os.Looper.loop(Looper.java:137)
    W/System.err( 2367): 	at android.app.ActivityThread.main(ActivityThread.java:5041)
    W/System.err( 2367): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 2367): 	at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 2367): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    W/System.err( 2367): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    W/System.err( 2367): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 2367): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/VectorDrawable
    W/System.err( 2367): 	... 25 more
    W/System.err( 2367): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.VectorDrawable" on path: /data/app/net.sf.nootka-2.apk
    W/System.err( 2367): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
    W/System.err( 2367): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err( 2367): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err( 2367): 	... 25 more
    W/ResourceType( 2367): Skipping entry 0x10804d4 in package table 0 because it is not complex!
    D/dalvikvm( 2367): GC_CONCURRENT freed 1402K, 12% free 10529K/11956K, paused 2ms+3ms, total 20ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 488K, 12% free 10576K/11956K, paused 2ms+1ms, total 9ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 430K, 10% free 10799K/11956K, paused 2ms+1ms, total 18ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 537K, 9% free 10881K/11956K, paused 3ms+1ms, total 10ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 516K, 8% free 11083K/11956K, paused 2ms+1ms, total 13ms
    D/dalvikvm( 2367): GC_FOR_ALLOC freed 452K, 7% free 11122K/11956K, paused 8ms, total 8ms
    D/dalvikvm( 2367): GC_FOR_ALLOC freed 421K, 7% free 11207K/11984K, paused 7ms, total 7ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 777K, 7% free 11239K/12076K, paused 1ms+4ms, total 15ms
    D/dalvikvm( 2367): GC_FOR_ALLOC freed 377K, 6% free 11453K/12156K, paused 7ms, total 7ms
    D/dalvikvm( 2367): GC_CONCURRENT freed 867K, 7% free 11616K/12440K, paused 1ms+8ms, total 55ms
    D/dalvikvm( 2367): Trying to load lib /data/app-lib/net.sf.nootka-2/libNootka.so 0xa69e3b18
    D/dalvikvm( 2367): Added shared lib /data/app-lib/net.sf.nootka-2/libNootka.so 0xa69e3b18
    D/dalvikvm( 2367): No JNI_OnLoad found in /data/app-lib/net.sf.nootka-2/libNootka.so 0xa69e3b18, skipping init
    I/Qt JAVA ( 2367): DEBUGGER: extra parameters: Bundle[{gdbserver_command=/data/data/net.sf.nootka/lib/libgdbserver.so --multi +/data/data/net.sf.nootka/debug-socket, debug_ping=true, gdbserver_socket=/data/data/net.sf.nootka/debug-socket, ping_socket=net.sf.nootka.ping_pong_socket}]
    I/Qt JAVA ( 2367): DEBUGGER: removing gdb socket /data/data/net.sf.nootka/debug-socket
    I/Qt JAVA ( 2367): DEBUGGER: starting /data/data/net.sf.nootka/lib/libgdbserver.so --multi +/data/data/net.sf.nootka/debug-socket
    I/Qt JAVA ( 2367): DEBUGGER: gdbserver started
    I/Qt JAVA ( 2367): DEBUGGER: waiting for socket at /data/data/net.sf.nootka/debug-socket, attempt 0
    I/Qt JAVA ( 2367): DEBUGGER: waiting for socket at /data/data/net.sf.nootka/debug-socket, attempt 1
    I/Qt JAVA ( 2367): DEBUGGER: socket ok
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Debug socket accepted
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    I/Qt JAVA ( 2367): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA ( 2367): DEBUGGER: go to sleep
    Debug finished
    


  • I found the solution by chance....
    Arch Linux has quite new staff and ncurses 6 among them.
    Unfortunately all Android NDK debuggers are built against ncurses 5 (they require libncurse.so.5)
    For Arch the solution is to install
    ncurses5-compat-lib from AUR



  • thx guy I had the same problems
    Great job!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.