News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

CodeBlocks v13.12 now crashes

Started by JamesC, February 02, 2018, 10:42:15 AM

Previous topic - Next topic

JamesC

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

Krice

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?

stahta01

#2
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Quote from: JamesC on February 02, 2018, 10:42:15 AM
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?

Quote from: JamesC on February 02, 2018, 10:42:15 AM
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.
(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!]

JamesC

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.

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]