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 Updated to NodeBB v4.3 + New Features

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 29 Aug 2019, 13:32 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!

    A 1 Reply Last reply 29 Aug 2019, 13:34
    0
    • L limepixl
      29 Aug 2019, 13:32

      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!

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 29 Aug 2019, 13:34 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 29 Aug 2019, 13:42
      0
      • A aha_1980
        29 Aug 2019, 13:34

        Hi @limepixl, welcome!

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

        Regards

        L Offline
        L Offline
        limepixl
        wrote on 29 Aug 2019, 13:42 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.

        A 1 Reply Last reply 29 Aug 2019, 13:49
        0
        • L limepixl
          29 Aug 2019, 13:42

          @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.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 29 Aug 2019, 13:49 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 29 Aug 2019, 13:55
          0
          • A aha_1980
            29 Aug 2019, 13:49

            @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 29 Aug 2019, 13:55 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 29 Aug 2019, 14:19 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.

              A 1 Reply Last reply 30 Aug 2019, 06:15
              0
              • L limepixl
                29 Aug 2019, 14:19

                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.

                A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 30 Aug 2019, 06:15 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
                • N Offline
                  N Offline
                  noone
                  wrote on 28 Nov 2019, 19:11 last edited by
                  #8

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

                  A 1 Reply Last reply 28 Nov 2019, 19:23
                  0
                  • N noone
                    28 Nov 2019, 19:11

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

                    A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 28 Nov 2019, 19:23 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