Author Topic: Code::Blocks crashes  (Read 9218 times)

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Code::Blocks crashes
« on: August 03, 2005, 04:45:01 pm »
I've just installed Code::Blocks RC1-1, published yesterday...and it crashes :'(

First, it didn't, when I started it; but I changed the settings to enable the close button for tabs, allow message panel hiding and disable the HTML page that displays when we start C::B, it told me that it would work after I restart the app, but when I restart it, segfault...:'(

[EDIT] : the segfault happends after the splash screen appears.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Code::Blocks crashes
« Reply #1 on: August 03, 2005, 05:24:14 pm »
OK first try without the button, and then try without the auto-hiding. What results do you get? (we need this info to pinipoint the bug)

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: Code::Blocks crashes
« Reply #2 on: August 04, 2005, 12:54:52 am »
I can't do anything, it crashes when I start it :(

I tried removing /home/funto/Code::Blocks-funto but didn't change anything.
Furthermore, the old Code::Blocks I had previously installed, which corresponds to the previous RC1 release, crashes too :( I don't understand, because the 2 installs are not in the same folder...

Offline darklordsatan

  • Almost regular
  • **
  • Posts: 132
    • http://eviltrend.sf.net
Re: Code::Blocks crashes
« Reply #3 on: August 04, 2005, 01:17:25 am »
The question is, for example for your installation /home/funto/Code::Blocks-funto, do the config files (xml?) are stored there or somewhere else?

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: Code::Blocks crashes
« Reply #4 on: August 04, 2005, 01:25:41 am »
Just a precision : /home/funto/Code::Blocks-funto si not a directory but a file.

As for the config files, I thought they were created in the "src/devel" directory of the directory where I unzipped all...
« Last Edit: August 04, 2005, 01:27:14 am by Funto »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Code::Blocks crashes
« Reply #5 on: August 04, 2005, 05:51:48 am »
If I recall correctly, codeblocks stores the config files in your /home directory. This is a problem windows users have to tackle, too: Config is stored in the registry, no matter what version of codeblocks you're using.


Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: Code::Blocks crashes
« Reply #6 on: August 04, 2005, 11:05:26 am »
I managed to start it again after renomming ~/.Code::Blocks v1.0 to ~/.Code::Blocks v1.0.back :)

I think I should make a bug report...
But first I will try to identify how to reproduce it more precisely ^^

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: Code::Blocks crashes
« Reply #7 on: August 04, 2005, 11:10:23 am »
Something curious too : what is that ~/Code::Blocks-funto file?
Each time I start C::B it tells me it has just removed this file...

Editing it with GHex tells me, first it contained "31 30 30 38 38 00" and then "31 30 32 37 32 00".

What for?

[EDIT] : the crash happens after we check "auto-hide message pane" and restart C::B.
« Last Edit: August 04, 2005, 11:19:38 am by Funto »

Offline Cray-Z

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code::Blocks crashes
« Reply #8 on: August 04, 2005, 12:19:33 pm »
I managed to compile C::B under Mandriva 2005 (but i didnt know there was a rc1-1, i still use rc1) .
It crashes a lot there too :( I cant close C::B without segfaulting, same for projects importation) .

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Code::Blocks crashes
« Reply #9 on: August 04, 2005, 05:43:26 pm »
Cray-Z: Please compile RC1-1. And if you can help to debug it, even better :D

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Code::Blocks crashes (BUG FIXED!!! :D )
« Reply #10 on: August 12, 2005, 08:33:52 am »
Good news people!  8) I just installed Ubuntu 5.04 (Hoary Hedge) on my system, and the effort has finally brought its fruits!

:D :D :D :D I COULD FIX THE EVER-PRESENT CRASH ON EXIT!!! :D :D :D :D

The error was due to deleting nodes which contained the files. But then, the Notebook would destroy itself (as it should), deleting its contained editors (as it should). But it also deleted the editors that were PREVIOUSLY deleted! This would cause a segfault on Linux (Windows is too dumb to detect these). Fortunately, I was running the debug version of codeblocks under Linux GDB, and it showed everything!

This made me realize where the problem was.

So I replaced all that for a simple solution: Close all files before doing the cleanup (D'OH! :lol: ). And to my surprise, this would make Code::Blocks close INSTANTLY! No 2 second delays! :D :D :D

Anyway, I have to apologize, because I think it was I who caused that bug when trying to optimize something 3 months ago :oops:

Anyway, I detected a couple of dialog bugs in Linux, something to do with SetString. Well, I guess it's time to fix all those Linux bugs! :)
« Last Edit: August 12, 2005, 08:38:57 am by rickg22 »

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Code::Blocks crashes (BUG FIXED!!! :D )
« Reply #11 on: August 12, 2005, 08:57:17 am »
...:D :D :D :D I COULD FIX THE EVER-PRESENT CRASH ON EXIT!!! :D :D :D :D...


[attachment deleted by admin]

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: Code::Blocks crashes
« Reply #12 on: August 12, 2005, 02:57:58 pm »
Yeaaaaaaah  8)