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

QML Debugger: Unable to listen to port 45339

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.0.0-rc1
    • Android Support, Debugger
    • None

    Description

      I am trying to run QtCreator debugger on an android device in order to provide feedback for QTBUG-52949 (code is https://github.com/FabriceSalvaire/qt5-bugs/tree/master/android-custom-activity), but it hangs with this message:

      Debugging starts
      E/Zygote ( 8234): MountEmulatedStorage()
      E/Zygote ( 8234): v2
      I/libpersona( 8234): KNOX_SDCARD checking this for 10280
      I/libpersona( 8234): KNOX_SDCARD not a persona
      I/ActivityManager( 894): Start proc org.qt5_bugs for activity org.qt5_bugs/.Qt5BugsActivity: pid=8234 uid=10280 gids=

      Unknown macro: {50280, 9997}

      abi=armeabi-v7a
      I/SELinux ( 8234): Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-G900F_5.0 ver=27
      I/SELinux ( 8234): Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G900F_5.0-1_0032
      E/SELinux ( 8234): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
      I/art ( 8234): Late-enabling -Xcheck:jni
      D/TimaKeyStoreProvider( 8234): TimaSignature is unavailable
      D/ActivityThread( 8234): Added TimaKeyStore provider
      D/ResourcesManager( 8234): creating new AssetManager and set to /data/app/org.qt5_bugs-2/base.apk
      I/Qt5BugsActivity( 8234): >>>>>>>>>> Qt5BugsActivity.onCreate <<<<<<<<<<
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/ic_ab_back_holo_light_am.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/sym_def_app_icon.png
      I/Qt ( 8234): qt start
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/scrubber_control_disabled_holo.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/scrubber_control_pressed_holo.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/scrubber_control_focused_holo.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/scrubber_control_normal_holo.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/text_select_handle_middle.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xhdpi-v4/btn_check_buttonless_on.png
      V/BitmapFactory( 8234): DecodeImagePath(decodeResourceStream3) : res/drawable-xhdpi-v4/btn_check_buttonless_off.png
      D/ ( 8234): (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment.
      I/Qt JAVA ( 8234): DEBUGGER: extra parameters: Bundle[

      Unknown macro: {debug_ping=true, gdbserver_socket=/data/data/org.qt5_bugs/debug-socket, qml_debug=true, gdbserver_command=/data/data/org.qt5_bugs/lib/libgdbserver.so --multi +/data/data/org.qt5_bugs/debug-socket, qmljsdebugger=port}

      ]
      I/Qt JAVA ( 8234): DEBUGGER: removing gdb socket /data/data/org.qt5_bugs/debug-socket
      I/Qt JAVA ( 8234): DEBUGGER: starting /data/data/org.qt5_bugs/lib/libgdbserver.so --multi +/data/data/org.qt5_bugs/debug-socket
      I/Qt JAVA ( 8234): DEBUGGER: gdbserver started
      I/Qt JAVA ( 8234): DEBUGGER: waiting for socket at /data/data/org.qt5_bugs/debug-socket, attempt 0
      I/Qt JAVA ( 8234): DEBUGGER: waiting for socket at /data/data/org.qt5_bugs/debug-socket, attempt 1
      I/Qt JAVA ( 8234): DEBUGGER: socket ok
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Debug socket accepted
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      Could not load shared library symbols for 124 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 ( 8234): DEBUGGER: Waiting for debug socket connect
      I/Qt JAVA ( 8234): DEBUGGER: go to sleep
      I/Qt JAVA ( 8234): DEBUGGER: Incoming socket OK
      I/Qt JAVA ( 8234): DEBUGGER: Got pid acknowledgment
      I/Qt JAVA ( 8234): DEBUGGER: ping not requested
      I/Qt JAVA ( 8234): DEBUGGER: pong not requested
      D/Activity( 8234): performCreate Call secproduct feature valuefalse
      D/Activity( 8234): performCreate Call debug elastic valuetrue
      D/OpenGLRenderer( 8234): Render dirty regions requested: true
      I/Adreno-EGL( 8234): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: ()
      I/Adreno-EGL( 8234): OpenGL ES Shader Compiler Version: E031.25.01.03
      I/Adreno-EGL( 8234): Build Date: 03/03/15 Tue
      I/Adreno-EGL( 8234): Local Branch: LA.BF.1.1_RB1_20150108_025_1077123_1158499
      I/Adreno-EGL( 8234): Remote Branch:
      I/Adreno-EGL( 8234): Local Patches:
      I/Adreno-EGL( 8234): Reconstruct Branch:
      I/OpenGLRenderer( 8234): Initialized EGL, version 1.4
      I/OpenGLRenderer( 8234): HWUI protection enabled for context , &this =0xa10090b0 ,&mEglDisplay = 1 , &mEglConfig = 8
      D/OpenGLRenderer( 8234): Enabling debug mode 0
      I/Timeline( 8234): Timeline: Activity_idle id: android.os.BinderProxy@8f9366c time:197697

      W/libandroid-custom-activity.so( 8234): (null):0 ((null)): QML Debugger: Unable to listen to port 45339.

      I/InputDispatcher( 894): Delivering touch to (8234): action: 0x0, toolType: 1
      D/ViewRootImpl( 8234): ViewPostImeInputStage ACTION_DOWN
      I/InputDispatcher( 894): Delivering touch to (8234): action: 0x1, toolType: 1
      I/InputDispatcher( 894): Delivering touch to (8234): action: 0x0, toolType: 1
      D/ViewRootImpl( 8234): ViewPostImeInputStage ACTION_DOWN
      I/InputDispatcher( 894): Delivering touch to (8234): action: 0x1, toolType: 1

      QtCreator messages on console:

      QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
      QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
      SOFT ASSERT: "d->remoteSetupState() == RemoteSetupNone || d->remoteSetupState() == RemoteSetupSucceeded" in file debuggerengine.cpp, line 791
      Debugger::Internal::GdbRemoteServerEngine(0x812b590, name = "GdbEngine") remoteSetupState 1
      SOFT ASSERT: "d->remoteSetupState() == RemoteSetupNone || d->remoteSetupState() == RemoteSetupSucceeded" in file debuggerengine.cpp, line 791
      Debugger::Internal::QmlCppEngine(0x7ea2b50, name = "QmlCppEngine") remoteSetupState 1
      SOFT ASSERT: "state() == EngineSetupOk" in file debuggerengine.cpp, line 802
      *** UNEXPECTED STATE TRANSITION:  Debugger::Internal::QmlEngine(0x7eaadf0, name = "QmlEngine") "State changed from EngineSetupRequested(1) to InferiorSetupRequested(4)"
      SOFT ASSERT: "false" in file gdb/gdbengine.cpp, line 1450
      UNEXPECTED STATE: 4  WANTED: 14 IN gdb/gdbengine.cpp:1453
      UNEXPECTED STATE: 4  WANTED: 14 IN gdb/gdbengine.cpp:1466
      UNEXPECTED STATE: 4  WANTED: 14 IN gdb/gdbengine.cpp:1538
      SOFT ASSERT: "state() == EngineSetupRequested || state() == EngineSetupFailed || state() == DebuggerFinished" in file debuggerengine.cpp, line 895
      Debugger::Internal::QmlCppEngine(0x7ea2b50, name = "QmlCppEngine") InferiorSetupRequested
      SOFT ASSERT: "state() == EngineSetupRequested" in file gdb/remotegdbserveradapter.cpp, line 479
      InferiorSetupOk
      SOFT ASSERT: "state() == EngineSetupRequested || state() == EngineSetupFailed || state() == DebuggerFinished" in file debuggerengine.cpp, line 895
      Debugger::Internal::GdbRemoteServerEngine(0x812b590, name = "GdbEngine") InferiorSetupOk
      SOFT ASSERT: "state() == EngineSetupRequested || state() == EngineSetupFailed || state() == DebuggerFinished" in file debuggerengine.cpp, line 895
      Debugger::Internal::QmlEngine(0x7eaadf0, name = "QmlEngine") InferiorSetupOk
      SOFT ASSERT: "state() == EngineSetupRequested" in file debuggerengine.cpp, line 793
      Debugger::Internal::QmlEngine(0x7eaadf0, name = "QmlEngine") InferiorSetupOk
      *** UNEXPECTED STATE TRANSITION:  Debugger::Internal::QmlEngine(0x7eaadf0, name = "QmlEngine") "State changed from InferiorSetupOk(6) to EngineSetupOk(3)"
      SOFT ASSERT: "state() == InferiorSetupOk" in file debuggerengine.cpp, line 840
      *** UNEXPECTED STATE TRANSITION:  Debugger::Internal::QmlEngine(0x7eaadf0, name = "QmlEngine") "State changed from EngineSetupOk(3) to EngineRunRequested(7)"
      

      Attachments

        Issue Links

          Activity

            People

              vikas Vikas Pachdha
              fabricesalvaire fabrice salvaire
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: