Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Breakpoints not hit on Android



  • All of the sudden breakpoints stopped working.
    889ff9db-1144-4c69-b4a8-a821e6c11404-image.png

    The above 'GBD not responding error" was a typical one but could be ignored, as debugging worked just fine. Today I seem unable to debug at all.

    The app compiles gets deployed, but does not stop at any breakpoint.

    Windows x64, NDK 21.1 aarch64. Android SDK 3.0, QT Creator 14.13.3, updated ADB, updated CMake (was reuested by Creator), to no avail. And yeah I'm running Debug (F5).

    Tried Full-Rebuild, tried running qmake all.

    The App starts but I can freeze it/resume but no breakpoints are hit.

    4511b72f-a5b2-43f5-969b-e4f45b4033b2-image.png274f7ae8-ed57-4db0-bbaf-78d8efa67c2f-image.png

    Origin of the Problem:
    The problems began after, all of the sudden, QT Creator was unable to deploy app to android due to an error about missing debug-symbols.

    so I added path to the search paths manully as follows: (GDB Tab seen on screenshot)
    "set solib-search-path C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/"

    The deployment now succeeds but all the breakpoints are omited. I updated QT Creator and other stuff to versions highlited above to no avail.

    Now, where things get really strange. With the current version of QR Creator, without explicitly defining path to symbols i.e. withou the line "set solib-search-path C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/" the app simply instantly DIES without any error reported. With the line added, the app works fine but debugging is not possible.



  • Now with the latest QT Creator the app simply dies on startup without even giving an error about missing debug symbols (some lines omited for clarity):

    Initializing deployment to Android device/simulator
    Deploying to 76YDU20709008834
    17:10:15: Running steps for project GRIDNEToken...
    17:10:15: Starting: "C:\Qt2\5.15.0\android\bin\qmake.exe" C:\Users\rafal\Documents\GRIDNEToken\GRIDNEToken.pro -spec android-clang "CONFIG+=debug" ANDROID_ABIS="armeabi-v7a"
    17:10:20: The process "C:\Qt2\5.15.0\android\bin\qmake.exe" exited normally.
    17:10:20: Starting: "C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -f C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/Makefile qmake_all
    C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/Makefile:48196: warning: overriding recipe for target 'install_target'
    C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/Makefile:48187: warning: ignoring old recipe for target 'install_target'
    C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/Makefile:48200: warning: overriding recipe for target 'uninstall_target'
    C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/Makefile:48191: warning: ignoring old recipe for target 'uninstall_target'
    make: Nothing to be done for 'qmake_all'.
    17:10:20: The process "C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    17:10:20: Starting: "C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" -j8
    Makefile:48196: warning: overriding recipe for target 'install_target'
    Makefile:48187: warning: ignoring old recipe for target 'install_target'
    Makefile:48200: warning: overriding recipe for target 'uninstall_target'
    Makefile:48191: warning: ignoring old recipe for target 'uninstall_target'
    make: Nothing to be done for 'first'.
    17:10:27: The process "C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    17:10:27: Removing directory C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/assets
    17:10:27: Removing directory C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/libs
    17:10:27: Starting: "C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" "INSTALL_ROOT=C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build" install
    Makefile:48196: warning: overriding recipe for target 'install_target'
    Makefile:48187: warning: ignoring old recipe for target 'install_target'
    Makefile:48200: warning: overriding recipe for target 'uninstall_target'
    Makefile:48191: warning: ignoring old recipe for target 'uninstall_target'
    C:/Qt2/5.15.0/android/bin/qmake.exe -install qinstall C:/Users/rafal/Documents/GRIDNEToken/xzing/src/QZXing.h C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/usr/include/QZXing.h
    C:/Qt2/5.15.0/android/bin/qmake.exe -install qinstall C:/Users/rafal/Documents/GRIDNEToken/xzing/src/QZXing_global.h C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/usr/include/QZXing_global.h
    C:/Qt2/5.15.0/android/bin/qmake.exe -install qinstall -exe libGRIDNEToken_armeabi-v7a.so C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/libs/armeabi-v7a/libGRIDNEToken_armeabi-v7a.so
    17:10:34: The process "C:\Users\rafal\AppData\Local\Android\Sdk\ndk\21.1.6352462\prebuilt\windows-x86_64\bin\make.exe" exited normally.
    17:10:34: Starting: "C:\Qt2\5.15.0\android\bin\androiddeployqt.exe" --input C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-GRIDNEToken-deployment-settings.json --output C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build --android-platform android-29 --jdk "C:/Program Files/Java/jdk1.8.0_144" --gradle
    Generating Android Package
      Input file: C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-GRIDNEToken-deployment-settings.json
      Output directory: C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/
      Application binary: GRIDNEToken
      Android build platform: android-29
      Install to device: No
      -- Skipping C:/Qt2/5.15.0/android/plugins/iconengines/libplugins_iconengines_qsvgicon_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
      -- Skipping C:/Qt2/5.15.0/android/plugins/imageformats/libplugins_imageformats_qsvg_armeabi-v7a.so. It has unmet dependencies: lib/libQt5Svg_armeabi-v7a.so.
    Warning: QML import could not be resolved in any of the import paths: QZXing
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    
    > Configure project :
    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    
    > Task :checkDebugClasspath UP-TO-DATE
    > Task :preBuild UP-TO-DATE
    > Task :preDebugBuild UP-TO-DATE
    > Task :compileDebugAidl UP-TO-DATE
    > Task :compileDebugRenderscript UP-TO-DATE
    > Task :checkDebugManifest UP-TO-DATE
    > Task :generateDebugBuildConfig UP-TO-DATE
    > Task :prepareLintJar UP-TO-DATE
    > Task :mainApkListPersistenceDebug UP-TO-DATE
    > Task :generateDebugResValues UP-TO-DATE
    > Task :generateDebugResources UP-TO-DATE
    > Task :mergeDebugResources UP-TO-DATE
    > Task :createDebugCompatibleScreenManifests UP-TO-DATE
    > Task :processDebugManifest UP-TO-DATE
    > Task :splitsDiscoveryTaskDebug UP-TO-DATE
    > Task :processDebugResources UP-TO-DATE
    > Task :generateDebugSources UP-TO-DATE
    > Task :javaPreCompileDebug UP-TO-DATE
    > Task :compileDebugJavaWithJavac UP-TO-DATE
    > Task :compileDebugNdk NO-SOURCE
    > Task :compileDebugSources UP-TO-DATE
    > Task :mergeDebugShaders UP-TO-DATE
    > Task :compileDebugShaders UP-TO-DATE
    > Task :generateDebugAssets UP-TO-DATE
    > Task :mergeDebugAssets UP-TO-DATE
    > Task :transformClassesWithDexBuilderForDebug UP-TO-DATE
    > Task :transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE
    > Task :transformDexArchiveWithDexMergerForDebug UP-TO-DATE
    > Task :mergeDebugJniLibFolders UP-TO-DATE
    > Task :transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
    > Task :transformNativeLibsWithStripDebugSymbolForDebug UP-TO-DATE
    > Task :checkDebugLibraries UP-TO-DATE
    > Task :processDebugJavaRes NO-SOURCE
    > Task :transformResourcesWithMergeJavaResForDebug UP-TO-DATE
    > Task :validateSigningDebug UP-TO-DATE
    > Task :packageDebug UP-TO-DATE
    > Task :assembleDebug UP-TO-DATE
    
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings
    
    BUILD SUCCESSFUL in 8s
    29 actionable tasks: 29 up-to-date
    Android package built successfully in 19.494 ms.
      -- File: C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk
    17:10:53: The process "C:\Qt2\5.15.0\android\bin\androiddeployqt.exe" exited normally.
    17:10:53: Starting: "C:\Qt2\5.15.0\android\bin\androiddeployqt.exe --verbose --output C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build --no-build --input C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-GRIDNEToken-deployment-settings.json --gradle --reinstall --device 76YDU20709008834"
    Generating Android Package
      Input file: C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-GRIDNEToken-deployment-settings.json
      Output directory: C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build/
      Application binary: GRIDNEToken
      Android build platform: android-29
      Install to device: 76YDU20709008834
    Detecting dependencies of application.
    Reading dependencies from C:/Users/rafal/Documents/build-GRIDNEToken-Samsung_A40-Debug/android-build//libs/armeabi-v7a/libGRIDNEToken_armeabi-v7a.so
          lib/libQt5AndroidExtras_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Multimedia_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
          lib/libQt5QuickWidgets_armeabi-v7a.so
          lib/libQt5Quick_armeabi-v7a.so
          lib/libQt5Widgets_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5AndroidExtras_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Core_armeabi-v7a.so
    Appending dependency: lib/libQt5Core_armeabi-v7a.so
    Reading Android dependencies for Qt5Core_armeabi-v7a
    Appending dependency: lib/libQt5AndroidExtras_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
    Appending dependency: lib/libQt5Gui_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Multimedia_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Network_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
    Appending dependency: lib/libQt5Network_armeabi-v7a.so
    Reading Android dependencies for Qt5Network_armeabi-v7a
    Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_arm64-v8a.so
    Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_armeabi-v7a.so
    Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_x86.so
    Appending dependency from xml: plugins/bearer/libplugins_bearer_qandroidbearer_x86_64.so
    Appending dependency: lib/libQt5Multimedia_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Qml_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
    Appending dependency: lib/libQt5Qml_armeabi-v7a.so
    Reading Android dependencies for Qt5Qml_armeabi-v7a
    Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_debugger_arm64-v8a.so
    Appending dependency from xml: plugins/qmltooling/libplugins_qmltooling_qmldbg_debugger_armeabi-v7a.so
    Appending dependency: lib/libQt5QmlModels_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5QuickWidgets_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
          lib/libQt5Quick_armeabi-v7a.so
          lib/libQt5Widgets_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Quick_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
    Appending dependency: lib/libQt5Quick_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5Widgets_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
    Appending dependency: lib/libQt5Widgets_armeabi-v7a.so
    Reading Android dependencies for Qt5Quick_armeabi-v7a
    
    
    No android dependencies for Qt5QmlModels_armeabi-v7a
    No android dependencies for Qt5QuickWidgets_armeabi-v7a
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5MultimediaQuick_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Multimedia_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
          lib/libQt5Quick_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/plugins/bearer/libplugins_bearer_qandroidbearer_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/plugins/platforms/libplugins_platforms_qtforandroid_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/plugins/mediaservice/libplugins_mediaservice_qtmedia_android_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Multimedia_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
    Scanning for QML imports.
    Running qmlimportscanner with the following command: C:/Qt2/5.15.0/android/bin/qmlimportscanner.exe -qrcFiles C:/Users/rafal/Documents/GRIDNEToken/qml.qrc -rootPath C:/Users/rafal/Documents/GRIDNEToken/ -importPath C:/Qt2/5.15.0/android/qml C:/Users/rafal/Documents/GRIDNEToken/
      -- Adding 'C:/Qt2/5.15.0/android/qml/QtQuick.2' as QML dependency
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick.2/libqml_QtQuick.2_qtquick2plugin_arm64-v8a.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick.2/libqml_QtQuick.2_qtquick2plugin_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/qml/QtQuick.2/libqml_QtQuick.2_qtquick2plugin_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5QmlWorkerScript_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
          lib/libQt5Quick_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/lib/libQt5QmlWorkerScript_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
    Appending dependency: lib/libQt5QmlWorkerScript_armeabi-v7a.so
    No android dependencies for Qt5QmlWorkerScript_armeabi-v7a
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick.2/libqml_QtQuick.2_qtquick2plugin_x86.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick.2/libqml_QtQuick.2_qtquick2plugin_x86_64.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick.2/plugins.qmltypes
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick.2/qmldir
      -- Adding 'C:/Qt2/5.15.0/android/qml/QtQuick.2' as QML dependency
      -- Adding 'C:/Qt2/5.15.0/android/qml/QtQuick/Window.2' as QML dependency
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/libqml_QtQuick_Window.2_windowplugin_arm64-v8a.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/libqml_QtQuick_Window.2_windowplugin_armeabi-v7a.so
    Reading dependencies from C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/libqml_QtQuick_Window.2_windowplugin_armeabi-v7a.so
          lib/libQt5Core_armeabi-v7a.so
          lib/libQt5Gui_armeabi-v7a.so
          lib/libQt5Network_armeabi-v7a.so
          lib/libQt5QmlModels_armeabi-v7a.so
          lib/libQt5Qml_armeabi-v7a.so
          lib/libQt5Quick_armeabi-v7a.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/libqml_QtQuick_Window.2_windowplugin_x86.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/libqml_QtQuick_Window.2_windowplugin_x86_64.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/plugins.qmltypes
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Window.2/qmldir
      -- Adding 'C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2' as QML dependency
       
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2/Fusion/GroupBox.qml
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2/Fusion/HorizontalHeaderView.qml
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2/Fusion/ItemDelegate.qml
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2/Fusion/Label.qml
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2/Fusion/libqml_QtQuick_Controls.2_Fusion_qtquickcontrols2fusionstyleplugin_arm64-v8a.so
        -- Appending dependency found by qmlimportscanner: C:/Qt2/5.15.0/android/qml/QtQuick/Controls.2/Fusion/libqml_QtQuick_Controls.2_Fusion_qtquickcontrols2fusionstyleplugin_armeabi-v7a.so


  • Here's full compile/deployment log from when the app simply silently dies:
    https://pastebin.com/zsaFKP9J
    (when path to debug symbols is not explicitly set - note it was never needed before).
    Struggling with this for a while now...

    And here's application log:

    
    killall: gdbserver: No such process
    
    09:28:03: Debugging starts
    W main    : type=1400 audit(0.0:35884): avc: granted { read } for pid=31165 name="u:object_r:net_dns_prop:s0" dev="tmpfs" ino=15473 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:net_dns_prop:s0 tclass=file
    I ect.GRIDNEToke: Late-enabling -Xcheck:jni
    E ect.GRIDNEToke: Unknown bits set in runtime_flags: 0x8000
    I ect.GRIDNEToke: Reinit property: dalvik.vm.checkjni= false
    W re-initialized>: type=1400 audit(0.0:35885): avc: denied { read } for pid=31165 name="u:object_r:mmi_prop:s0" dev="tmpfs" ino=15469 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:mmi_prop:s0 tclass=file permissive=0
    E libc    : Access denied finding property "runtime.mmitest.isrunning"
    D ActivityThread: Attach thread to application
    W ActivityThread: Application org.qtproject.GRIDNEToken is waiting for the debugger on port 8100...
    I System.out: Sending WAIT chunk
    I System.out: Debugger has connected
    I System.out: waiting for debugger to settle...
    I System.out: waiting for debugger to settle...
    I System.out: waiting for debugger to settle...
    Could not load shared library symbols for 312 libraries, e.g. /system/lib/libandroid_runtime.so.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for /system/framework/oat/arm/org.apache.http.legacy.odex.
    Do you need "set solib-search-path" or "set sysroot"?I System.out: debugger has settled (1952)
    I ect.GRIDNEToke: GcSupervisor: module enable:1
    I ect.GRIDNEToke: The ClassLoaderContext is a special shared library.
    I ect.GRIDNEToke: QarthPatchMonintor::Init
    12-12 09:28:06.496 31165 31165 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::StartWatch
    12-12 09:28:06.497 31165 31165 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::WatchPackage: /data/hotpatch/fwkhotpatch/
    12-12 09:28:06.497 31165 31165 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/org.qtproject.GRIDNEToken
    12-12 09:28:06.497 31165 31165 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/all
    12-12 09:28:06.497 31165 31165 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::Run
    12-12 09:28:06.497 31165 31165 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::Reading
    12-12 09:28:06.499 31165 31320 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::CheckNotifyEvent
    12-12 09:28:06.499 31165 31320 I ect.GRIDNEToke:
    I ect.GRIDNEToke: QarthPatchMonintor::CheckNotifyEvent before read
    12-12 09:28:06.499 31165 31320 I ect.GRIDNEToke:
    I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=org.qtproject.GRIDNEToken#10190#256
    I HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=org.qtproject.GRIDNEToken#10190#0
    I AwareBitmapCacher: init processName:org.qtproject.GRIDNEToken pid=31165 uid=10190
    V ActivityThread: callActivityOnCreate
    W System  : ClassLoader referenced unknown path:
    E AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@df4aa58
    V HwWidgetFactory: : successes to get AllImpl object and return....
    I OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
    I OverScrollerOptimization: get the overscroller config
    W WindowDecorActionBar: should not do the transition or the transition anim is null or it is running or the mContainer view is null or mContainer view hasn't been drawn to screen
    D HwGalleryCacheManagerImpl: mIsEffect:false
    Could not load shared library symbols for /data/app/org.qtproject.GRIDNEToken-Q5onLyqJP9OqIF-jz0F9_A==/lib/arm/libc++_shared.so.
    Do you need "set solib-search-path" or "set sysroot"?I QtCore  : Start
    D         : [ZeroHung]zrhung_send_event: wp = 257, ret = 0
    D         : [ZeroHung]zrhung_send_event: wp = 258, ret = 0
    while parsing target library list: unclosed token
    09:28:12: Debugging has finished
    
    
    "org.qtproject.GRIDNEToken" died.
    


  • I tried solving things by setting "set solib-search-path C:\Users\rafal\AppData\Local\Android\sdk\ndk\21.1.6352462\sysroot"
    The app gets deployed no error about debug symbols it runs fine. but unable to hit any of the breakpoints.

    Compile output:https://pastebin.com/SH7MZK3v
    Application output: https://pastebin.com/vrkpfdMm (runs fine)

    any idea how to proceed from here? running out of ideas.....

    two things on my mind:

    1. what caused the need for explicit path to debug symbols in the first place
    2. the typical error about GDB being unresponsive for 20 secs. I saw it as a bug report and was supposed to be fixed some time back, apparently not. That used to not affect the possibility of debugging and disolved on first 'break' (as reported in the bug report). Maybe it's related.


  • Within app output there's:

    Could not load shared library symbols for 314 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 System.out: waiting for debugger to settle...
    

    That seems to be the culpript indeed.
    related posts:
    https://mfcoding.wordpress.com/2013/08/21/remote-debugging-unable-to-find-dynamic-linker-breakpoint-function/
    https://www.fayewilliams.com/2013/01/31/gdb-unable-to-find-dynamic-linker-breakpoint-function/

    Anyway in my case the sysroot seems to be set properly. For what it is worth, here's the folder's content:1f00c703-ee8b-4b91-9247-02e5f1d729ec-image.png

    I've changed the sysroot variable both with the Kit's settings and params's passed to GDB to explicit aaarch64's folder "C:\Users\rafal\AppData\Local\Android\sdk\ndk\21.1.6352462\sysroot\usr\lib\aarch64-linux-android" and updated solib-search-path to point to external libraries i.e. "solib-search-path C:\Users\rafal\Documents\GRIDNEToken\android\libs"



  • returned from GDB:

    <314show solib-search-path
    >&"show solib-search-path\n"
    >~"The search path for loading non-absolute shared library symbol files is C:\\Users\\rafal\\Documents\\GRIDNEToken\\android\\libs\\armeabi-v7a.\n"
    >314^done
    
    
    <315show sysroot
    >&"show sysroot\n"
    >~"The current system root is \"C:\\Users\\rafal\\AppData\\Local\\Android\\sdk\\ndk\\21.1.6352462\\sysroot\\usr\\lib\\aarch64-linux-android\".\n"
    >315^done
    

    are these new line symbols normal at the end?



  • I've reinstalled QT, Android SDK, QT Creator, still the same. I've uninstalled entire QT in hopes of removing all the seetings, the settings (ex. for kits survived). Ideas?

    Could not load shared library symbols for 315 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.
    

    Additionally I've verified against repository that nothing has changed in project's files........



  • When I create an empty Hello World project in QT creator targeting Android, it's the same error:

    Could not load shared library symbols for 314 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.
    


  • Here I described what worked for me in hopes that nobody else ever needs to go through all the stuff I went through before coming up with a solution: https://stackoverflow.com/questions/65263280/qt-android-unable-to-debug-error-unable-to-find-dynamic-linker-breakpoint-fun/65275623#65275623


Log in to reply