Bug 28722 - CodeBlocks can not run
Summary: CodeBlocks can not run
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL: https://www.mageialinux-online.org/fo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-05 10:37 CEST by Bernard SIAUD
Modified: 2021-04-18 09:10 CEST (History)
2 users (show)

See Also:
Source RPM: codeblocks-20.03-4.mga8.src.rpm
CVE:
Status comment:


Attachments
The output error file (2.86 KB, text/xml)
2021-04-05 10:38 CEST, Bernard SIAUD
Details
Full console output running codeblocks, no crash (8.62 KB, text/plain)
2021-04-05 21:18 CEST, Lewis Smith
Details
Screenshot of codeblocks running, apparently OK (128.06 KB, image/png)
2021-04-05 21:19 CEST, Lewis Smith
Details
First message (74.72 KB, image/png)
2021-04-05 22:33 CEST, Bernard SIAUD
Details
2rt message (58.56 KB, image/png)
2021-04-05 22:34 CEST, Bernard SIAUD
Details

Description Bernard SIAUD 2021-04-05 10:37:12 CEST
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible: 20.03-4.


Steps to Reproduce:
[troumad@localhost ~]$ codeblocks 
Starting Code::Blocks Release 20.03  rev 11997 Jan  1 2021, 17:34:54 - wx3.1.5 - gcc 10.2.1 (Linux, unicode) - 64 bit
Manager initialized
[...]
Code profiler plugin activated
Regular expressions testbed plugin activated

(codeblocks:11838): Gtk-CRITICAL **: 10:22:53.020: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
./src/gtk/choice.cpp(284): assert ""Assert failure"" failed in GetString(): invalid index
Library finder plugin activated
Loading toolbar...

(codeblocks:11838): Gtk-WARNING **: 10:23:55.965: Found an icon but could not load it. Most likely gdk-pixbuf does not provide SVG support.
Initializing plugins...
Abandon (core dumped)
[troumad@localhost ~]$ cat /tmp/codeblocks_dbgrpt-45830-20210405T103617/codeblocks.xml 
<?xml version="1.0" encoding="UTF-8"?>
<report version="1.0" kind="exception">
  <system description="Linux 5.11.11-desktop-3.mga9 x86_64"/>
  <modules>
    <module path="[heap]" address="0x1332000" size="0x2fd3000"/>
    <module path="/memfd:pulseaudio" address="0x7f7418000000" size="0x4000000"/>
    <module path="/memfd:pulseaudio" address="0x7f7420000000" size="0x4000000"/>
    <module path="/SYSV00000000" address="0x7f745c851000" size="0x800000"/>
    <module path="[stack]" address="0x7fffeb420000" size="0x23000"/>
    <module path="[vdso]" address="0x7fffeb470000" size="0x2000"/>
  </modules>
  <stack>
    <frame level="0" offset="0" address="0x493414" module="codeblocks"/>
    <frame level="1" offset="0x1a84d0" address="0x7f7463a304d0" module="/lib64/libwx_baseu-3.1.so.5"/>
    <frame level="2" offset="0x12a70" address="0x7f746387aa70" module="/lib64/libpthread.so.0"/>
    <frame level="3" function="std::__cxx11::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;::_M_assign(std::__cxx11::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;)" offset="0x22" address="0x7f74637e2c32" module="/lib64/libstdc++.so.6"/>
    <frame level="4" offset="0xcd66c" address="0x7f746395566c" module="/lib64/libwx_baseu-3.1.so.5"/>
    <frame level="5" function="wxFileConfig::DoWriteString(wxString const&amp;, wxString const&amp;)" offset="0x176" address="0x7f74639562f6" module="/lib64/libwx_baseu-3.1.so.5"/>
    <frame level="6" function="wxKeyProfileArray::Save(wxConfigBase*, wxString const&amp;, bool) const" offset="0xa4" address="0x7f745c1e0e24" module="/usr/lib64/codeblocks/plugins/libkeybinder.so"/>
    <frame level="7" function="cbKeyBinder::OnSaveKbOldFormatCfgFile(wxKeyProfileArray*, wxString, bool)" offset="0x332" address="0x7f745c1a7d72" module="/usr/lib64/codeblocks/plugins/libkeybinder.so"/>
    <frame level="8" function="cbKeyBinder::CreateKeyBindDefaultFile(bool)" offset="0x16a5" address="0x7f745c1ae385" module="/usr/lib64/codeblocks/plugins/libkeybinder.so"/>
    <frame level="9" function="cbKeyBinder::OnAppStartupDone(CodeBlocksEvent&amp;)" offset="0x3a7" address="0x7f745c1aebf7" module="/usr/lib64/codeblocks/plugins/libkeybinder.so"/>
    <frame level="10" function="Manager::ProcessEvent(CodeBlocksEvent&amp;)" offset="0x78" address="0x7f7464a28738" module="/lib64/libcodeblocks.so.0"/>
    <frame level="11" offset="0" address="0x491de2" module="codeblocks"/>
    <frame level="12" function="wxEntry(int&amp;, wchar_t**)" offset="0x6a" address="0x7f7463984e1a" module="/lib64/libwx_baseu-3.1.so.5"/>
    <frame level="13" offset="0" address="0x477262" module="codeblocks"/>
    <frame level="14" function="__libc_start_main" offset="0xcd" address="0x7f74633a47dd" module="/lib64/libc.so.6"/>
    <frame level="15" offset="0" address="0x489faa" module="codeblocks"/>
  </stack>
</report>
[troumad@localhost ~]$
Comment 1 Bernard SIAUD 2021-04-05 10:38:34 CEST
Created attachment 12577 [details]
The output error file

The output error file
Comment 2 Lewis Smith 2021-04-05 21:15:25 CEST
Thank you for the report.
The attachment seems identical to the XML report in comment 0.

I installed this thing, and found that it started OK after a lot of initialisation and a dialogue about gcc:

$ codeblocks

(codeblocks:20399): Gtk-WARNING **: 21:08:39.921: Theme parsing error: gtk.css:2:33: Failed to import: Error opening file /home/lewis/.config/gtk-3.0/window_decorations.css: No such file or directory
Starting Code::Blocks Release 20.03  rev 11997 Jan  1 2021, 17:34:54 - wx3.1.5 - gcc 10.2.1 (Linux, unicode) - 64 bit
Manager initialized
...
Found dictionary: cy_GB
Loading image: '/usr/share/codeblocks/SpellChecker/16x16/en_US.png' succeeded!
SpellChecker plugin activated
Foreign projects importer plugin activated
Keyboard shortcuts plugin activated
Loading toolbar...
Initializing plugins...

I will attach the full console output, and a screenshot of it.

CC: (none) => lewyssmith
Ever confirmed: 1 => 0
Source RPM: Source RPM : codeblocks-20.03-4.mga8.src.rpm => codeblocks-20.03-4.mga8.src.rpm
Status: NEW => UNCONFIRMED

Comment 3 Lewis Smith 2021-04-05 21:18:55 CEST
Created attachment 12582 [details]
Full console output running codeblocks, no crash
Comment 4 Lewis Smith 2021-04-05 21:19:47 CEST
Created attachment 12583 [details]
Screenshot of codeblocks running, apparently OK
Comment 5 Lewis Smith 2021-04-05 21:37:37 CEST
I should have said: codeblocks-20.03-4.mga8, under Xfce.

 Bernard's crash was:
Loading toolbar...
(codeblocks:11838): Gtk-WARNING **: 10:23:55.965: Found an icon but could not load it. Most likely gdk-pixbuf does not provide SVG support.
Initializing plugins...
Abandon (core dumped)

 Without crash:
Loading toolbar...
Initializing plugins...

Can you (Bernard) please attach the full console output, for comparison?

 Me:
(codeblocks:20399): Gtk-CRITICAL **: 21:08:44.421: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
Library finder plugin activated

 Bernard:
(codeblocks:11838): Gtk-CRITICAL **: 10:22:53.020: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
./src/gtk/choice.cpp(284): assert ""Assert failure"" failed in GetString(): invalid index
Library finder plugin activated

CC'ing DavidG & wally in case they have an idea.

CC: (none) => geiger.david68210, jani.valimaa

Comment 6 Bernard SIAUD 2021-04-05 22:32:48 CEST
[troumad@localhost area_erisi2]$ codeblocks 
Starting Code::Blocks Release 20.03  rev 11997 Jan  1 2021, 17:34:54 - wx3.1.5 - gcc 10.2.1 (Linux, unicode) - 64 bit
Manager initialized
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
AutoVersioning: loaded
SmartIndentPython: loaded
cbKeyBinder: loaded
CppCheck: loaded
SymTab: loaded
Abbreviations: loaded
SpellChecker: loaded
wxSmith: loaded
wxSmithMime: loaded
Valgrind: loaded
NassiShneidermanPlugin: loaded
HeaderFixup: loaded
SmartIndentHDL: loaded
ProjectsImporter: loaded
EnvVars: loaded
HelpPlugin: loaded
ProjectOptionsManipulator: loaded
AStylePlugin: loaded
CodeStat: loaded
rndgen: loaded
SmartIndentPascal: loaded
ReopenEditor: loaded
EditorTweaks: loaded
CodeSnippets: loaded
wxSmithContribItems: loaded
DoxyBlocks: loaded
FileManager: loaded
BrowseTracker: loaded
Compiler: loaded
Debugger: loaded
CodeCompletion: loaded
ToolsPlus: loaded
SmartIndentLua: loaded
OccurrencesHighlighting: loaded
cbDragScroll: loaded
ScriptedWizard: loaded
wxSmithAui: loaded
Cscope: loaded
copystrings: loaded
Autosave: loaded
SmartIndentXML: loaded
EditorConfig: loaded
ToDoList: loaded
CB_Koders: loaded
OpenFilesList: loaded
ThreadSearch: loaded
MouseSap: loaded
SmartIndentCpp: loaded
FilesExtensionHandler: loaded
ClassWizard: loaded
HexEditor: loaded
IncrementalSearch: loaded
Cccc: loaded
BYOGames: loaded
SmartIndentFortran: loaded
Profiler: loaded
RegExTestbed: loaded
lib_finder: loaded
AutoVersioning plugin activated
SmartIndentPython plugin activated
Keyboard shortcuts plugin activated
CppCheck plugin activated
Symbol Table Plugin plugin activated
Abbreviations plugin activated
Detected dict path: /usr/share/hunspell
Detected thes path: /usr/share/mythes
Found dictionary: en_CA-large
Found dictionary: en_AU
Selected dictionary: fr_FR
Found dictionary: fr_FR
Found dictionary: en_US-large
Found dictionary: en_AU-large
Found dictionary: en_GB-ise
Found dictionary: en_CA
Found dictionary: en_GB
Found dictionary: en_US
Found dictionary: en_GB-large
Found dictionary: en_GB-ize
Loading image: '/usr/share/codeblocks/SpellChecker/16x16/fr_FR.png' succeeded!
SpellChecker plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Valgrind plugin activated
NassiShneidermanPlugin plugin activated
Header Fixup plugin activated
SmartIndentHDL plugin activated
Foreign projects importer plugin activated
Environment variables plugin activated
Help plugin plugin activated
Project options manipulator plugin activated
Source code formatter (AStyle) plugin activated
Code statistics plugin activated
rndgen plugin activated
SmartIndentPascal plugin activated
ReopenEditor plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
Code snippets plugin activated
wxSmith - Contrib Items plugin activated
DoxyBlocks plugin activated
FileManager plugin activated
BrowseTracker 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 "*No Compiler*"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Tiny C Compiler"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for Android"
Added compiler "LLVM Clang Compiler"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "PGI Fortran Compiler"
Compiler plugin activated
Debugger plugin activated
Code completion plugin activated
ToolsPlus plugin activated
SmartIndentLua plugin activated
OccurrencesHighlighting plugin activated
DragScroll 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
wxSmith - Aui plugin activated
Cscope plugin activated
Copy Strings to clipboard plugin activated
Autosave plugin activated
SmartIndentXML plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Todo List plugin activated
Koders query plugin activated
Open files list plugin activated
ThreadSearch plugin activated
MouseSap plugin activated
SmartIndentCpp plugin activated
Files extension handler plugin activated
Class wizard plugin activated
HexEditor plugin activated
IncrementalSearch plugin activated
Cccc plugin activated
BYO Games plugin activated
SmartIndentFortran plugin activated
Code profiler plugin activated
Regular expressions testbed plugin activated

(codeblocks:1737387): Gtk-CRITICAL **: 22:31:19.527: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
./src/gtk/choice.cpp(284): assert ""Assert failure"" failed in GetString(): invalid index
Library finder plugin activated
Loading toolbar...

(codeblocks:1737387): Gtk-WARNING **: 22:31:21.338: Found an icon but could not load it. Most likely gdk-pixbuf does not provide SVG support.
Initializing plugins...
Abandon (core dumped)
Comment 7 Bernard SIAUD 2021-04-05 22:33:23 CEST
Created attachment 12584 [details]
First message

First message
Comment 8 Bernard SIAUD 2021-04-05 22:34:08 CEST
Created attachment 12585 [details]
2rt message

2rt message
Comment 9 Lewis Smith 2021-04-06 09:24:35 CEST
Thank you for the extra information. The screenshots were a good idea, and are helpful.
(The console O/P comment 6 would have been better as an attachment). There is quite a difference between yours & mine, mostly just the order; I see nothing new to learn from them beyond what is already noted in comment 5.

Can you see whether you have:
 /usr/lib64/codeblocks/plugins/libexporter.so
since this is something it complains about.

I note now that, although we are running the same version of codeblocks,
 Starting Code::Blocks Release 20.03  rev 11997 Jan  1 2021
my system is M8 and yours is Cauldron:
 system description="Linux 5.11.11-desktop-3.mga9 x86_64"
So the difference must be there.

Ever confirmed: 0 => 1
Assignee: bugsquad => geiger.david68210
CC: geiger.david68210 => (none)
Status: UNCONFIRMED => NEW

Comment 10 Bernard SIAUD 2021-04-06 09:44:47 CEST
[troumad@localhost SDL_etu]$ ll /usr/lib64/codeblocks/plugins/libexporter.so
-rwxr-xr-x 1 root root 2903632 janv.  1 19:09 /usr/lib64/codeblocks/plugins/libexporter.so*
Comment 11 David GEIGER 2021-04-06 18:43:02 CEST
Does it work on mga8?

Cauldron is a development release so this is normal if some packages doesn't work some times.
Comment 12 Lewis Smith 2021-04-06 20:28:22 CEST
Well, my 'good' test was on Mageia 8, so yes.

It is true that Cauldron is a 'use at your own risk' affair, and one can expect things not to work. I imagine the packagers' interest is finding & fixing Cauldron bugs for the future Mageia 9.
Comment 13 David GEIGER 2021-04-06 21:31:06 CEST
Please test next codeblocks-20.03-5.mga9 update!
Comment 14 Bernard SIAUD 2021-04-07 06:47:36 CEST
Now it's run. But, I can't test : I go to work.
Comment 15 David GEIGER 2021-04-08 15:30:36 CEST
Closing as fixed then!

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 16 Lewis Smith 2021-04-08 21:29:34 CEST
Thanks David for the fix.
@Bernard : can you please report back more positively? Does the update work for you, or not?
Comment 17 Bernard SIAUD 2021-04-08 23:21:16 CEST
It's good for me.
Comment 18 Bernard SIAUD 2021-04-16 09:04:33 CEST
Code::Blocks is now out :

$ codeblocks 
Starting Code::Blocks Release 20.03  rev 11997 Apr  6 2021, 18:50:20 - wx3.1.5 - gcc 10.3.0 (Linux, unicode) - 64 bit

(codeblocks:3003629): Gtk-CRITICAL **: 08:56:03.622: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed

(codeblocks:3003629): Gtk-CRITICAL **: 08:56:03.622: gtk_container_remove: assertion 'GTK_IS_CONTAINER (container)' failed

(codeblocks:3003629): Gtk-CRITICAL **: 08:56:03.622: gtk_box_pack: assertion 'GTK_IS_WIDGET (child)' failed

(codeblocks:3003629): Gtk-CRITICAL **: 08:56:03.622: gtk_box_reorder_child: assertion 'GTK_IS_WIDGET (child)' failed

(codeblocks:3003629): Gtk-CRITICAL **: 08:56:03.622: gtk_widget_set_size_request: assertion 'GTK_IS_WIDGET (widget)' failed
Erreur de segmentation (core dumped)

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 19 Bernard SIAUD 2021-04-17 17:11:57 CEST
Now, codeblocks run.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 20 Lewis Smith 2021-04-18 09:10:23 CEST
Glad the problem is fixed for you. With any bug, especially when trying updated packages, it is essential to say precisly what version you are talking about (like comment 5).
 $ rpm -q <pkg-name>
Comments 17, 18 & 19 are enigmatic in this respect. No matter now, it had to be in the end codeblocks-20.03-5.mga9.

Note You need to log in before you can comment on or make changes to this bug.