Codelite 8.1 crash in Debian Jessie when clicked ShowToolbar

Discussion about CodeLite development process and patches
tatami12
CodeLite Curious
Posts: 4
Joined: Sat Sep 19, 2015 2:12 am
Genuine User: Yes
IDE Question: c++
Contact:

Codelite 8.1 crash in Debian Jessie when clicked ShowToolbar

Post by tatami12 »

Hi
The problem is that one day codelite started with toolbar hidden. If click ShowToolbar - ide crashes always beginning from that moment.
See below backtrace from gdb.
Screenshot2.png
Screenshot3.png
Reinstall of Codelite from repository did not help.

Is this known issue and patch available already?

Regards,
Yauheni
You do not have the required permissions to view the files attached to this post.
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by DavidGH »

Hi,

It doesn't happen here on my jessie :/

It might be a corrupt configuration file. Try deleting, or temporarily renaming, your ~/.codelite/config/, or failing that, ~/.codelite/, and see if that fixes the issue.

Regards,

David
tatami12
CodeLite Curious
Posts: 4
Joined: Sat Sep 19, 2015 2:12 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by tatami12 »

Hi

I tried removing all codelite directories that I was able to find (including ~/.codelite).
Also I tried deletion using apt-get remove --purge. And install again.
:(
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by eranif »

When it crashes, can you please get the full backtrace and paste it here?
In your initial post, you should have continue hitting <enter> until the backtrace is completed

Thanks,
Eran
Make sure you have read the HOW TO POST thread
tatami12
CodeLite Curious
Posts: 4
Joined: Sat Sep 19, 2015 2:12 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by tatami12 »

Code: Select all

(gdb) backtrace
#0  0x00007f36f7da7359 in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f36f7d3118b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x0000000000762313 in ?? ()
#3  <signal handler called>
#4  0x00007f36f7d25107 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007f36f7d264e8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007f36ffbbab35 in g_assertion_message ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f36ffbbabca in g_assertion_message_expr ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f36fdae87f6 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#9  0x00007f36ff909474 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007f36ff923087 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x00007f36fdaee22e in gtk_widget_map ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#13 0x00007f36fdaef374 in gtk_widget_set_parent ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#14 0x00007f36fd91ecf3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#15 0x00007f36ff90c53b in g_cclosure_marshal_VOID__OBJECTv ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007f36ff9093c2 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007f36ff923087 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007f36fda9a952 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007f36ff909474 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007f36ff923087 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007f36fda9dd2a in gtk_tool_item_toolbar_reconfigured ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#24 0x00007f36fda98561 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#25 0x00007f36fda98c1c in gtk_toolbar_set_icon_size ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#26 0x00007f36fda98d19 in gtk_toolbar_unset_icon_size ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#27 0x00007f36fda98e6e in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#28 0x00007f36ff90c53b in g_cclosure_marshal_VOID__OBJECTv ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#29 0x00007f36ff909474 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#30 0x00007f36ff923087 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#31 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#32 0x00007f36fdae762a in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#33 0x00007f36fdae7682 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#34 0x00007f36fdaea0ab in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#35 0x00007f36fdaef35a in gtk_widget_set_parent ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#36 0x00007f36fd9224a7 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#37 0x00007f36ff90c53b in g_cclosure_marshal_VOID__OBJECTv ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#38 0x00007f36ff909474 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#39 0x00007f36ff923087 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#40 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#41 0x00007f36fdae9479 in gtk_widget_reparent ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#42 0x00007f36fb94a71b in wxFrame::SetToolBar(wxToolBar*) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0
#43 0x00000000008e3399 in clMainFrame::CreateNativeToolbar16() ()
#44 0x00000000008e976f in clMainFrame::OnShowToolbar(wxCommandEvent&) ()
#45 0x00007f36fad61d5e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#46 0x00007f36faefd4c8 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#47 0x00007f36faefd5cb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#48 0x00007f36faefd978 in wxEvtHandler::TryHereOnly(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#49 0x00007f36faefd783 in wxEvtHandler::DoTryChain(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#50 0x00007f36faefda65 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#51 0x00007f36fbaf0608 in wxWindowBase::TryAfter(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0
#52 0x00007f36faefd7d7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#53 0x00007f36fba8b3b1 in wxMenuBase::SendEvent(int, int) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0
#54 0x00007f36fb95fd69 in ?? ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0
#55 0x00007f36ff909245 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#56 0x00007f36ff91af6c in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#57 0x00007f36ff923778 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#58 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#59 0x00007f36fdae6af6 in gtk_widget_activate ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#60 0x00007f36fd9e294d in gtk_menu_shell_activate_item ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#61 0x00007f36fd9e2ceb in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#62 0x00007f36fd9d0a3f in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#63 0x00007f36ff909245 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#64 0x00007f36ff91ae62 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#65 0x00007f36ff923285 in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#66 0x00007f36ff9239df in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#67 0x00007f36fdae7d6c in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#68 0x00007f36fd9cf184 in gtk_propagate_event ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#69 0x00007f36fd9cf61b in gtk_main_do_event ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#70 0x00007f36fdf46b5c in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#71 0x00007f36ffb94c5d in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#72 0x00007f36ffb94f48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#73 0x00007f36ffb95272 in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#74 0x00007f36fd9ce597 in gtk_main ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#75 0x00007f36fb8b18a5 in wxGUIEventLoop::DoRun() ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0
#76 0x00007f36fada7d50 in wxEventLoopBase::Run() ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#77 0x00007f36fad64086 in wxAppConsoleBase::MainLoop() ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#78 0x00007f36fadfec20 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0
#79 0x000000000052a18e in main ()
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by DavidGH »

Are you running CodeLite with the --g-fatal-warnings gtk option? If so, try without.

Otherwise, try a different DE and see if it still happens.

If neither solve the problem, please could you post your gcc and gtk version.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by eranif »

I am using Debian 8 myself and I don't experience this crash...
It might be related to the DE you are using (I am using xfce)

Looking at the backtrack, It seems to crash in some GTK/wxWidgets related code. We can, however, try and avoid these:
It seems that CodeLite is crashing when it attempts to create the native toolbar, we can simply tell CodeLite to use the generic toolbar instead.

1. Close CodeLite
2. Open the file ~/.codelite/codelite.xml (using another text editor) and search for something similar to:

Code: Select all

  <ArchiveObject Name="UseSingleToolbar">
    <long Value="0" Name="m_value"/>
  </ArchiveObject>
If you can't find it, add it at the top of the .xml file, so it will look like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<CodeLite Version="2.0.2">
<ArchiveObject Name="UseSingleToolbar">
    <long Value="0" Name="m_value"/>
  </ArchiveObject>
..
</CodeLite>
If you do have it, replace the value from "1" to "0"

3. Restart CodeLite

Eran
Make sure you have read the HOW TO POST thread
tatami12
CodeLite Curious
Posts: 4
Joined: Sat Sep 19, 2015 2:12 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Codelite 8.1 crash in Debian Jessie when clicked ShowToo

Post by tatami12 »

Thanks a lot for your help. This fixed the problem. :)
Post Reply