Bug #18755 2012-10-16 12:19

rickg22

CB hangs with high CPU usage when opening some projects...

I have a PHP project under a WAMP directory (with a symlink on c:\htdocs for easy access) under Windows 7 32 bit.

I noticed that when I open this particular project, Code::Blocks takes 22 seconds to open the project. Even when I add a file, it's painfully slow.

While this project is loaded, loading even trivial projects (like a hello world located elsewhere) takes 17 seconds.

It happened with the 8248 nightly, but also with the October 7 nightly 8438 and with 8455 (latest available at the time of this report). I can't replicate the bug at work, so it might be a rare case. I'll attach some files to add more info.

Category
Application::Error
Group
 
Status
Open
Close date
 
Assigned to
 
rickg22 2012-10-16 12:28
I have Code Completion disabled, and here's the debug log:

Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
Abbreviations: loaded
AStylePlugin: loaded
Autosave: loaded
AutoVersioning: loaded
BrowseTracker: loaded
BYOGames: loaded
CB_Koders: loaded
Cccc: loaded
ClassWizard: loaded
CodeCompletion: loaded
CodeSnippets: loaded
CodeStat: loaded
Compiler: loaded
copystrings: loaded
CppCheck: loaded
CppSmartIndent: loaded
Cscope: loaded
Debugger: loaded
FilesExtensionHandler: loaded
DevPakUpdater: loaded
DoxyBlocks: loaded
cbDragScroll: loaded
EditorConfig: loaded
EditorTweaks: loaded
EnvVars: loaded
Exporter: loaded
FileManager: loaded
FortranSmartIndent: loaded
HDLSmartIndent: loaded
HeaderFixup: loaded
HelpPlugin: loaded
HexEditor: loaded
IncrementalSearch: loaded
cbKeyBinder: loaded
lib_finder: loaded
LuaSmartIndent: loaded
MouseSap: loaded
NassiShneidermanPlugin: loaded
OpenFilesList: loaded
PascalSmartIndent: loaded
Profiler: loaded
ProjectsImporter: loaded
PythonSmartIndent: loaded
RegExTestbed: loaded
ReopenEditor: loaded
rndgen: loaded
ScriptedWizard: loaded
SpellChecker: loaded
SymTab: loaded
ThreadSearch: loaded
ToDoList: loaded
ToolsPlus: loaded
wxSmith: loaded
wxSmithMime: loaded
wxSmithAui: loaded
wxSmithContribItems: loaded
XMLSmartIndent: loaded
WindowsXPLookNFeel: loaded
Source code formatter (AStyle) plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Microsoft Visual C++ Toolkit 2003"
Added compiler "Microsoft Visual C++ 2005/2008"
Added compiler "Microsoft Visual C++ 2010"
Added compiler "Borland C++ Compiler (5.5, 5.82)"
Added compiler "Digital Mars Compiler"
Added compiler "OpenWatcom (W32) Compiler"
Added compiler "GNU GCC Compiler for MSP430"
Added compiler "Cygwin GCC"
Added compiler "LCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Compiler plugin activated
Files extension handler plugin activated
DevPak updater/installer plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks plugin activated
EnvVars: Obtained 'default' as active envvar set from config.
EnvVars: Active envvar set is 'default', config path '/sets/default'.
EnvVars: Searching for envvars in path '/sets/default'.
EnvVars: Read 0/0 envvars in path '/sets/default'.
Environment variables plugin activated
Source Exporter plugin activated
FileManager plugin activated
Help plugin plugin activated
HexEditor plugin activated
Keyboard shortcuts plugin activated
Open files list plugin activated
Foreign projects importer plugin activated
Regular expressions testbed plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'Direct/X project'
Project wizard added for 'Dynamic Link Library'
Project wizard added for 'Kernel Mode Driver'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'SmartWin project'
Project wizard added for 'Static library'
Project wizard added for 'STL port application'
Project wizard added for 'Shared library'
Project wizard added for 'Win32 GUI project'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'Dynamic Link Library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
Symbol Table Plugin plugin activated
Todo List plugin activated
XMLSmartIndent plugin activated
Windows XP Look'n'Feel plugin activated
Loading toolbar...
Initializing plugins...
Loading project file...
Parsing project file...
Loading target Release
Loading project files...
2121 files loaded
Done loading project in 1509ms
Project's base path: C:\htdocs\SIG\SGPG\
Project's common toplevel path: C:\htdocs\SIG\SGPG\
Text seems to be pure ASCII!
We use user specified encoding: Unicode 8 bit (UTF-8) (ID: 41)
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Editor Open
Project data set for C:\htdocs\SIG\SGPG\js\app\common\commonfuncs.js
Top Editor: C:\htdocs\SIG\SGPG\js\app\common\commonfuncs.js
*** THIS IS WHERE IT STARTS TO HANG ***
EnvVars: Obtained 'default' as active envvar set from config.
EnvVars: Active envvar set is 'default', config path '/sets/default'.
EnvVars: Searching for envvars in path '/sets/default'.
EnvVars: Read 0/0 envvars in path '/sets/default'.
mortenmacfly 2012-10-16 12:37

Can you compare your C::B config (file) and/or path's setup with the one from "work"?

mortenmacfly 2012-10-16 12:38

...an what happens if you disable all plugins but the compiler plugin?

Also, what if you just disable the EnvVars plugin? (Just to double-check, but this shouldn't actually cause this slow-down.)

rickg22 2012-10-16 12:52

All plugins disabled (still loaded, tho), only compiler plugin remains. Still takes 22 secs to load. It's in the main code, I'm afraid...

rickg22 2012-10-16 12:53
rickg22 2012-10-16 13:00

> Can you compare your C::B config (file) and/or path's setup with the one from "work"?

Sure, just tell me what files to attach and I'll attach them on the thread.

mortenmacfly 2012-10-16 13:06

I meant the default.conf files.

(Maybe you can compare yourself the editor related sections before...)

rickg22 2012-10-16 13:11
mortenmacfly 2012-10-18 10:44

Seems resolved - feel free to close it.