Code::Blocks

User forums => Help => Topic started by: JamesC on February 02, 2018, 10:42:15 am

Title: CodeBlocks v13.12 now crashes
Post by: JamesC on February 02, 2018, 10:42:15 am
Hi all,

A quick heartfelt thanks for previous guidance given.

After using v13.12 CB for some 6 years on a complex project it now crashes after about 2 minutes compiling with the message "Windows will close the program and notify you if a solution is available."

Even when I remove the newly added C code that I believe I added just prior to the original crash ... it still crashes.

Am apprehensive about installing the latest version of CB because of the problems encountered years ago with the original installation.

When CB is reloaded the logs appear to be empty ... presumably due to the crash.

Could this problem arise due to functions now being too big or perhaps too many #defines?

Any suggestions on how to remedy this occurance would be appreciated.

JimC
Title: Re: CodeBlocks v13.12 now crashes
Post by: Krice on February 02, 2018, 11:43:54 am
How big the project is? How many files and lines of code? What is a big function? Why those functions are big? I think it's in theory possible that compiler can run out of memory when compiling a project if it's extremely large. I guess?
Title: Re: CodeBlocks v13.12 now crashes
Post by: stahta01 on February 02, 2018, 11:59:04 am
Without loading any projects; after you have CB running disable all plugins except for the compiler plugin.
Shutdown code::blocks.

Re-start C::B, and verify the plugins stayed disabled. Load the big project and see if the error have returned.

If it does not likely have a plugin that caused the crash.

If it does, then either C::B, the Compiler, the Operating System, security tool, or virus causing the crash.
On windows, I would try disabling anti-virus scanner and anti-ransom ware and see if that fixes it.

Tim S.
Title: Re: CodeBlocks v13.12 now crashes
Post by: stahta01 on February 02, 2018, 12:01:27 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Link to info that might help us help you.

Tim S.
Title: Re: CodeBlocks v13.12 now crashes
Post by: oBFusCATed on February 02, 2018, 08:49:51 pm
After using v13.12 CB for some 6 years on a complex project it now crashes after about 2 minutes compiling with the message "Windows will close the program and notify you if a solution is available."
Which executable crashes exactly? Codeblocks.exe? The compiler?

Any suggestions on how to remedy this occurance would be appreciated.
Just install the latest version. If the crash is in codeblocks.exe this might fix it. We don't run 13.12 (4 year old version) any more, so we don't know its problems/quirks.
Title: Re: CodeBlocks v13.12 now crashes
Post by: JamesC on February 03, 2018, 04:00:20 am
Jim/Obfuscated and all,

CodeBlocks is the exe that crashes.

By doing a rebuild, I believe I have identified the function where the problem arises (ie it crashed at the same function I amended).

I'm still waiting for rebuild to finish (Suggestion: Rebuild should switch off  the automatic power saving off key ... and issue a double health warning about time taken being proportionate to the project size)

JimC.

PS REM: Crash causes logs to disappear so normal bug report not possible.
PPS Thanks to everybody for their guidance on this matter.
Title: Re: CodeBlocks v13.12 now crashes
Post by: stahta01 on February 04, 2018, 12:26:51 pm
Quote
Paste the contents of codeblocks.RPT here (if Code::Blocks crashed).

From http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)