Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator problems

QtCreator problems

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 3 Posters 2.9k 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.
  • T Offline
    T Offline
    tomique
    wrote on last edited by
    #1

    Hi,

    I've been experiencing problems with QtCreator lately. I had to reinstall my system after hdd failure, previously was using QtCreator 2.8.1 without much problems. I have GCC (for ARM) 4.7.1, gdb 7.5.

    Today I've installed latest stable 3.0.1 but debugging didn't work properly - locals window was empty, debugger was complaining about missing python binascii module. I've tried find solution for this without success. Then I've tried 3.1.81 but this one was was complaining about missing _struct module and debugging didn't work at all.

    Ok, it was time to rollback back to 2.8.1 which I knew worked previously. This time, QtCreator just crashed before launching the app on remote device with "[118892.853020] qtcreator[5324]: segfault at 0 ip 00007f832bdeb2c7 sp 00007fff508a6660 error 4 in libQtcSsh.so.1.0.0[7f832bca4000+21b000]". Tried to rollback even more to 2.8.0 but that one crashes as well, just sooner.

    Any ideas how to get QtCreator working again?

    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      did you only install the QtCreator - not the complete Qt framework?
      What's the system you are working with?
      Before installing e.g. 2.8.1, did you uninstall 3.0.1?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tomique
        wrote on last edited by
        #3

        The Qt libraries I'm building against are part of the ARM toolchain I'm using (version 4.8.2). I've also got another 4.8.2 installed from deb repositories (for x86_64) but those are not being used in my project. I'm using 64bit Debian.

        The QtCreator 3 was installed as part of whole framework (with Qt 5.2). I've uninstalled it but it might have been after I've installed the 2.8.1. IMHO this shouldn't make any difference as the libqtcssh is separate for each QtCreator.

        Thanks

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on last edited by
          #4

          With your 64 Debian it should work perfectly.
          I had the problem with the missing locals, too, but that was solved with 3.0.1.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tomique
            wrote on last edited by
            #5

            Well, not for me, I've tried both 3.0.1 and 3.1 and neither of them showed me locals (complaining about missing python modules as mentioned in my original question).

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on last edited by
              #6

              At the moment, I have no idea, but perhaps we should look at the python error messages.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andreyc
                wrote on last edited by
                #7

                What version of python do you have?
                "This doc":https://qt-project.org/doc/qtcreator-3.0/creator-debugger-engines.html#supported-gdb-versions says that gdb does not support python-3 and without python support you need to build "Debugging Helpers Based on C++":https://qt-project.org/doc/qtcreator-3.0/creator-debugging-helpers.html#debugging-helpers-based-on-c

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tomique
                  wrote on last edited by
                  #8

                  It's using python 2.6. I've added some commands to debugger after it attaches to the device:

                  &"python import sys\n"

                  233^done

                  &"python print sys.version_info\n"
                  ~"(2, 6, 6, 'final', 0)\n"
                  234^done

                  &"python print sys.path\n"
                  ~"['/usr/local/arm_a9/share/gdb/python', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux3', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.6']\n"
                  235^done

                  &"python import binascii\n"
                  &"Traceback (most recent call last):\n"
                  &" File "<string>", line 1, in <module>\n"
                  &"ImportError: No module named binascii\n"
                  &"Error while executing Python code.\n"
                  236^error,msg="Error while executing Python code."

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andreyc
                    wrote on last edited by
                    #9

                    binascii is a builtin module of python.
                    But I'm not sure if it is true for ARM.

                    What if you will switch to C++ debug helper.

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tomique
                      wrote on last edited by
                      #10

                      Hm, you might be right. So the GDB was built against specific version of Python. That one has then to be used with GDB, correct?
                      I do have the correct python but I don't know how to tell QtCreator to use it... Any ideas?

                      1 Reply Last reply
                      0

                      • Login

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