Page 1 of 2

Function "Find" not reliable + reccurent crashes

Posted: Sun Mar 13, 2016 2:55 am
by sato
The search function is not working properly. (CTRL-F)
Often it doesn't match occurrences and when it finds occurence, it target to bad part of the document.
Version used: 9.1.0 (Ubuntu /32 ) Document type: .js

A lot of crashes also, when start typing "for"

Re: Function "Find" not reliable + reccurent crashes

Posted: Sun Mar 13, 2016 8:44 pm
by eranif
A lot of crashes also, when start typing "for"
Can you paste the content of the file ~/.codelite/crash.log here?
sato wrote:The search function is not working properly. (CTRL-F)
Often it doesn't match occurrences and when it finds occurence, it target to bad part of the document.
This can happen if the file is opened with wrong encoding (settings->preferences->misc->locale->file font encoding) make sure it is set to UTF-8 or the correct encoding.
I would also guess that your file contains some non ASCII characters (Russian, Hebrew, Chinese etc)

Can you upload a sample file here?

Eran

Re: Function "Find" not reliable + reccurent crashes

Posted: Mon Mar 14, 2016 6:40 pm
by sato
Here crash.log:

Code: Select all

17/02/16 - 14:34:39
 CodeLiteApp::OnFatalException()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0   0
[0xb770abc4]   0
/lib/i386-linux-gnu/libc.so.6   0
/lib/i386-linux-gnu/libc.so.6 vfwprintf  0
/lib/i386-linux-gnu/libc.so.6 __vswprintf_chk  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxVsnprintf(wchar_t*, unsigned int, wxString const&, char*)  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0   0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxString::DoFormatWchar(wchar_t const*, ...)  0
/usr/lib/i386-linux-gnu/codelite/WebTools.so clTernServer::OnTernWorkerThreadDone(clTernWorkerThread::Reply const&)  0
/usr/lib/i386-linux-gnu/codelite/WebTools.so wxAsyncMethodCallEvent1<clTernServer, clTernWorkerThread::Reply const&>::Execute()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEvtHandler::ProcessEventLocally(wxEvent&)  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEvtHandler::ProcessPendingEvents()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxAppConsoleBase::ProcessPendingEvents()  0
/usr/lib/i386-linux-gnu/codelite/libwx_gtk2u_unofficial_core-3.1.so.0 wxApp::DoIdle()  0
/usr/lib/i386-linux-gnu/codelite/libwx_gtk2u_unofficial_core-3.1.so.0   0
/lib/i386-linux-gnu/libglib-2.0.so.0   0
/lib/i386-linux-gnu/libglib-2.0.so.0 g_main_context_dispatch  0
/lib/i386-linux-gnu/libglib-2.0.so.0   0
/lib/i386-linux-gnu/libglib-2.0.so.0 g_main_loop_run  0
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 gtk_main  0
/usr/lib/i386-linux-gnu/codelite/libwx_gtk2u_unofficial_core-3.1.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEventLoopBase::Run()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxAppConsoleBase::OnRun()  0
/usr/lib/i386-linux-gnu/codelite/libwx_gtk2u_unofficial_core-3.1.so.0 wxAppBase::OnRun()  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEntry(int&, wchar_t**)  0
/usr/lib/i386-linux-gnu/codelite/libwx_baseu_unofficial-3.1.so.0 wxEntry(int&, char**)  0
 main  0
/lib/i386-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0

About CTRL-F function, I use French characters (é,ç,etc) .( I'll check my encoding.)
UTF-8 is not the default encoding for nodejs files? (* .js)

Re: Function "Find" not reliable + reccurent crashes

Posted: Mon Mar 14, 2016 6:45 pm
by eranif
The crash looks like related to encoding (probably during string conversion)
Having the offending file to test it, will be great

Thank
Eran

Re: Function "Find" not reliable + reccurent crashes

Posted: Mon Mar 14, 2016 7:02 pm
by sato
Problem is when crash occur, files are not saved. So, can't produce a example file. :?

Re: Function "Find" not reliable + reccurent crashes

Posted: Tue Mar 15, 2016 2:31 am
by sato
How to set UTF-8 encoding with CodeLite for *.JS and *.HTML (with Javascript)?

Re: Function "Find" not reliable + reccurent crashes

Posted: Tue Mar 15, 2016 4:26 pm
by eranif
You set it globally for all file types.
Settings->Preferences->Misc->Locale

and select "UFT-8"

Eran

Re: Function "Find" not reliable + reccurent crashes

Posted: Wed Mar 16, 2016 6:20 pm
by sato
Thank you. :P

I had no crash since.

Re: Function "Find" not reliable + reccurent crashes

Posted: Fri Mar 18, 2016 4:23 pm
by sato
but the search results do not always target the component properly (several pages before or after).

Re: Function "Find" not reliable + reccurent crashes

Posted: Mon May 02, 2016 2:10 pm
by sato
That made one moment that I had not coded with CodeLite, I installed Kubuntu 16.04

Codelite: 9.1.6

Unfortunately, the crashs persist. >10 crashes for today! :(

Impossible to use Codelite for dev.

Settings -> Preferences -> Misc -> File font encoding: UTF-8 & Enable localisation: fr_FR

Code: Select all

02/05/16 - 11:46:00
 CodeLiteApp::OnFatalException()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/lib/x86_64-linux-gnu/libpthread.so.0   0
/lib/x86_64-linux-gnu/libc.so.6 wcslen  0
/lib/x86_64-linux-gnu/libc.so.6 vfwprintf  0
/lib/x86_64-linux-gnu/libc.so.6 __vswprintf_chk  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxVsnprintf(wchar_t*, unsigned long, wxString const&, __va_list_tag*)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxString::DoFormatWchar(wchar_t const*, ...)  0
/usr/lib/x86_64-linux-gnu/codelite/WebTools.so clTernServer::OnTernWorkerThreadDone(clTernWorkerThread::Reply const&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEventLocally(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxApp::DoIdle()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0   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/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEventLoopBase::Run()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEntry(int&, wchar_t**)  0
 main  0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0

Code: Select all

02/05/2016 - 12:06:35
 CodeLiteApp::OnFatalException()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/lib/x86_64-linux-gnu/libpthread.so.0   0
/lib/x86_64-linux-gnu/libc.so.6 wcslen  0
/lib/x86_64-linux-gnu/libc.so.6 vfwprintf  0
/lib/x86_64-linux-gnu/libc.so.6 __vswprintf_chk  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxVsnprintf(wchar_t*, unsigned long, wxString const&, __va_list_tag*)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxString::DoFormatWchar(wchar_t const*, ...)  0
/usr/lib/x86_64-linux-gnu/codelite/WebTools.so clTernServer::OnTernWorkerThreadDone(clTernWorkerThread::Reply const&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEventLocally(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxApp::DoIdle()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0   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/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEventLoopBase::Run()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEntry(int&, wchar_t**)  0
 main  0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0

Code: Select all

02/05/2016 - 12:16:56
 CodeLiteApp::OnFatalException()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/lib/x86_64-linux-gnu/libpthread.so.0   0
/lib/x86_64-linux-gnu/libc.so.6 wcslen  0
/lib/x86_64-linux-gnu/libc.so.6 vfwprintf  0
/lib/x86_64-linux-gnu/libc.so.6 __vswprintf_chk  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxVsnprintf(wchar_t*, unsigned long, wxString const&, __va_list_tag*)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxString::DoFormatWchar(wchar_t const*, ...)  0
/usr/lib/x86_64-linux-gnu/codelite/WebTools.so clTernServer::OnTernWorkerThreadDone(clTernWorkerThread::Reply const&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEventLocally(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxApp::DoIdle()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0   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/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEventLoopBase::Run()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEntry(int&, wchar_t**)  0
 main  0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0

Code: Select all

02/05/2016 - 13:58:23
 CodeLiteApp::OnFatalException()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/lib/x86_64-linux-gnu/libpthread.so.0   0
/lib/x86_64-linux-gnu/libc.so.6 wcslen  0
/lib/x86_64-linux-gnu/libc.so.6 vfwprintf  0
/lib/x86_64-linux-gnu/libc.so.6 __vswprintf_chk  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxVsnprintf(wchar_t*, unsigned long, wxString const&, __va_list_tag*)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxString::DoFormatWchar(wchar_t const*, ...)  0
/usr/lib/x86_64-linux-gnu/codelite/WebTools.so clTernServer::OnTernWorkerThreadDone(clTernWorkerThread::Reply const&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEventLocally(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxApp::DoIdle()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0   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/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEventLoopBase::Run()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEntry(int&, wchar_t**)  0
 main  0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0

Code: Select all

02/05/2016 - 15:01:11
 CodeLiteApp::OnFatalException()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/lib/x86_64-linux-gnu/libpthread.so.0   0
/lib/x86_64-linux-gnu/libc.so.6 wcslen  0
/lib/x86_64-linux-gnu/libc.so.6 vfwprintf  0
/lib/x86_64-linux-gnu/libc.so.6 __vswprintf_chk  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxVsnprintf(wchar_t*, unsigned long, wxString const&, __va_list_tag*)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0   0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxString::DoFormatWchar(wchar_t const*, ...)  0
/usr/lib/x86_64-linux-gnu/codelite/WebTools.so clTernServer::OnTernWorkerThreadDone(clTernWorkerThread::Reply const&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEventLocally(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEvtHandler::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::ProcessPendingEvents()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxApp::DoIdle()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0   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/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.1.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEventLoopBase::Run()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.1.so.0 wxEntry(int&, wchar_t**)  0
 main  0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0