I use Code::Blocks version 12.11.
When I start C::B from the console and then close C::B again, I get the following output on the console:
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
wxSmithContribItems: loaded
SmartIndentPython: loaded
wxSmithAui: loaded
EditorTweaks: loaded
CodeStat: loaded
lib_finder: loaded
SymTab: loaded
SmartIndentHDL: loaded
FileManager: loaded
SmartIndentXML: loaded
Compiler: loaded
HexEditor: loaded
EnvVars: loaded
cbKeyBinder: loaded
EditorConfig: loaded
Valgrind: loaded
SmartIndentFortran: loaded
DoxyBlocks: loaded
HelpPlugin: loaded
ClassWizard: loaded
IncrementalSearch: loaded
FilesExtensionHandler: loaded
SmartIndentLua: loaded
BrowseTracker: loaded
ScriptedWizard: loaded
cbDragScroll: loaded
ReopenEditor: loaded
SmartIndentPascal: loaded
Profiler: loaded
OpenFilesList: loaded
copystrings: loaded
MouseSap: loaded
SmartIndentCpp: loaded
SpellChecker: loaded
Cccc: loaded
NassiShneidermanPlugin: loaded
CodeCompletion: loaded
CB_Koders: loaded
CppCheck: loaded
ToolsPlus: loaded
HeaderFixup: loaded
AutoVersioning: loaded
wxSmith: loaded
wxSmithMime: loaded
BYOGames: loaded
RegExTestbed: loaded
Abbreviations: loaded
ToDoList: loaded
Exporter: loaded
Autosave: loaded
Cscope: loaded
ThreadSearch: loaded
Debugger: loaded
ProjectsImporter: loaded
CodeSnippets: loaded
AStylePlugin: loaded
wxSmith - Contrib Items plugin activated
SmartIndentPython plugin activated
wxSmith - Aui plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks plugin activated
Code statistics plugin activated
Library finder plugin activated
Symbol Table Plugin plugin activated
SmartIndentHDL plugin activated
failed to find gam_server
FileManager plugin activated
SmartIndentXML plugin activated
Added compiler "GNU GCC 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
HexEditor plugin activated
Environment variables plugin activated
Keyboard shortcuts plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Valgrind plugin activated
SmartIndentFortran plugin activated
DoxyBlocks plugin activated
Help plugin plugin activated
Class wizard plugin activated
IncrementalSearch plugin activated
Files extension handler plugin activated
SmartIndentLua plugin activated
BrowseTracker 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 '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 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static 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
DragScroll plugin activated
ReopenEditor plugin activated
SmartIndentPascal plugin activated
Code profiler plugin activated
Open files list plugin activated
Copy Strings to clipboard plugin activated
MouseSap plugin activated
SmartIndentCpp plugin activated
(codeblocks:24666): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 18 and height -22
Failed to connect to socket /tmp/fam-jonas-
SpellChecker plugin activated
Cccc plugin activated
NassiShneidermanPlugin plugin activated
Code completion plugin activated
Koders query plugin activated
CppCheck plugin activated
ToolsPlus plugin activated
Header Fixup plugin activated
AutoVersioning plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
BYO Games plugin activated
Regular expressions testbed plugin activated
Abbreviations plugin activated
Todo List plugin activated
Source Exporter plugin activated
Autosave plugin activated
Cscope plugin activated
ThreadSearch plugin activated
Debugger plugin activated
Foreign projects importer plugin activated
Code snippets plugin activated
Source code formatter (AStyle) plugin activated
(codeblocks:24666): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:24666): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:24666): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:24666): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
Loading toolbar...
No active project available.
Initializing plugins...
KeyBinder failed UpdateById on[1017][Cu_t]
KeyBinder failed UpdateById on[1016][_Copy]
KeyBinder failed UpdateById on[1018][_Paste]
Updating class browser...
Class browser updated.
Deinitializing plugins...
(codeblocks:24666): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkRadioMenuItem'
(codeblocks:24666): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:24666): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkRadioMenuItem'
(codeblocks:24666): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
When I start C::B with "sudo codeblocks" in the console, I get the following output:
Error: Unable to initialize gtk, is DISPLAY set properly?
(I use OpenSuse with KDE-Desktop)
But when I start a root shell and then type "codeblocks" to start C::B, it starts correctly (without the error above), I can change any settings and they were really saved. When I then close C::B (with the code completion plugin enabled or not), the process is terminated correctly.
It's a strange behaviour of C::B...