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

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 8
[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
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: 13413
    • 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: 8

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: 13413
    • 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: 8
START CODEBLOCKS IN GDB EXITS OK:
Code
~/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
~/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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
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: 7588
    • 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
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 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 8
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 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #8 on: May 24, 2018, 08:01:29 pm »
What is the version of gamin/fam you're using?
I'm running with the file manager plugin enabled for some time and I don't any problems.
I'm running latest trunk version on gentoo ~amd64.
(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: 8
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #9 on: May 25, 2018, 04:03:28 am »
I have:
dev-util/codeblocks-17.12 (~amd64)
dev-libs/libgamin-0.1.10-r1 (amd64)


Offline grem

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #10 on: May 29, 2018, 01:58:32 am »
I have:
dev-util/codeblocks-17.12 (~amd64)
dev-libs/libgamin-0.1.10-r1 (amd64)

Hello.

I encounter the same problem sometimes, but if I try start again the application usually run successfully.

Is the problem stay if you install app-admin/gamin package?
Code
emerge -1av app-admin/gamin

I see the error in your first message
Code
failed to find gam_server
« Last Edit: May 29, 2018, 02:03:15 am by grem »

Offline c5ace

  • Single posting newcomer
  • *
  • Posts: 8
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #11 on: May 29, 2018, 04:00:20 am »
I have:
dev-util/codeblocks-17.12 (~amd64)
dev-libs/libgamin-0.1.10-r1 (amd64)

Hello.

I encounter the same problem sometimes, but if I try start again the application usually run successfully.

Is the problem stay if you install app-admin/gamin package?
Code
emerge -1av app-admin/gamin

I see the error in your first message
Code
failed to find gam_server

I installed today:
Code
 app-admin/gamin
and enabled FileManager pluging. Works fine. I guess that the CodeBlocks ebuild should be modified that it installs app-admin/gamin and dev-libs/libgamin. Will test and if appropriate file a bug report.

Offline grem

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #12 on: May 29, 2018, 09:19:33 am »
I installed today:
Code
 app-admin/gamin
and enabled FileManager pluging. Works fine. I guess that the CodeBlocks ebuild should be modified that it installs app-admin/gamin and dev-libs/libgamin. Will test and if appropriate file a bug report.

I already planing to modify ebuild among other changes (as co-maintainer). You could see the status in pull request. There are several changes and it could be take some time to check them by wxwidgets team.

The dependency of only dev-libs/libgamin was inherited from 16.01 ebuild. I was asked about dependency early of virtual/fam (app-admin/gamin or app-admin/fam) but I never encounter this crash until recent time during testing of ebuilds on the machine  there I have no installed gam-server package. But on the second system it's instaled as dependency of samba and kcoreaddons (by USE="fam").

The "FileManager" plugin could be linking only with app-admin/gamin (but not with app-admin/fam or gfilemonitor from dev-libs/glib) that is meta package for dev-libs/libgamin and app-admin/gam-server. There is appropriate ticket in codeblocks bugzilla to update FileManager dependency in favor of more fresh library.

Also I'm planing to update codeblocks-9999.ebuild by syncing it with updated 17-12.r1 ebuild as current seems to be broken to build contrib-plugins (I have no idea why but updated works for me). It allows to install codeblocks from snv.

@oBFusCATed
could you confirm that you have installed app-admin/gam-server package besides dev-libs/libgamin

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #13 on: May 29, 2018, 11:41:59 am »
Yes, I have app-admin/gamin.
(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 grem

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: [SOLVED] Codeblocks will not start from a Desktop Icon
« Reply #14 on: May 29, 2018, 12:31:20 pm »
Yes, I have app-admin/gamin.

Thank you. I'll try to update pull request for codeblocks-17.12-r1 this evening with dependency app-admin/gamin instead of dev-libs/libgamin.

Also I assume to remove from ebuild flag "-fno-delete-null-pointer-checks" and test after it: this additional flag came from 16.01.ebuild too
and I only now found that it was fixed in upstream on 2016-07-16 ticket 10875 and as I see there is no need in this check since  2017-03-24 ticket 11033.
I just recent became co-maintainer and don't know the prehistory of support this package in Gentoo.