Bug 68164

Summary: code completion hangs when pressing CTRL-SPACE
Product: [Applications] kdevelop Reporter: Jay <joerg>
Component: Code completionAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version: 3.0.0b1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jay 2003-11-14 01:58:01 UTC
Version:           3.0.0b1 (using KDE 3.1.93 (CVS >= 20031028), Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
OS:          Linux (i686) release 2.4.20-gentoo-r8

Playing around in CppCodeCompletion.cpp I pressed CTRL-SPACE just after a ; on the end of a line. I don't know what it was trying to do, but it did hang for half a minute constantly accessing the HD and allocating memory on the way.
Comment 1 Jens Dagerbo 2003-11-14 02:07:27 UTC
Unfortunately, this report doesn't leave us with much to go on (as I'm sure you're aware of). You didn't happen to get any debug trace in a log file by any chance? :)
Comment 2 Amilcar do Carmo Lucas 2003-11-25 15:09:44 UTC
You seam to invoke code completion on the global namespace, so the result is
it neads to search the entire code for all the possible combinations and that can take a while. How fast is your computer? How much ram does it have?

Does it also "hang" when you invoke code completion after typing a couple of chars (to narrow down the search) ?
Comment 3 Jay 2003-11-26 03:02:08 UTC
Subject: Re:  code completion hangs when pressing CTRL-SPACE

No it hangs only on global namespace, but that happens to me occasionally by 
accident. System is 1,4 GhZ Athlon TBird with 512 MB.

Comment 4 Amilcar do Carmo Lucas 2003-11-29 20:17:01 UTC
That is not hang, that is normal in big projects.