Author Topic: [RESOLVED]Build 9251 : Crash when trying to search  (Read 8090 times)

Offline darksquall57

  • Multiple posting newcomer
  • *
  • Posts: 23
[RESOLVED]Build 9251 : Crash when trying to search
« on: August 13, 2013, 10:36:24 am »
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.
« Last Edit: August 14, 2013, 09:32:16 am by darksquall57 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Build 9251 : Crash when trying to search
« Reply #1 on: August 13, 2013, 12:12:02 pm »
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!]

Offline darksquall57

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Build 9251 : Crash when trying to search
« Reply #2 on: August 13, 2013, 05:31:09 pm »
I have used these lines to build it :

Code
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.
« Last Edit: August 13, 2013, 05:36:29 pm by darksquall57 »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Build 9251 : Crash when trying to search
« Reply #3 on: August 13, 2013, 05:42:41 pm »
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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Build 9251 : Crash when trying to search
« Reply #4 on: August 13, 2013, 05:46:01 pm »
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!]

Offline darksquall57

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Build 9251 : Crash when trying to search
« Reply #5 on: August 14, 2013, 08:40:01 am »
Okay, I'll try that and I'll come back with more infos :).
Thanks everyone.

Offline darksquall57

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Build 9251 : Crash when trying to search
« Reply #6 on: August 14, 2013, 09:19:17 am »
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 :

Code
./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.

Offline darksquall57

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Build 9251 : Crash when trying to search
« Reply #7 on: August 14, 2013, 09:33:53 am »
Finally, it works with plugins, so what I did in my previous post did the trick.
Thanks oBFusCATed and thanks jens :D.