CodeLite Crashing When Clicking Build?

CodeLite installation/troubleshooting forum
Jamie_Edwards
CodeLite Curious
Posts: 5
Joined: Sun Dec 20, 2015 1:37 am
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite Crashing When Clicking Build?

Post by Jamie_Edwards »

Hi guys,

So, this is my first time using the CodeLite IDE and when I've launched CodeLite and create a new project (which all goes without a hitch!)... As soon as I click "Build" or press Ctrl+F5, CodeLite instantly crashes.

A dialog box appears stating that CodeLite crashed and I can either click "yes" and launch gdb, or "no" and let CodeLite crash silently.

I've tried launching CodeLite and do exactly the same things as above and they all come out with it crashing... Here's some information about what I'm using:

Ubuntu 15.10,
CodeLite v9.0.0

and I used both GCC and Cross GCC (x86_64).

any ideas on what could be happening? How I could resolve it?

Any more information you may need, just ask!

EDIT:-
Whilst running gdb I get the following output:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff590f120 in wxXmlDocument::GetRoot() const ()
   from /usr/lib/x86_64-linux-gnu/codelite/libwx_baseu_xml-3.0.so.0
And this is what my crash log looks like:

Code: Select all

22/12/15 - 12:42:12
 CodeLiteApp::OnFatalException()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0   0
/lib/x86_64-linux-gnu/libpthread.so.0   0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu_xml-3.0.so.0 wxXmlDocument::GetRoot() const  0
/usr/lib/x86_64-linux-gnu/codelite/libplugin.so Project::GetName() const  0
 clMainFrame::OnExecuteNoDebug(wxCommandEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEvtHandler::TryHereOnly(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEvtHandler::DoTryChain(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEvtHandler::ProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0 wxWindowBase::TryAfter(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEvtHandler::SafelyProcessEvent(wxEvent&)  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_gtk2u_core-3.0.so.0 wxToolBarBase::OnLeftClick(int, bool)  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_by_name  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   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   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   0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 gtk_propagate_event  0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 gtk_main_do_event  0
/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.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.0.so.0 wxGUIEventLoop::DoRun()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEventLoopBase::Run()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxAppConsoleBase::MainLoop()  0
/usr/lib/x86_64-linux-gnu/codelite/libwx_baseu-3.0.so.0 wxEntry(int&, wchar_t**)  0
 main  0
/lib/x86_64-linux-gnu/libc.so.6 __libc_start_main  0
 _start  0
Last edited by Jamie_Edwards on Tue Dec 22, 2015 4:54 pm, edited 1 time in total.
Jamie_Edwards
CodeLite Curious
Posts: 5
Joined: Sun Dec 20, 2015 1:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by Jamie_Edwards »

It also seems to be defaulting to the Cross GCC (x86_64) compiler everytime I relaunch CodeLite?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by eranif »

Hi Jamie,
I already replied on the Ubuntu forum
Can you please do what I suggested there and post here the results?

Thanks
Eran
Make sure you have read the HOW TO POST thread
Jamie_Edwards
CodeLite Curious
Posts: 5
Joined: Sun Dec 20, 2015 1:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by Jamie_Edwards »

Firstly, I guessed this site may have had maintenance being done on it so I tried to access the documentation on Codelite as best I could whilst I was waiting for an answer.

I've managed to resolve my issue and here's how:

Being from a VSC++ and Eclipse background, I had the assumption that the workspace is already created and when you click file->new you create the project there and then.

It turns out that CodeLite does it differently. CodeLite gets you to create a new workspace, and then you have to create a new project within that workspace.

Of course, I wasn't aware of this so I was just creating a new workspace and then trying to run build which meant that CodeLite didn't know what to do and ultimately decided to crash rather than telling me I needed to create a new project.

But as I said, once I created the project and run build it no longer crashed.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by eranif »

So, you are saying:
- Create a workspace
- Create a file
- Build
- Crash?

Eran
Make sure you have read the HOW TO POST thread
Jamie_Edwards
CodeLite Curious
Posts: 5
Joined: Sun Dec 20, 2015 1:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by Jamie_Edwards »

Yes.

But I then did:

Create new workspace,
Create new project,
Create file,
Build,
No crash, builds and runs the program fine.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by eranif »

Jamie_Edwards wrote:Create new workspace,
Create new project,
Create file,
Build,
I am more interested in the "crash" scenario so I can fix this...
Note, that I tried making it crash (on Windows) but failed, I will try later today on Linux
Eran
Make sure you have read the HOW TO POST thread
Jamie_Edwards
CodeLite Curious
Posts: 5
Joined: Sun Dec 20, 2015 1:37 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite Crashing When Clicking Build?

Post by Jamie_Edwards »

Oh right, ok... GIve us two ticks and I'll try to replicate it and post my findings in the OP.
Post Reply