Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Using GDB pretty printers in QtCreator hangs GDB.
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?
limepixl last edited by limepixl
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?
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
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.
noone last edited by
Causing on ArchLinux too. I have 8GB RAM so I don't even have enough time to kill gdb
@noone judging from the bugreport, it's fixed in 4.11.
You can install beta versions with online installer/MaintenanceTool