Results 1 to 6 of 6

Thread: QtCreator slow

  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QtCreator slow

    Hello,

    I have a strange problem and maybe some one found a solution for this one.
    Basically QtCreator "hangs" on me during various tasks. Depending on the code length, task that I perform (i.e. "request" class list of member functions typing ./-> in code - the list that's pop-up) or simply randomly I can see the QtCreator does something in "background" and my CPU readings goes to 50% - 90% (dual core machine). During that times QtCreator freezes and nothing can be done. I know that there is a lot that's going in the background but no so much to hangs app.

    Hangs, depending on the situation, last from 1sec to 10+sec.

    Spec:
    OS: Windows XP Sp3
    CPU: AMD X2 4200+
    Mem: 3GB

    QtCreator: 2.7.2 based on Qt 5.1.0 - I did got similar situation on 2.7.0 based on Qt 5.0.2, oddly this didn't happened in Qt 4.x (at least not is such scale)

    Any suggestion, besides buying new CPU , are more then welcome.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtCreator slow

    You can try upgrading QtCreator. However it would be more useful if you tried to find a pattern where such hangs occur. Also you could scan your disk for errors, a hanging issue can be the result of inability to read some sector on disk.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QtCreator slow

    Another reason for hangs, at least with auto-complete functionality can be the including of more that is needed, like for example the "module" include, i remember that i advised someone to include only the headers that he needs and those hangs were fixed, so start with Wysota's advice and if the disk is ok try to get a pattern for the hangs and to check your code for unnecessary includes (don't include whole Qt modules and also use forward declaration everywhere is possible).

  4. The following user says thank you to Zlatomir for this useful post:

    Talei (9th June 2013)

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtCreator slow

    I think indexing is done in a separate thread so it shouldn't cause the whole application to hang.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. The following user says thank you to wysota for this useful post:

    Talei (9th June 2013)

  7. #5
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QtCreator slow

    Sorry that my question was vague.

    Situation is that I have like 50 classes project, and it's growing. I always include only necessary Qt classes, so there is no "#include <QtGui>", but because I have 50 classes the slowdown that I was experiencing was mostly on top level classes that include some of the smaller classes. These classes also include something, not much, but I did found out hard way that's to much to handle by my current CPU.

    Hangs was when i.e. I hovered mouse over class member or moved there text pointer / indicator, with the auto completion (that was just ...) or with object member po-pup window. So QtCreator probably parsed out all includes and of course their children and hence slowdown.

    Using forward declaration whenever I could solved the problem.

    Note: Compilation time decreased from (around) 1 min 2sec to 52 sec. Not much but better then was previously. Only drawback is no more: http://xkcd.com/303/

    Thank You for the answer.

    PS. HDD is of course ok.
    Last edited by Talei; 9th June 2013 at 23:23.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  8. #6
    Join Date
    Jul 2013
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: QtCreator slow

    I don't understand your information.Please explaine your topic clearly.

Similar Threads

  1. Very slow startup by the first run
    By denizlitr in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 2nd November 2016, 07:30
  2. Qt goes slow?
    By Cucus in forum Qt Programming
    Replies: 2
    Last Post: 20th July 2011, 04:43
  3. QtCreator 2.0 crashes application working in QtCreator 1.3
    By been_1990 in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2010, 12:58
  4. Replies: 1
    Last Post: 10th February 2010, 07:28
  5. Spectrogram too slow
    By a_kaa in forum Qwt
    Replies: 2
    Last Post: 9th January 2009, 16:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.