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. Launching Debugge error
QtWS25 Last Chance

Launching Debugge error

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 5 Posters 1.1k 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.
  • V Offline
    V Offline
    Vdeilae
    wrote on last edited by
    #1

    I try to build project,when i clicked "start debugging of startup project ", Compile output says:

    12:27:52: Running steps for project untitled3...
    12:27:52: Starting: "C:\QT\5.15.2\Tools\CMake_64\bin\cmake.exe" --build D:/Program/QT/untitled3/build/Desktop_Qt_5_15_2_MinGW_64_bit-Debug --target all
    ninja: no work to do.
    12:27:52: The process "C:\QT\5.15.2\Tools\CMake_64\bin\cmake.exe" exited normally.
    12:27:52: Elapsed time: 00:00.
    
    

    Global Debugger Log say:

    >&"python from gdbbridge import *\n"
    >&"Traceback (most recent call last):\n"
    >&"  File \"<string>\", line 1, in <module>\n"
    >&"  File \"C:/QT/5.15.2/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 16, in <module>\n"
    >&"    from dumper import DumperBase, Children, TopLevelItem\n"
    >&"  File \"C:/QT/5.15.2/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 130, in <module>\n"
    >&"    class DumperBase():\n"
    >&"  File \"C:/QT/5.15.2/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 3729, in DumperBase\n"
    >&"    @functools.lru_cache(maxsize = None)\n"
    >&"AttributeError: 'module' object has no attribute 'lru_cache'\n"
    >&"Error while executing Python code.\n"
    >166^error,msg="Error while executing Python code."
    
    >&"python theDumper.loadDumpers({\"token\":167})\n"
    >&"Traceback (most recent call last):\n"
    >&"  File \"<string>\", line 1, in <module>\n"
    >&"NameError: name 'theDumper' is not defined\n"
    >&"Error while executing Python code.\n"
    >167^error,msg="Error while executing Python code."
    d[GDB] NOTE: ENGINE SETUP FAILED
    d[GDB] State changed from EngineSetupRequested(1) to EngineSetupFailed(2)
    <Debugging has failed.
    d[GDB] State changed from EngineSetupFailed(2) to DebuggerFinished(16)
    

    But if i click Run ,it can still running!btw, I install python 3.8.10 in my pc,How can i solve the strange problem?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vdeilae
      wrote on last edited by
      #2

      I use the latest QTCreater 14,if i use QT5.15.2 WinGW 8 Verson,this wield bug happens,but if i use other kit ,like QT6.5.3,it all runs good!

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vdeilae
        wrote on last edited by
        #3

        OK,I am sure itsQT14's fault.The inner gdb can't work with QT5 Project.wtf!I install QTCreater 13 and lunch it,link Qt5.15.2 Path,Guess what?It all works good!Don't use QTCreater 14 with QT5 Project!
        https://download.qt.io/official_releases/qtcreator/13.0/13.0.2/

        Axel SpoerlA 1 Reply Last reply
        1
        • V Vdeilae

          OK,I am sure itsQT14's fault.The inner gdb can't work with QT5 Project.wtf!I install QTCreater 13 and lunch it,link Qt5.15.2 Path,Guess what?It all works good!Don't use QTCreater 14 with QT5 Project!
          https://download.qt.io/official_releases/qtcreator/13.0/13.0.2/

          Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @Vdeilae said in Launching Debugge error:

          I am sure itsQT14

          Qt 5.15.2 is outdated, MinGW 8 isn't supported any more.
          See here for supported platforms.

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          0
          • andrA Offline
            andrA Offline
            andr
            wrote on last edited by
            #5

            You could try the following workaround: rename Creator's share/qtcreator/debugger directory into, say share/qtcreator/debugger-orig, and the rename share/qtcreator/debugger-with-python2 into share/qtcreator/debugger .

            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #6

              I've made a screencast showcasing the issue with Qt 5.15.2 MinGW x64 and Qt Creator 14. And also showing how to use a newer debugger and have no issues:

              alt text

              Make sure you have the MinGW 11.2.0 installed via Qt SDK, then clone the Qt 5.15.2 Kit and change the debugger. Problem solved.

              1 Reply Last reply
              1
              • V Vdeilae has marked this topic as solved on
              • cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on last edited by
                #7

                Alternatively you can get the GDB 11.2.0 from MinGW 11.2.0, which uses Python 3, and extract it on top your MinGW 8.1 installation.

                I've packaged at https://bugreports.qt.io/browse/QTBUG-128398:

                • https://bugreports.qt.io/secure/attachment/164356/gdb-11.2.0-x86.7z
                • https://bugreports.qt.io/secure/attachment/164357/gdb-11.2.0-x86_64.7z
                1 Reply Last reply
                3
                • aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @cristian-adam Thanks, this looks like the preferred solution, as no other changes to the developed program are needed. E.g. newer compilers or runtime libraries can have unwanted side-effects.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  1

                  • Login

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