August 23, 2011

Aleksei Mikhailichenko Aleksei Mikhailichenko
Lab Rat
50 posts

[Solved] Qt Creator 2.2.84 memory consumption

 

Hello. From 2.3 beta version of Qt Creator I encountered a problem of large memory consumption. For 4-5 hours of the work the memory consumption increases to 1.5-2 GB and I need to restart Creator for continue. Is it just my case, or this is a common problem?

OS: Windows 7 64 bit

Process Explorer screenshot

7 replies

August 24, 2011

Andre Andre
Robot Herder
6296 posts

Perhaps you should file a bug report. I leave my Creator instance running for days on end without any problems though.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

August 24, 2011

Aleksei Mikhailichenko Aleksei Mikhailichenko
Lab Rat
50 posts

For my version, I found that the main memory usage occurs when you use the key shortcut Ctrl+Space. I can make a bug request if this problem can be reproduced from someone else.

August 24, 2011

moellney moellney
Lab Rat
16 posts

I have a similar problem … can you check if it comes from including <Windows.h>?

In my case I could speed up code completion tremendously when banning this include to the *.cpp files.

August 25, 2011

Tobias Hunger Tobias Hunger
Area 51 Engineer
3383 posts

Qt Creator needs a lot of memory to keep all the information stored in all the headers and files used available. Depending on the size of the projects (incl. the headers you include in it) that can be a lot of memory.

Does the memory consumption increase over time without you opening projects? That would point to a memory leak somewhere.

moeliney: The time it takes to find all possible completions depends on the number of files included (directly or by other include files). So yes, making sure headers are only included where necessary does speed up Qt Creators code completion. It also reduces compile times by the way, sometimes rather drastically.

August 25, 2011

Aleksei Mikhailichenko Aleksei Mikhailichenko
Lab Rat
50 posts

The memory consumption increase with only one opened project during coding. The same project at 2.2 Qt creator does not lead to a permanent memory consumption.

August 26, 2011

Tobias Hunger Tobias Hunger
Area 51 Engineer
3383 posts

Please report a bug [bugreports.qt.nokia.com] then. Is the project that you see the issue with available to the public?

September 8, 2011

Aleksei Mikhailichenko Aleksei Mikhailichenko
Lab Rat
50 posts

https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5947

The fix is available in master.

 
  ‹‹ qmake with TEMPLATE=subdirs and MSVC      [solved] Creator detecting a WinCE ABI ››

You must log in to post a reply. Not a member yet? Register here!