User forums > General (but related to Code::Blocks)
Code blocks using too much cpu
ramS:
I recently built code blocks from source(13.12) on a linux box(centos). Now when I load my project, code blocks is using too much cpu. The machine has 2 quad core cpus and I see two threads using 100% cpu. WHen I switched to the previous version (12-11-release8629) it behaves properly. Any ideas on what might be going on?
This is a 64bit build using wx2.8.12 and g++4.5.1.
Here is what I see on the terminal window
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/gcc-4.5.1/include/c++/4.5.1
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/gcc-4.5.1/include/c++/4.5.1/x86_64-unknown-linux-gnu
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/gcc-4.5.1/include/c++/4.5.1/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/gcc-4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/gcc-4.5.1/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/gcc-4.5.1/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): Adding three kind of files to batch-parser
NativeParser::DoFullParsing(): Add priority header file: '/usr/local/gcc4.5.1/include/c++/4.5.1/cstddef'
NativeParser::DoFullParsing(): Add priority header file: '/usr/local/gcc-4.5.1/include/c++/4.5.1/cstddef'
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/boost/config.hpp'
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/boost/filesystem/config.hpp'
NativeParser::DoFullParsing(): Add 5 priority file(s) for project '********'...
NativeParser::DoFullParsing(): Added 1629 header&source file(s) for project '****' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::CreateParser(): Finish creating a new parser for project 'xr-snap'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project '******'...
The Parser is still parsing files. > Reasons:
- still system priority headers to parse
- still need to mark files as local
- thread pool is not done yet
The Parser is still parsing files. > Reasons:
- still system priority headers to parse
- still need to mark files as local
- thread pool is not done yet
Thanks
Ram
ollydbg:
Definitely a bug in CodeCompletion Plugin, but I just don't know how to catch the bug. You can simple disable this plugin, but you also lose the feature it supplied. It is hard to produce a simple project which can cause such issue.
BTW: How long does the 100% CPU usage last?
ramS:
It goes on indefinitely. I have reverted back to version 12.11 for now.
MortenMacFly:
--- Quote from: ramS on January 21, 2014, 02:25:24 pm ---It goes on indefinitely. I have reverted back to version 12.11 for now.
--- End quote ---
It would be really nice if you could provide a minimal sample (a stripped version of your project?!) to reproduce...
Conker:
Hi.
I'm using version codeblocks 13.12 on windows and have issue with codecompletion plugin as well. Took me awhile to track this down to codecompletion, because I'm new to this IDE . It started as random crashes on opening a project and adding files to it. To the point of rendering the whole IDE completely unusable.
Attached file that locks up IDE every time on my system, just by opening it and browsing for a few sec, when codecompletion plugin is on. No need for projects, it happens all the time on this particular file.
Advice : Disable the plugin ,until its fixed .
Regards
Navigation
[0] Message Index
[#] Next page
Go to full version