Page 1 of 1
Frequent crashs
Posted: Fri Mar 30, 2018 6:07 pm
by sato
On Linux Mint 18.2 Sonya, i have frequent crash of the IDE, espacially when i use CTRL+S to save a file.
I update to the version 12.0 but still the same thing. Have to relaunch CodeLite a lot of time in a day and i lost, of course, all my bookmarks each time.
I use CodeLite for NodeJS , onyl for the text editor.
The crash.log give no information.
Re: Frequent crashs
Posted: Fri Mar 30, 2018 7:26 pm
by eranif
What happens when you run CodeLite under gdb?
gdb /usr/bin/codelite
and then:
(gbd)run
When CodeLite crashes, look at the terminal and get a useful backtrace with:
(gdb)bt
Thanks
Re: Frequent crashs
Posted: Sat Mar 31, 2018 2:24 pm
by sato
This morning, when saving with CTRL-S, a direct crash (no gdb invite) but a crash.log
Code: Select all
31/03/2018 - 12:21:54
CodeLiteApp::OnFatalException() 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 0
/lib/x86_64-linux-gnu/libpthread.so.0 0
/lib/x86_64-linux-gnu/libglib-2.0.so.0 g_pattern_match 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 gtk_rc_get_style 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 g_closure_invoke 0
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 0
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 g_signal_emit_valist 0
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 g_signal_emit 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 gtk_widget_show 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 gtk_dialog_run 0
/usr/lib/codelite/libwx_gtk2u_unofficial_core-3.1.so.1 wxMessageDialog::ShowModal() 0
/usr/lib/codelite/libwx_gtk2u_unofficial_core-3.1.so.1 wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int) 0
CodeLiteApp::CopySettings(wxString const&, wxString&) 0
/lib/x86_64-linux-gnu/libpthread.so.0 0
/lib/x86_64-linux-gnu/libc.so.6 gsignal 0
/lib/x86_64-linux-gnu/libc.so.6 abort 0
/lib/x86_64-linux-gnu/libc.so.6 0
/lib/x86_64-linux-gnu/libc.so.6 0
/lib/x86_64-linux-gnu/libc.so.6 cfree 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxFFile::ReadAll(wxString*, wxMBConv const&) 0
/usr/lib/codelite/liblibcodelite.so JSONRoot::JSONRoot(wxFileName const&) 0
/usr/lib/codelite/liblibcodelite.so clConfig::clConfig(wxString const&) 0
/usr/lib/codelite/WebTools.so WebToolsConfig::Load() 0
/usr/lib/codelite/WebTools.so JSCodeCompletion::IsEnabled() const 0
/usr/lib/codelite/WebTools.so clTernServer::OnTernTerminated(clProcessEvent&) 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEvtHandler::SearchDynamicEventTable(wxEvent&) 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEvtHandler::TryHereOnly(wxEvent&) 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEvtHandler::ProcessEventLocally(wxEvent&) 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEvtHandler::ProcessEvent(wxEvent&) 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEvtHandler::ProcessPendingEvents() 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxAppConsoleBase::ProcessPendingEvents() 0
/usr/lib/codelite/libwx_gtk2u_unofficial_core-3.1.so.1 wxApp::DoIdle() 0
/usr/lib/codelite/libwx_gtk2u_unofficial_core-3.1.so.1 0
/lib/x86_64-linux-gnu/libglib-2.0.so.0 g_main_context_dispatch 0
/lib/x86_64-linux-gnu/libglib-2.0.so.0 0
/lib/x86_64-linux-gnu/libglib-2.0.so.0 g_main_loop_run 0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 gtk_main 0
/usr/lib/codelite/libwx_gtk2u_unofficial_core-3.1.so.1 wxGUIEventLoop::DoRun() 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEventLoopBase::Run() 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxAppConsoleBase::MainLoop() 0
/usr/lib/codelite/libwx_baseu_unofficial-3.1.so.1 wxEntry(int&, wchar_t**) 0
main 0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main 0
_start 0
Re: Frequent crashs
Posted: Sat Mar 31, 2018 5:10 pm
by eranif
Try to delete the files: ~/.codelite/config/codelite.conf and ~/.codelite/config/codelite.xml
(you will lose your local settings, but it should fix your crash)
Eran
Re: Frequent crashs
Posted: Mon Apr 02, 2018 5:26 pm
by sato
I deleted these files. For now, no more crash (but i didn't code a lot since) . Thanks.
Re: Frequent crashs
Posted: Fri Apr 06, 2018 1:14 pm
by sato
Unfortunately, a crash again when saving.
Note sure how to use gdb terminal.
Code: Select all
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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".
Attaching to process 24113
ptrace: Aucun processus de ce type.
(gdb) bt
No stack.
(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) dgb /usr/bin/codelite
Undefined command: "dgb". Try "help".
(gdb) dgb /usr/bin/codelite
Undefined command: "dgb". Try "help".
(gdb) bt
No stack.
(gdb) bt
No stack.
(gdb)
I'm often using bookmark too. After a crash, all bookmarks are not more synchronized with the good lines. And often, when i want to remove one bookmark, i have to press a lot of times the CTRL+B key. Maybe a link with the crash?
Re: Frequent crashs
Posted: Fri Apr 06, 2018 4:48 pm
by DavidGH
Hi,
You need to run gdb on the CodeLite instance, which means doing something like:
gdb /usr/bin/codelite
and when it's loaded, do 'r' for 'run':
(gdb) r
Then when it crashes do:
(gdb) bt
and you should get the backtrace.
For all this and much more, see
the online docs; or there's a cheat-sheet
here.
Regards,
David
Regards,
David