Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Bug in Code Comletion plugin (CPU overload).
private_joker:
How to reproduce:
1. Create new wxWidget project, with Microsoft Visual C++ 2005/2008 compiller option.
2. Fill all wizzard forms.
3. Open Task Manager and you see that CPU overload 50% (on Core 2 Duo) all time(!).
Additional info:
a) Software
- Code::Blocks SVN Rev. 6065 compiled this morning by myself.
- Visual C++ 2005 Express Edition.
- Microsoft Platform SDK for Windows Server 2003 SP1.
- Windows XP SP3
b) Settings in Code::Blocks
1) Settings->Editor->Code Completion->C/C++ Parser and check "Follow GLOBAL icludes"
2) Search directories (Project build options):
Compiler:
c:\Program Files\Microsoft Platform SDK\Include
c:\Program Files\Microsoft Visual Studio 8\VC\include
$(#wx)\include
$(#wx)\contrib\include
Resource compiler:
c:\Program Files\Microsoft Platform SDK\Include
I'm absolutely sure then this bug in CC, cause when I'm:
Switch to MinGW Toolchain || uncheck "Follow GLOBAL icludes" || Disable CC plugin at all || use oldest 8.02 Code::Blocks version or november's build founded in "Nightly" subforum
this bug isn't reproduce.
private_joker:
Ooops, it seems wrong sub forum. Moderators, please move it to right place.
ollydbg:
I have some interest to find the bug. It seems you have enough steps to produce the hang bug, but I don't have Visual C++ installed in my computer.( I only use TDM-GCC, it is a MinGW Compiler).
I don't know how to help you(I don't want to install a new,big compiler...). :(
chikigai:
I'm experiencing a similar behavior since using the latest Nightly Build SVN Rev 6080.
The CPU Usage hits 100% (most of which is used by CB) when I open a workspace with several inter-dependent projects.
Here is what I did:
1. Open a workspace with several inter-dependent projects (5 to be exact)
- CPU Usage hits 100% (CC kicking in)
- CPU Usage stays at 100% even after several minutes
- Memory consumption of CB does not seem to change (CC stuck in infinite loop?)
2. Closed workspace
- CPU Usage stays at 100%
3. Disabled CC through Plugin Manager
- CPU Usage stays at 100%
4. Closed CB
- CPU Usage stays at 100% for a short period of time and the CB process terminates
Some other information:
- The next time I opened the workspace with CC disabled to begin with, the issue did not take place.
- I tried the above steps with a fresh default config file but the results were the same.
- The issue did not take place with a workspace which contained a single project with a fairly large number of source files
- The workspace causing issues with the current Nightly Build has no issues with the previous Nightly Build SVN Rev 6023.
ollydbg:
I personally suspect this is a problem related to "real time parse" since rev 6045.
I have reported a similar problem, see It seems CB will hang about 10+ seconds to load the codeblocks.cbp project
I will discuss with blueshake about this issue. :D
Edit
One idea: the real time parse should be executed after the "batch parsing"(parsing the whole files in the workplace) finished.
Navigation
[0] Message Index
[#] Next page
Go to full version