Author Topic: [SOLVED] Codeblocks will not start from a Desktop Icon  (Read 210 times)

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 4
[SOLVED] Codeblocks will not start from a Desktop Icon
« on: May 11, 2018, 02:26:53 am »
I installed Codeblocks 17.12 on Gentoo Linux Xfce4 Desktop.
Codeblocks will not start from a Desktop Icon.
Starting from Xfce Terminal works with this error:

(codeblocks:4034): Gtk-CRITICAL **: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
Code: [Select]
START TERMINAL OUTPUT:
Starting Code::Blocks Release 17.12  rev 11256 May  7 2018, 14:51:59 - wx3.0.3 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
wxSmithAui: loaded
wxSmithContribItems: loaded
wxSmith: loaded
wxSmithMime: loaded
Valgrind: loaded
ToolsPlus: loaded
ThreadSearch: loaded
ReopenEditor: loaded
RegExTestbed: loaded
SpellChecker: loaded
SmartIndentXML: loaded
SmartIndentFortran: loaded
SmartIndentLua: loaded
SmartIndentPython: loaded
SmartIndentCpp: loaded
SmartIndentPascal: loaded
SmartIndentHDL: loaded
SymTab: loaded
Exporter: loaded
ProjectOptionsManipulator: loaded
Profiler: loaded
NassiShneidermanPlugin: loaded
MouseSap: loaded
lib_finder: loaded
cbKeyBinder: loaded
IncrementalSearch: loaded
HexEditor: loaded
HelpPlugin: loaded
HeaderFixup: loaded
FileManager: loaded
EnvVars: loaded
EditorTweaks: loaded
EditorConfig: loaded
cbDragScroll: loaded
DoxyBlocks: loaded
Cscope: loaded
CppCheck: loaded
copystrings: loaded
CodeStat: loaded
CodeSnippets: loaded
Cccc: loaded
CB_Koders: loaded
BYOGames: loaded
BrowseTracker: loaded
AutoVersioning: loaded
Abbreviations: loaded
ToDoList: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
ProjectsImporter: loaded
ScriptedWizard: loaded
FilesExtensionHandler: loaded
Debugger: loaded
Compiler: loaded
CodeCompletion: loaded
ClassWizard: loaded
Autosave: loaded
AStylePlugin: loaded
wxSmith - Aui plugin activated
wxSmith - Contrib Items plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Valgrind plugin activated
ToolsPlus plugin activated
ThreadSearch plugin activated
ReopenEditor plugin activated
Regular expressions testbed plugin activated
Detected dict path: /usr/share/hunspell
Detected thes path: /usr/share/mythes
Found dictionary: en_ZA
Found dictionary: en_US
Found dictionary: en_GB
Found dictionary: en_CA
Selected dictionary: en_AU
Found dictionary: en_AU
Detected bitmap path: /usr/share/codeblocks/SpellChecker
Detected bitmap path: /usr/share/codeblocks/SpellChecker
SpellChecker plugin activated
SmartIndentXML plugin activated
SmartIndentFortran plugin activated
SmartIndentLua plugin activated
SmartIndentPython plugin activated
SmartIndentCpp plugin activated
SmartIndentPascal plugin activated
SmartIndentHDL plugin activated
Symbol Table Plugin plugin activated
Source Exporter plugin activated
Project options manipulator plugin activated
Code profiler plugin activated
NassiShneidermanPlugin plugin activated
MouseSap plugin activated
Library finder plugin activated
Keyboard shortcuts plugin activated
IncrementalSearch plugin activated
HexEditor plugin activated
Help plugin plugin activated
Header Fixup plugin activated
failed to find gam_server
FileManager plugin activated
Environment variables plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
EditorConfig plugin for Code::Blocks plugin activated
DragScroll plugin activated
DoxyBlocks plugin activated
Cscope plugin activated
CppCheck plugin activated
Copy Strings to clipboard plugin activated
Code statistics plugin activated
Code snippets plugin activated
Cccc plugin activated
Koders query plugin activated
BYO Games plugin activated
BrowseTracker plugin activated
AutoVersioning plugin activated
Abbreviations plugin activated
Todo List plugin activated
OccurrencesHighlighting plugin activated
Open files list plugin activated
Foreign projects importer 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
Files extension handler plugin activated
Debugger 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 ZPU"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "Tiny C Compiler"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "PGI Fortran Compiler"
Added compiler "*No Compiler*"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "LLVM D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM Clang Compiler"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for Android"
Compiler plugin activated
Code completion plugin activated
Class wizard plugin activated
Autosave plugin activated
Source code formatter (AStyle) plugin activated
Loading toolbar...
Initializing plugins...
Failed to connect to socket /tmp/fam-elmar-

(codeblocks:16590): Gtk-CRITICAL **: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
END TERMINAL OUTPUT[\code]




« Last Edit: May 12, 2018, 05:43:58 am by c5ace »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10796
    • Travis build status
Instead of START TERMINAL OUTPUT:/END TERMINAL OUTPUT you can use [ code ] [ / code ] tags.

For the problem how have you installed codeblocks, using the ebuild in portage?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 4

For the problem how have you installed codeblocks, using the ebuild in portage?

I used ebuild in portage to install codeblocks.

If I start codeblocks from the desktop icon and then exit codeblocks, it continues to run without GUI at 100% CPU use and can only be stopped by issuing the 'kill' command as root.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10796
    • Travis build status
This seems like a separate problem. Can you attach gdb to it and post the backtrace?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 4
START CODEBLOCKS IN GDB EXITS OK:
Code: [Select]
~/Desktop $ gdb codeblocks
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from codeblocks...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/codeblocks
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Starting Code::Blocks Release 17.12  rev 11256 May  7 2018, 14:51:59 - wx3.0.3 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
[New Thread 0x7fffe8be5700 (LWP 906)]
[New Thread 0x7fffe3fff700 (LWP 907)]
[New Thread 0x7fffe37fe700 (LWP 908)]
Initialize EditColourSet: done.
Loading menubar...
[New Thread 0x7fffe2dc0700 (LWP 909)]
[New Thread 0x7fffe25bf700 (LWP 910)]
[New Thread 0x7fffe1dbe700 (LWP 911)]
wxSmithAui: loaded
wxSmithContribItems: loaded

------SNIP----------

Source code formatter (AStyle) plugin activated
Loading toolbar...
Failed to connect to socket /tmp/fam-elmar-
Initializing plugins...

(codeblocks:902): Gtk-CRITICAL **: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
[New Thread 0x7fffc1465700 (LWP 1000)]
[Thread 0x7fffc1465700 (LWP 1000) exited]
 
QUIT CODEBLOCKS (File -> Quit)

Deinitializing plugins...
[Thread 0x7fffc1c66700 (LWP 925) exited]
[Thread 0x7fffc2518700 (LWP 922) exited]
[Thread 0x7fffe1dbe700 (LWP 911) exited]
[Thread 0x7fffe25bf700 (LWP 910) exited]
[Thread 0x7fffe37fe700 (LWP 908) exited]
[Thread 0x7fffe8be5700 (LWP 906) exited]
[Thread 0x7ffff7fb3940 (LWP 902) exited]
[Thread 0x7fffe3fff700 (LWP 907) exited]
[Inferior 1 (process 902) exited normally]
(gdb) quit
~/Desktop $

START CODEBLOCKS FROM DESKTOP ICON AND QUIT CODENLOCKS (File -> Quit)
Codeblocks remains running PID 4092. No GUI.

ATTACH GDB TO CODEBLOCKS PID 4092:
Code: [Select]
~/Desktop $ gdb codeblocks 4092
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from codeblocks...(no debugging symbols found)...done.
Attaching to program: /usr/bin/codeblocks, process 4092
[New LWP 4093]
[New LWP 4094]
[New LWP 4095]
[New LWP 4096]
[New LWP 4097]
[New LWP 4109]
[New LWP 4112]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007fccfe23bc0d in pthread_join (threadid=140517555607296,
    thread_return=0x55e5547e83b8) at pthread_join.c:90
90 pthread_join.c: No such file or directory.
(gdb) bt
#0  0x00007fccfe23bc0d in pthread_join (threadid=140517555607296,
    thread_return=0x55e5547e83b8) at pthread_join.c:90
#1  0x00007fccfe60fcc8 in ?? () from /usr/lib64/libwx_baseu-3.0.so.0
#2  0x00007fccfe6100e1 in wxThread::Wait(wxThreadWait) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#3  0x00007fcccf5880ad in wxDirectoryMonitor::~wxDirectoryMonitor() ()
   from /usr/lib/codeblocks/plugins/libFileManager.so
#4  0x00007fcccf5880d9 in wxDirectoryMonitor::~wxDirectoryMonitor() ()
   from /usr/lib/codeblocks/plugins/libFileManager.so
#5  0x00007fcccf55756e in FileExplorer::~FileExplorer() ()
   from /usr/lib/codeblocks/plugins/libFileManager.so
#6  0x00007fcccf557689 in FileExplorer::~FileExplorer() ()
   from /usr/lib/codeblocks/plugins/libFileManager.so
#7  0x00007fcccf54e54a in FileManagerPlugin::OnRelease(bool) ()
   from /usr/lib/codeblocks/plugins/libFileManager.so
#8  0x00007fcd0074cf4e in cbPlugin::Release(bool) ()
   from /usr/lib64/libcodeblocks.so.0
#9  0x00007fcd0086e07b in PluginManager::DetachPlugin(cbPlugin*) ()
   from /usr/lib64/libcodeblocks.so.0
#10 0x00007fcd0086ec20 in PluginManager::UnloadPlugin(cbPlugin*) ()
   from /usr/lib64/libcodeblocks.so.0
#11 0x00007fcd0086ee5e in PluginManager::UnloadAllPlugins() ()
   from /usr/lib64/libcodeblocks.so.0
---Type <return> to continue, or q <return> to quit---
#12 0x00007fcd0086ef32 in PluginManager::~PluginManager() ()
   from /usr/lib64/libcodeblocks.so.0
#13 0x00007fcd0086f139 in PluginManager::~PluginManager() ()
   from /usr/lib64/libcodeblocks.so.0
#14 0x00007fcd0085412c in Manager::Shutdown() ()
   from /usr/lib64/libcodeblocks.so.0
#15 0x000055e5520dc275 in ?? ()
#16 0x00007fccfe4be3be in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib64/libwx_baseu-3.0.so.0
#17 0x00007fccfe6410a5 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib64/libwx_baseu-3.0.so.0
#18 0x00007fccfe64119b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib64/libwx_baseu-3.0.so.0
#19 0x00007fccfe64154b in wxEvtHandler::TryHereOnly(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#20 0x00007fccfe641353 in wxEvtHandler::DoTryChain(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#21 0x00007fccfe641635 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#22 0x00007fccfe6413a7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#23 0x00007fccfefc08d7 in wxWindowBase::Close(bool) ()
   from /usr/lib64/libwx_gtk2u_core-3.0.so.0
#24 0x00007fccfe4be3be in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib64/libwx_baseu-3.0.so.0
#25 0x00007fccfe6410a5 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib64/libwx_baseu-3.0.so.0
#26 0x00007fccfe64119b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib64/libwx_baseu-3.0.so.0
#27 0x00007fccfe64154b in wxEvtHandler::TryHereOnly(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#28 0x00007fccfe641353 in wxEvtHandler::DoTryChain(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#29 0x00007fccfe641635 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#30 0x00007fccfefbefe8 in wxWindowBase::TryAfter(wxEvent&) ()
   from /usr/lib64/libwx_gtk2u_core-3.0.so.0
#31 0x00007fccfe6413a7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#32 0x00007fccfef635ff in wxMenuBase::SendEvent(int, int) ()
   from /usr/lib64/libwx_gtk2u_core-3.0.so.0
#33 0x00007fccfee4953b in ?? () from /usr/lib64/libwx_gtk2u_core-3.0.so.0
#34 0x00007fccfc4fbf15 in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#35 0x00007fccfc50df22 in ?? () from /usr/lib64/libgobject-2.0.so.0
#36 0x00007fccfc516b7c in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#37 0x00007fccfc516f5f in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#38 0x00007fccfcc3b39e in gtk_widget_activate ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#39 0x00007fccfcb3626d in gtk_menu_shell_activate_item ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#40 0x00007fccfcb365d6 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#41 0x00007fccfcb2451c in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#42 0x00007fccfc4fbf15 in g_closure_invoke ()
   from /usr/lib64/libgobject-2.0.so.0
#43 0x00007fccfc50e31d in ?? () from /usr/lib64/libgobject-2.0.so.0
#44 0x00007fccfc51661f in g_signal_emit_valist ()
   from /usr/lib64/libgobject-2.0.so.0
#45 0x00007fccfc516f5f in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#46 0x00007fccfcc3c61c in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#47 0x00007fccfcb22ce4 in gtk_propagate_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#48 0x00007fccfcb2309b in gtk_main_do_event ()
   from /usr/lib64/libgtk-x11-2.0.so.0
#49 0x00007fccfc79a31c in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#50 0x00007fccfd07d767 in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#51 0x00007fccfd07d9d0 in ?? () from /usr/lib64/libglib-2.0.so.0
#52 0x00007fccfd07dcf2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#53 0x00007fccfcb22117 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#54 0x00007fccfedaa8a5 in wxGUIEventLoop::DoRun() ()
   from /usr/lib64/libwx_gtk2u_core-3.0.so.0
#55 0x00007fccfe4fee7b in wxEventLoopBase::Run() ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#56 0x00007fccfe4c4c96 in wxAppConsoleBase::MainLoop() ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#57 0x000055e552038b1a in ?? ()
#58 0x00007fccfe550040 in wxEntry(int&, wchar_t**) ()
   from /usr/lib64/libwx_baseu-3.0.so.0
#59 0x000055e552020eae in ?? ()
#60 0x00007fccfd576551 in __libc_start_main (main=0x55e552020e80, argc=1,
    argv=0x7ffe1cb21048, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7ffe1cb21038)
    at ../csu/libc-start.c:295
#61 0x000055e552033f2a in ?? ()
(gdb) quit
A debugging session is active.

Inferior 1 [process 4092] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/bin/codeblocks, process 4092
elmar@gentoo ~/Desktop $

kill 4092
 
A very very long time ago I used Codeblocks on Suse Linux and was able to download a a nightly build tar file compile and debug Codeblocks inside the installed version of Codeblocks. Is this still possible for Linux?
« Last Edit: May 12, 2018, 12:39:22 am by c5ace »

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Yes it's possible.
Besides this I would try to disable the FileManager plugin.
If this does not work from start via icon (because C::B hangs on quit or on disabling the plugin), try it when running through gdb.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6188
    • My Best Post
Is the Gamin or FAM package/library installed?

Edit2: Google says the error is often caused by user permission issues in at least two places I read.

Edit: Because the error below is because of Gamin or FAM package/library.
Code: [Select]
Failed to connect to socket /tmp/fam-elmar-
Tim S.
« Last Edit: May 12, 2018, 02:14:21 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 4
The Gamin/FAM package is installed.
Disabling the FileManager plugin fixed all three problems.
« Last Edit: May 12, 2018, 05:46:44 am by c5ace »