Author Topic: CodeBlocks 16.01 crashes randomly on Linux Mint  (Read 424 times)

Offline Hyena

  • Single posting newcomer
  • *
  • Posts: 5
CodeBlocks 16.01 crashes randomly on Linux Mint
« 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)
« Last Edit: December 22, 2017, 01:40:29 pm by Hyena »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10474
    • Travis build status
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #1 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).
(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!]

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1638
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #2 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.

Offline Hyena

  • Single posting newcomer
  • *
  • Posts: 5
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #3 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.

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1638
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #4 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

Offline Hyena

  • Single posting newcomer
  • *
  • Posts: 5
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #5 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.

Offline fix

  • Single posting newcomer
  • *
  • Posts: 1
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #6 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

Offline Hyena

  • Single posting newcomer
  • *
  • Posts: 5
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #7 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10474
    • Travis build status
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #8 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
(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!]

Offline Hyena

  • Single posting newcomer
  • *
  • Posts: 5
Re: CodeBlocks 16.01 crashes randomly on Linux Mint
« Reply #9 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