Author Topic: rev 8583 crash  (Read 11346 times)

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
rev 8583 crash
« on: November 20, 2012, 10:00:21 am »
Hi,

On Windows7 64Bit, self compiled rev8583 wxwidgets 2.8.12
I have currently no debug version of codeblocks available, and there ist no crash report.

try the following:
Create a new project, console application, finish the configuration dialogs, open main.cpp an enter on an empty line "class thr"

rev8500 runs fine.

Martin

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: rev 8583 crash
« Reply #1 on: November 20, 2012, 10:35:11 am »
Is the Codecompletion-plugin enabled ?
If yes, is "Update parser when typing" enabled ?
Try to disable first the second (if enabled) and then the whole plugin, to see if it still crashes.

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: rev 8583 crash
« Reply #2 on: November 20, 2012, 10:41:46 am »
Hi,

its rev 8581 and not 8583.

Codecompletion is enabled.
It still crashes when i disable only "Update parser when typing"
It does not crash when i disable codecompletion.

Martin

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: rev 8583 crash
« Reply #3 on: November 20, 2012, 11:46:04 am »
I'm not able to make it crash here on XP.

Did you do a full rebuild ?
To be sure remove devel output and .objs.
And make sure no *.gch file is remaining in src/include from (much) older builds.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: rev 8583 crash
« Reply #4 on: November 20, 2012, 11:59:10 am »
its rev 8581 and not 8583.
Can you please...
- revert to r8580
- remove all object files related to codecompletion (in .objs\plugins\codecompletion\)
- remove the codecompletion DLL
- re-build CC, using the project file in [C::B SVN]\src\plugins\codecompletion\codecompletion.cbp
- try again with the same example?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5226
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: rev 8583 crash
« Reply #5 on: November 20, 2012, 12:24:33 pm »
I'm not able to make it crash here on XP.
Me too.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: rev 8583 crash
« Reply #6 on: November 20, 2012, 12:26:02 pm »
its rev 8581 and not 8583.
Can you please...
- revert to r8580
- remove all object files related to codecompletion (in .objs\plugins\codecompletion\)
- remove the codecompletion DLL
- re-build CC, using the project file in [C::B SVN]\src\plugins\codecompletion\codecompletion.cbp
- try again with the same example?

i will try it this evening.

Martin

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: rev 8583 crash
« Reply #7 on: November 20, 2012, 12:58:35 pm »
I'm not able to make it crash here on XP.
Me too.
I am able. Just create a console application, then outside the main{} function (a few lines after the closing bracket), start typing:
int main
-> crashes at the time I try to write the "n" if "main".
...but is seems not related to the CC changes after r8580. I'll try with a nightly to see if its my own C::B that causes this.
Also, its not a hard cash, but I get the dialog:
An unhandled exception occurred. Press "Abort" to terminate the program,

"Retry" to exit the program normally and "Ignore" to try to continue.

If I hit "Cancel", I see:
Unknown exception was raised. The application will terminate immediately...

@Martin K.: Can you confirm this?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: rev 8583 crash
« Reply #8 on: November 20, 2012, 01:23:43 pm »
Now it "works" here also.
It seems to happen whenever the cc-tooltip should be shown, Ctrl+Space is enough to make it crash.

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: rev 8583 crash
« Reply #9 on: November 20, 2012, 02:05:10 pm »
I'm not able to make it crash here on XP.
Me too.
I am able. Just create a console application, then outside the main{} function (a few lines after the closing bracket), start typing:
int main
-> crashes at the time I try to write the "n" if "main".
...but is seems not related to the CC changes after r8580. I'll try with a nightly to see if its my own C::B that causes this.
Also, its not a hard cash, but I get the dialog:
An unhandled exception occurred. Press "Abort" to terminate the program,

"Retry" to exit the program normally and "Ignore" to try to continue.

If I hit "Cancel", I see:
Unknown exception was raised. The application will terminate immediately...

@Martin K.: Can you confirm this?

I have a windows 7 64 bit system and it tries to find a solution for this problem... but yes, i can confirm this. And as i mentioned before: rev8500 is OK. I have no version between them on this machine.

Martin

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: rev 8583 crash
« Reply #10 on: November 20, 2012, 02:38:13 pm »
I found the reason... gimme some more time to test...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: rev 8583 crash
« Reply #11 on: November 20, 2012, 02:44:27 pm »
I found the reason... gimme some more time to test...
Fixed in trunk. Please try and report back. Thank you!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: rev 8583 crash
« Reply #12 on: November 20, 2012, 02:58:39 pm »
Fix confirmed !
Maybe we should remove PARSER_IMG_NONE, because it seems to be useless and potential dangerous.
Or at least comment it out, until we do something useful with it,  like binding it to a blank image.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: rev 8583 crash
« Reply #13 on: November 20, 2012, 05:34:02 pm »
Maybe we should remove PARSER_IMG_NONE, because it seems to be useless and potential dangerous.
That wasn't the crash issue, btw. (but feel free to blame me for the crash anyways... :-[). And this image works properly - it also indicates paring failures, i.e. if a visibility could not be obtained. I think it doesn't harm.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: rev 8583 crash
« Reply #14 on: November 20, 2012, 08:20:28 pm »
I found the reason... gimme some more time to test...
Fixed in trunk. Please try and report back. Thank you!

seems to be OK for me.

Martin