Page 1 of 1
Crash on startup...
Posted: Wed Sep 03, 2014 7:31 pm
by Rory
Xubuntu 14.02, CodeLite 5.4 + CodeLite 6.1
Usually when this happens I simply remove the CodeLite directory from my home folder. But this crash still persists even after doing that. I'm using an older version of CodeLite because the debugger is inbedded, but when I make install a newer version I get the same error:
*** Error in `codelite': free(): invalid pointer: 0x00007fd9273832c0 ***
Are there other codelite files around the place that need to be deleted too?
Re: Crash on startup...
Posted: Wed Sep 03, 2014 7:34 pm
by eranif
1. Are the 2 codelites installed on different folders?
2. Did you build it with --prefix?
3. what happens when you launch codelite like this:
4. Do both codelite crash on startup? or .. ?
I would guess a clash between either wx version or plugins from different versions
Thanks,
Eran
Re: Crash on startup...
Posted: Thu Sep 04, 2014 2:20 pm
by Rory
Thanks. Both versions can be starting with --no-plugins. What about the --prefix option, is this passed to cmake or how can I try it?
Re: Crash on startup...
Posted: Thu Sep 04, 2014 2:30 pm
by eranif
--prefix is something you need to run when compiling codelite.
Building codelite on Linux:
http://codelite.org/Developers/Linux
Building codelite and installing it into a custom folder (/opt/codelite-5.4) in release mode:
Code: Select all
cmake .. -DPREFIX=/opt/codelite-5.4 -DCMAKE_BUILD_TYPE=Release
make -j4
sudo make install
/opt/codelite-5.4/bin/codelite &
Eran
Re: Crash on startup...
Posted: Thu Sep 04, 2014 5:34 pm
by Rory
Still no joy. If I run with no plugins it will start, but as soon as I try a workspace it crashes. Sorry about this, but is there a way to ensure that none of version 6 is still lurking around after I re-installed it version 5.4?
Re: Crash on startup...
Posted: Thu Sep 04, 2014 5:40 pm
by eranif
Can you run the crashing codelite under gdb?
Code: Select all
gdb /path/to/codelite
(gdb)r
... wait for crash ...
(gdb)bt
Eran
Re: Crash on startup...
Posted: Thu Sep 04, 2014 8:17 pm
by Rory
The backtrace from codelite 6 build and crash on startup. I really don't know what caused this. CodeLite was working fine for a long time:
Code: Select all
#0 0x0000000000820592 in std::list<StyleProperty, std::allocator<StyleProperty> >::begin (this=0x8) at /usr/include/c++/4.8/bits/stl_list.h:768
#1 0x00007ffff32fb603 in LexerConf::GetFontForSyle (this=0x0, styleId=0)
at /home/rory/sourcecode/codelite/Plugin/lexer_configuration.cpp:214
#2 0x0000000000837cc9 in OutputTabWindow::InitStyle (sci=0x1665e70, lexer=0,
folding=false)
at /home/rory/sourcecode/codelite/LiteEditor/outputtabwindow.cpp:106
#3 0x00000000008388c9 in OutputTabWindow::CreateGUIControls (this=0x1671eb0)
at /home/rory/sourcecode/codelite/LiteEditor/outputtabwindow.cpp:181
#4 0x0000000000837644 in OutputTabWindow::OutputTabWindow (this=0x1671eb0,
parent=0x159aa50, id=-1, name=...)
at /home/rory/sourcecode/codelite/LiteEditor/outputtabwindow.cpp:69
#5 0x00000000006e91ec in ShellTab::ShellTab (this=0x1671eb0,
parent=0x159aa50, id=-1, name=...)
at /home/rory/sourcecode/codelite/LiteEditor/shelltab.cpp:57
#6 0x00000000006ea39b in DebugTab::DebugTab (this=0x1671eb0,
parent=0x159aa50, id=-1, name=...)
at /home/rory/sourcecode/codelite/LiteEditor/shelltab.cpp:212
#7 0x000000000066903d in DebuggerPane::CreateGUIControls (this=0x1597c60)
at /home/rory/sourcecode/codelite/LiteEditor/debuggerpane.cpp:220
#8 0x0000000000667aad in DebuggerPane::DebuggerPane (this=0x1597c60,
parent=0x123b820, caption=..., mgr=0x123bb98)
at /home/rory/sourcecode/codelite/LiteEditor/debuggerpane.cpp:68
Re: Crash on startup...
Posted: Thu Sep 04, 2014 9:12 pm
by eranif
From the backtrace, seems like you are missing the most basic lexer configuration 'text'
Syntax highlight XML files were changed between version 5.4 and 6.1
But not between 5.4 and 6.0
So I can't really understand how this could happen - unless you have corrupted XML files.
To fully remove codelite, do this (depending on your system)
Code: Select all
sudo -i
rm -fr /usr/share/codelite
rm -fr /usr/lib/x86_64-linux-gnu/codelite/
rm -fr /usr/lib/codelite/
Note that depending on your system, one of the folders /usr/lib/codelite or /usr/lib/x86_64-linux-gnu/codelite/ (note that on 32 bit the path is /usr/lib/i386-linux-gnu/codelite/)
The above will remove all old configuration files and plugins from your system.
Next, re-compile
both codelites using different -DPREFIX attribute
This is the only way to ensure that codelite is installed truly independent from each other
Eran
Re: Crash on startup...
Posted: Thu Sep 04, 2014 9:45 pm
by Rory
That did the trick. Thanks once again for your speedy assistance.