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. Using GDB pretty printers in QtCreator hangs GDB.
Forum Update on Monday, May 27th 2025

Using GDB pretty printers in QtCreator hangs GDB.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
9 Posts 3 Posters 1.2k 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.
  • L Offline
    L Offline
    limepixl
    wrote on last edited by
    #1

    Hello.

    I've noticed that when enabling GDB pretty printers in QtCreator, and then starting a debugging session, there is a loading icon on the right panel where all the local variables are shown, and stepping over/in doesn't work. When looking into a resource monitor, GDB can be seen taking up a lot of memory, which is increasing. After some time all of the available RAM will be consumed by GDB and the system will hang.

    This doesn't happen when pretty printers are disabled, and I can debug juts fine.

    Does anyone know why this would happen?
    Thank you in advance!

    aha_1980A 1 Reply Last reply
    0
    • L limepixl

      Hello.

      I've noticed that when enabling GDB pretty printers in QtCreator, and then starting a debugging session, there is a loading icon on the right panel where all the local variables are shown, and stepping over/in doesn't work. When looking into a resource monitor, GDB can be seen taking up a lot of memory, which is increasing. After some time all of the available RAM will be consumed by GDB and the system will hang.

      This doesn't happen when pretty printers are disabled, and I can debug juts fine.

      Does anyone know why this would happen?
      Thank you in advance!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @limepixl, welcome!

      • Which operating system is that?
      • Which Qt Creator version?
      • Which GDB version?

      Regards

      Qt has to stay free or it will die.

      L 1 Reply Last reply
      0
      • aha_1980A aha_1980

        Hi @limepixl, welcome!

        • Which operating system is that?
        • Which Qt Creator version?
        • Which GDB version?

        Regards

        L Offline
        L Offline
        limepixl
        wrote on last edited by limepixl
        #3

        @aha_1980

        I am using Manjaro KDE, here is the exact version.

        0_1567085878076_30a982a5-3b9a-4dce-b58b-40b8e5f6dcbd-image.png

        I'm using GDB 8.3, along with QtCreator 4.9.2, based on Qt 5.13.0.
        The project I'm testing this with is a normal CMake project.

        aha_1980A 1 Reply Last reply
        0
        • L limepixl

          @aha_1980

          I am using Manjaro KDE, here is the exact version.

          0_1567085878076_30a982a5-3b9a-4dce-b58b-40b8e5f6dcbd-image.png

          I'm using GDB 8.3, along with QtCreator 4.9.2, based on Qt 5.13.0.
          The project I'm testing this with is a normal CMake project.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @limepixl Ok, just to be sure, you are talking about "Load system GDB pretty printers" from Tools > Options > Debuggers?

          For me, enabling that option works, but I only have GDB 8.1.0 from Ubuntu. Maybe that's that difference?

          Regards

          Qt has to stay free or it will die.

          L 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @limepixl Ok, just to be sure, you are talking about "Load system GDB pretty printers" from Tools > Options > Debuggers?

            For me, enabling that option works, but I only have GDB 8.1.0 from Ubuntu. Maybe that's that difference?

            Regards

            L Offline
            L Offline
            limepixl
            wrote on last edited by
            #5

            @aha_1980

            Yes, my issue is with that option.
            Hmm, I can try downgrading gdb and testing if it works with version 8.1.0. I'll get back to you on this

            1 Reply Last reply
            0
            • L Offline
              L Offline
              limepixl
              wrote on last edited by
              #6

              Due to me being on a derivative of ArchLinux, I am only able to downgrade to GDB 8.2.1. After downgrading this issue still persists.

              I guess without the ability to downgrade any further (because of possible dependency breakage), I'll leave the option turned off for now.

              aha_1980A 1 Reply Last reply
              0
              • L limepixl

                Due to me being on a derivative of ArchLinux, I am only able to downgrade to GDB 8.2.1. After downgrading this issue still persists.

                I guess without the ability to downgrade any further (because of possible dependency breakage), I'll leave the option turned off for now.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @limepixl

                Now tracked as QTCREATORBUG-22887

                I've linked it for you, so please mark this topic as SOLVED now.

                Regards

                Qt has to stay free or it will die.

                1 Reply Last reply
                1
                • nooneN Offline
                  nooneN Offline
                  noone
                  wrote on last edited by
                  #8

                  Causing on ArchLinux too. I have 8GB RAM so I don't even have enough time to kill gdb

                  aha_1980A 1 Reply Last reply
                  0
                  • nooneN noone

                    Causing on ArchLinux too. I have 8GB RAM so I don't even have enough time to kill gdb

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @noone judging from the bugreport, it's fixed in 4.11.

                    You can install beta versions with online installer/MaintenanceTool

                    Regards

                    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