Code::Blocks C/C++ IDE v20.03 Does Not Work On Tumbleweed?

Hi,

I installed Code::Blocks version 20.03 from below:
https://software.opensuse.org/package/codeblocks
When I run Code::Blocks in terminal I get an error and it does not work:

jlp@SortaFastDesktop:~> codeblocks
Starting Code::Blocks Release 20.03  rev 11997 Apr 12 2020, 00:00:00 - wx3.0.4 - gcc 9.3.1 (Linux, unicode) - 64 bit
Manager initialized
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
EditorConfig: loaded
ProjectOptionsManipulator: loaded
Autosave: loaded
ClassWizard: loaded
CodeCompletion: loaded
Compiler: loaded
copystrings: loaded
Debugger: loaded
FilesExtensionHandler: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
ProjectsImporter: loaded
rndgen: loaded
ScriptedWizard: loaded
ToDoList: loaded
AStylePlugin: loaded
AutoVersioning: loaded
BrowseTracker: loaded
Cccc: loaded
CppCheck: loaded
Cscope: loaded
DoxyBlocks: loaded
EditorTweaks: loaded
FileManager: loaded
HexEditor: loaded
IncrementalSearch: loaded
MouseSap: loaded
NassiShneidermanPlugin: loaded
Profiler: loaded
RegExTestbed: loaded
ReopenEditor: loaded
SmartIndentCpp: loaded
SmartIndentFortran: loaded
SmartIndentHDL: loaded
SmartIndentLua: loaded
SmartIndentPascal: loaded
SmartIndentPython: loaded
SmartIndentXML: loaded
SpellChecker: loaded
SymTab: loaded
ThreadSearch: loaded
ToolsPlus: loaded
Valgrind: loaded
Abbreviations: loaded
BYOGames: loaded
CB_Koders: loaded
CodeSnippets: loaded
CodeStat: loaded
cbDragScroll: loaded
EnvVars: loaded
Exporter: loaded
HeaderFixup: loaded
HelpPlugin: loaded
cbKeyBinder: loaded
lib_finder: loaded
wxSmithAui: loaded
wxSmith: loaded
wxSmithMime: loaded
wxSmithContribItems: loaded
EditorConfig plugin for Code::Blocks plugin activated
Project options manipulator plugin activated
Autosave plugin activated
Class wizard plugin activated
Code completion plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM Clang Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "*No Compiler*"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Small Device C Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Master path of compiler ID "gcc" is empty -> triggers auto-detection.
Master path of compiler ID "icc" is empty -> triggers auto-detection.
Master path of compiler ID "sdcc" is empty -> triggers auto-detection.
Master path of compiler ID "tcc" is empty -> triggers auto-detection.
Master path of compiler ID "clang" is empty -> triggers auto-detection.
Master path of compiler ID "arm-elf-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "android-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "avr-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "bfin-elf-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "lm32-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "lm8-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "zpu-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "msp430-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "tricore-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "ppc-gcc" is empty -> triggers auto-detection.
Master path of compiler ID "powerpc-eabi" is empty -> triggers auto-detection.
Master path of compiler ID "gdc" is empty -> triggers auto-detection.
Master path of compiler ID "ldc" is empty -> triggers auto-detection.
Master path of compiler ID "dmd" is empty -> triggers auto-detection.
Master path of compiler ID "gfortran" is empty -> triggers auto-detection.
Master path of compiler ID "g95" is empty -> triggers auto-detection.
Master path of compiler ID "pgifortran" is empty -> triggers auto-detection.
Master path of compiler ID "null" is empty -> triggers auto-detection.
Compiler plugin activated
Copy Strings to clipboard plugin activated
Debugger plugin activated
Files extension handler plugin activated
OccurrencesHighlighting plugin activated
Open files list plugin activated
Foreign projects importer plugin activated
rndgen 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 'Java application'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV 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 'QT4 (shared) project'
Project wizard added for 'QT5 project'
Project wizard added for 'SDL project'
Project wizard added for 'SDL2 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 'Arduino Project'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'MSP430 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 'D source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
File(s) wizard added for 'Java source'
Scripted wizard plugin activated
Todo List plugin activated
Source code formatter (AStyle) plugin activated
AutoVersioning plugin activated
BrowseTracker plugin activated
Cccc plugin activated
CppCheck plugin activated
Cscope plugin activated
DoxyBlocks plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
FileManager plugin activated
HexEditor plugin activated
IncrementalSearch plugin activated
MouseSap plugin activated
NassiShneidermanPlugin plugin activated
Code profiler plugin activated
Regular expressions testbed plugin activated
ReopenEditor plugin activated
SmartIndentCpp plugin activated
SmartIndentFortran plugin activated
SmartIndentHDL plugin activated
SmartIndentLua plugin activated
SmartIndentPascal plugin activated
SmartIndentPython plugin activated
SmartIndentXML plugin activated
Detected dict path: /usr/share/hunspell
Detected thes path: /usr/share/mythes
Selected dictionary: en_US
Found dictionary: en_US
Loading image: '/usr/share/codeblocks/SpellChecker/16x16/en_US.png' succeeded!
SpellChecker plugin activated
Symbol Table Plugin plugin activated
ThreadSearch plugin activated
ToolsPlus plugin activated
Valgrind plugin activated
Abbreviations plugin activated
BYO Games plugin activated
Koders query plugin activated
Code snippets plugin activated
Code statistics plugin activated
DragScroll plugin activated
Environment variables plugin activated
Source Exporter plugin activated
Header Fixup plugin activated
Help plugin plugin activated
Keyboard shortcuts plugin activated

(codeblocks:30729): Gtk-CRITICAL **: 23:05:06.155: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
Segmentation fault (core dumped)
jlp@SortaFastDesktop:~> 

Any ideas?
Thanks!

EDIT1: It dies after “Compilers auto-detection” screen?

Jesse

Hi,

If current Code::Blocks is broken on Tumbleweed
then can you recommend an alternative software?

Thanks!

Jesse

Have you tried to troubleshoot via their forum. I recall it being a friendly place with a lot of smart people (just like here).

http://forums.codeblocks.org/

Did that already…hear crickets:

http://forums.codeblocks.org/index.php/topic,23858.0.html

I installed the Tumbleweed experimental package from
https://software.opensuse.org/package/codeblocks
and can confirm it has the same problem.

In my case the only compiler available was the first entry, gcc, but even if I selected the no compiler option the error was produced. There seems to be an issue with that part of the startup. You might add that info to your post at CB.

As for alternatives, Eclipse CDT worked for me a couple of years ago and behaved well as far as surviving Tumbleweed updates. KDevelop works. I also ran Visual Code successfully, just to try it. I haven’t used Visual Studio. I’m not sure how the Visual products do with Tumbleweed updates. My advice is to choose something that installs/updates from the standard repos, not the one-click installs, or one of the java based packages.

Sorry I couldn’t help.

Hi,

Work around is below:
Rename: /usr/lib64/codeblocks/plugins/libDoxyBlocks.so
to: /usr/lib64/codeblocks/plugins/libDoxyBlocksOLD.so
Jesse