Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.1.0
-
None
-
Windows 8 64 bit, Qt 5.1.0, MinGW 4.8 32 bit
Windows 7 64 bit, Qt 5.1.0, MinGW 4.8 32 bit
Ubuntu 12.04 64 bit, Qt 5.1.0, gcc 4.6.3
Description
When using QGLWidget::renderText function lot's of memory gets lost.
The first time this issue occured was on a big project. There I have 6 QGLWidget's which show a 2D OpenGL interface. After commenting out different code fragments, I could bring it down to this function. The two attached screenshots are from an analysis of the original project.
I also attached a simple Demo app, where you can spawn widgets by pressing a button. You will see with one or two widgets, the memory will grow by a few kilobytes per second. But if you have six widgets (like I have in my project), it's nearly 10MB per second.
Attachments
For Gerrit Dashboard: QTBUG-32792 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
65638,2 | Fix memory leaks in QGLWidget::renderText and the FT font engine | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
65642,1 | Fix a memory leak in QGLWidget::renderText | stable | qt/qtbase | Status: ABANDONED | 0 | 0 |
65672,2 | Fix a memory leak in QGLWidget::renderText | dev | qt/qtbase | Status: MERGED | +2 | 0 |
65694,1 | Fix memory leaks in the FT font engine | dev | qt/qtbase | Status: MERGED | +2 | 0 |
107890,5 | [QFontEngineFT] Fix memory leaks and possible double deletions | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |