Code::Blocks Forums

User forums => Help => Topic started by: Hyena on December 22, 2017, 01:37:44 pm

Title: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: Hyena on December 22, 2017, 01:37:44 pm
I just lost 30 minutes of my work because CodeBlocks randomly crashed. It was not the first time, but it sure was the first time it seriously pissed me off.
I have deliberately disabled automated backups because it seems as if those caused the crashes more often. So my work is lost. I cannot use an IDE
that can do this, it's one of the first priorites of any IDE to guarantee that work is not lost. That said, I'm running CodeBlocks 16.01 on Linux Mint 18.1 Serena.

Attached is a screenshot of my plugins. When it crashes, it doesn't even show me any error message, but today when it crashed it first deleted some spaces
in front of my code lines so I could assume there's a memory corruption bug somewhere there.

Hopefully we can get this fixed soon so I don't have to change an IDE, because I really like CodeBlocks.

edit: one more thing, when it crashed I actually had the program itself running (started from codeblocks). The program remained running even after codeblocks had closed (if it tells you anything)
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: oBFusCATed on December 22, 2017, 06:47:21 pm
What happens if you try to use one of the latest night builds or even the 17.xx rc1?
There where several stability fixes made for ubuntu (probably they affect mint, too).
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: BlueHazzard on December 22, 2017, 08:37:05 pm
i would not disable auto save because of this reason ;)
But also, do you never compiled until the crash? because every time you compile it should save the source files.
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: Hyena on December 27, 2017, 09:59:53 am
i would not disable auto save because of this reason ;)
But also, do you never compiled until the crash? because every time you compile it should save the source files.

I have enabled autosaving again. And I didn't compile. Hopefully we get that stability release soon then.
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: BlueHazzard on December 27, 2017, 09:29:58 pm
I have enabled autosaving again. And I didn't compile. Hopefully we get that stability release soon then.
Have you tried a nightly as obfuscated asked? They have really improved stability A LOT over the time
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: Hyena on December 28, 2017, 09:46:50 am
I have enabled autosaving again. And I didn't compile. Hopefully we get that stability release soon then.
Have you tried a nightly as obfuscated asked? They have really improved stability A LOT over the time

well I have installed Code::Blocks from Mint's software manager, it means I'd prefer to wait for a proper release. If this crashing starts to annoy me now that I have enabled autosave then I will consider removing the software manager's version and installing the nightly build manually.
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: fix on December 28, 2017, 11:05:07 pm
Found this on another forum

Try to disable symbol browser of code completion and see if the crushes stop. Go Settings -> Editor... -> Code Completion (on the left) -> Symbols browser and check "Disable symbols browser".

I had the same issue and this solved it.
Debian 9, Cinnamon and Code::Blocks 16.01
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: Hyena on December 29, 2017, 08:32:45 am
Found this on another forum

Try to disable symbol browser of code completion and see if the crushes stop. Go Settings -> Editor... -> Code Completion (on the left) -> Symbols browser and check "Disable symbols browser".

I had the same issue and this solved it.
Debian 9, Cinnamon and Code::Blocks 16.01

Hi! Thanks for the idea but I discovered that it is already disabled :D

But I should perhaps also comment that sometimes the autocompletion fails to provide me with any options. The only way to fix this is to restart CB. So it could have something to do with autocompletion indeed.
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: oBFusCATed on December 29, 2017, 11:03:14 am
Can you gather a backtrace for one of these crashes?
Here is some info how to do it: https://wiki.ubuntu.com/Backtrace
Title: Re: CodeBlocks 16.01 crashes randomly on Linux Mint
Post by: Hyena on December 29, 2017, 11:24:50 am
Can you gather a backtrace for one of these crashes?
Here is some info how to do it: https://wiki.ubuntu.com/Backtrace

good idea. I have now started codeblocks from gdb
> gdb codeblocks
run

then opened my project file as I normally do, I will do this for some time now and see if I manage to capture this crash again. I must admit it happens rather rarely :( and if it's a memory corruption then backtrace won't help much