News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

[RESOLVED]Build 9251 : Crash when trying to search

Started by darksquall57, August 13, 2013, 10:36:24 AM

Previous topic - Next topic

darksquall57

Hi,

I just updated my version of CodeBlocks through svn ( version 9251 ) and it crashes everytime when I try to do a simple search ( CTRL + F or even just F3 and when trying to open the search panel too ).
I hope it can be fixed rapidly because I use this function many times everyday.

oBFusCATed

Are you sure you've build it correctly?
Have you tried to bisect which revision introduced the problem?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

darksquall57

#2
I have used these lines to build it :

sudo ./bootstrap
sudo ./configure --with-contrib-plugins="all,-spellchecker,-BrowseTracker,-FileManager,-NassiShneiderman"
sudo make -j8
sudo make install


I'll try checkout some previous versions to check.
I don't remember which was my previous version but something around 9150.
I saw in the svn log that some work has been done on the "Find" and "Replace" functions, maybe it's coming from here.

EDIT:
I just forgot to say I'm on Linux, and I'm running Ubuntu 12.04 LTS.

Jenna

Did you build in a clean tree ?
Preferable an own build-folder, that can be cleaned easily by removing the whole content.
Do you have development-packages of C::B installed ?

oBFusCATed

1. generally sudo is dangerous in the first 3 commands and it is not recommended to use it
2. make install is dangerous to use over an old install, because there might be old files that get loaded and produce random crashes
2.1 if you want to use make install it is safer to use --prefix=/home/myuser/software/cb/ and before doing the make install execute rm /home/myuser/software/cb/, this way you'll get a clean install. Putting everything in /usr/local makes it impossible to remove just codeblocks.
3. it is better to learn how to build debian packages, it is a lot safer in the longer run and it isn't very complex.

So just to be sure your install is clean please remove everything related to codeblocks in /usr/local and do another make install.
Jens' comments are valid, too.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

darksquall57

Okay, I'll try that and I'll come back with more infos :).
Thanks everyone.

darksquall57

Okay, it works now.

As said oBFusCATed, I removed everything from Codeblocks in the /usr/local/.
Then I removed my directory containing the Codeblocks svn.
And I made a completely new checkout in a new directory.

Then here the commands I used :

./bootstrap
./configure --prefix=/home/USER/Codeblocks/
make -j8
sudo rm -r /home/USER/Codeblocks/
mkdir /home/USER/Codeblocks/
make install


As you can see I didn't install all the plugins this time, but I'll do, to see my problem is or not coming from a plugin.

darksquall57

Finally, it works with plugins, so what I did in my previous post did the trick.
Thanks oBFusCATed and thanks jens :D.