Author Topic: how to get rid of contribs enabled ???  (Read 12865 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
how to get rid of contribs enabled ???
« on: January 10, 2006, 06:36:02 pm »
i have serious problems with a C::B build on ubuntu 5.10 with contribs enabled.
every time when i close C::B, it crashes and can't save its configuration file default.conf

how do i get rid of contribs enabled ???

in the past i built C::B with
./configure --enable-contrib 


but now i want to revert this build option,

i tried:
./configure --disable-contrib 

i did a completely fresh svn-checkout, and after
./bootstrap
./configure

all contribs are build again ........ grrrrrrrrrrrrr     :x

where is this info stored, which file do i have to delete to get rid of these contribs enabled ???

any ideas?
thx

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: how to get rid of contribs enabled ???
« Reply #1 on: January 10, 2006, 06:43:27 pm »
Are you really sure that the contrib-plugins are the reason for the crash? Did you disable them and tried again?
Anyway, could you run Code::Blocks within gdb to get a backtrace after the crash and post it here? I'm asking this because I got similar problems, but I'm not sure if it is a problem of Code::Blocks or of my system. Here is the thread where I reported this problem.
If your backtrace is similar to the one I reported I would assume that it is really a problem of Code::Blocks.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: how to get rid of contribs enabled ???
« Reply #2 on: January 10, 2006, 06:48:44 pm »
Are you using the very latest builds? A crash-on-close bug in EditorManager was fixed only 2 days ago.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: how to get rid of contribs enabled ???
« Reply #3 on: January 10, 2006, 06:52:47 pm »
Did you disable them and tried again? ...
that's what i want to try , but no go until all plugins are present, because C::B invokes by default all of them if detected,
when i tried to disable any or all plugins, C::B crashes when trying to save the default.conf.

that's the reason, why i want to build it completely without contribs plugins in order to test if it crashes then too

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: how to get rid of contribs enabled ???
« Reply #4 on: January 10, 2006, 06:54:04 pm »
Are you using the very latest builds? A crash-on-close bug in EditorManager was fixed only 2 days ago.
svn 1701 - its VERY recent  :D

i have these ominous chrashes since the introduction of wxaui

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: how to get rid of contribs enabled ???
« Reply #5 on: January 10, 2006, 06:56:06 pm »
Did you try removing the respective shared libs from the plugins folder? They may not be rebuilt, just be left over from before.
make clean should also have worked (but probably not after a ./configure without --enable-contrib parameter)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: how to get rid of contribs enabled ???
« Reply #6 on: January 10, 2006, 07:17:17 pm »
Did you try removing the respective shared libs from the plugins folder? They may not be rebuilt, just be left over from before.
make clean should also have worked (but probably not after a ./configure without --enable-contrib parameter)
i first tried with
make clean
sudo make uninstall

but then some libs were still left on the harddisk,

then i cleaned everything by hand in /usr/local/...
deleted my trunk directory and did a fresh svn checkout

then after
./bootstrap
./configure

the /src/plugins/contrib/Makefile and /src/plugins/contrib/Makefile.in and
their companions in the contribs subdirectories were generated too - so i was suspicious.

after
make
sudo make install

i found, that C::B was built without the contrib plugins.  :)

BUT - the  crashes are the same as before,  :(
attached is, what the Debug report "codeblocks" has generated ...

[attachment deleted by admin]

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: how to get rid of contribs enabled ???
« Reply #7 on: January 10, 2006, 07:41:29 pm »
now i ran C::B with gdb,

attached are the backtraces for

1.) just run CodeBlocks and exit by File->Quit
2.) run C::B, open a project and say File->Close Project

any ideas ??

[attachment deleted by admin]

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: how to get rid of contribs enabled ???
« Reply #8 on: January 10, 2006, 08:02:19 pm »
Are you using the very latest builds? A crash-on-close bug in EditorManager was fixed only 2 days ago.
svn 1701 - its VERY recent  :D

i have these ominous chrashes since the introduction of wxaui
I can confirm that, I have these crashes, too.

Quote from: tiwag
1.) just run CodeBlocks and exit by File->Quit
2.) run C::B, open a project and say File->Close Project
The backtrace for the first test is exactly what I get. I didn't test the second one, but I would guess its the same result as you got.

Anyway, did the crash still occur if you modified your layout (so that Code::Blacks askes you if it should save the changes)?
« Last Edit: January 10, 2006, 08:05:30 pm by Der Meister »
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: how to get rid of contribs enabled ???
« Reply #9 on: January 10, 2006, 08:05:25 pm »
wxApp::Yield() seems to appear quite a lot... let's hope this isn't a recursive Yield crash?  :?

Have you tried disabling code completion? It is the only one still using unsafe Yields.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: how to get rid of contribs enabled ???
« Reply #10 on: January 10, 2006, 08:06:18 pm »
The crash happend even with *no* plugin loaded. Thus I don't believe that code-completion is involved in this crash.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: how to get rid of contribs enabled ???
« Reply #11 on: January 10, 2006, 08:16:27 pm »
Think you could set a breakpoint into the first line of MainFrame::OnApplicationClose and then keep stepping into until the crash happens?

Should not take forever (maybe 100-200 steps), and might reveal the problem.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: how to get rid of contribs enabled ???
« Reply #12 on: January 10, 2006, 08:20:47 pm »
Well, I will test this, but you have to wait a bit. I don't have access to my linux-machine before friday afternoon.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: how to get rid of contribs enabled ???
« Reply #13 on: January 10, 2006, 08:22:03 pm »
Could you update to 1702 and try again? I must have fixed it now.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: how to get rid of contribs enabled ???
« Reply #14 on: January 10, 2006, 09:02:23 pm »
Could you update to 1702 and try again? I must have fixed it now.
test it soon - i'll report in approx. one hour ...