Using GDB pretty printers in QtCreator hangs GDB.
-
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! -
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! -
Hi @limepixl, welcome!
- Which operating system is that?
- Which Qt Creator version?
- Which GDB version?
Regards
-
I am using Manjaro KDE, here is the exact version.
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.@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
-
@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
-
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.
-
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.
Now tracked as QTCREATORBUG-22887
I've linked it for you, so please mark this topic as SOLVED now.
Regards