CLion freezes/crashes when running a build configuration

Answered

I have CLion version 2019.1.4 installed on an Ubuntu 18.04 LTS machine. I have a very odd issue that occurs if and only when a build configuration fails. Whenever this does occur though, the whole GUI suffers some form of rendering error. All console logs (inc. CMake, builds, plus any extras from plugins) no longer log any data, and all progress bars and loading rings just stop progressing and spinning.

Even more strangely, any moving of the window and/or resizing seems to cause the Win XP-esque 'ghost window' effect, everything starts rendering over itself whenever the window size changes. This obviously renders the whole IDE unusable until a restart.

Note that this only occurs when a build fails. If a build passes, everything continues as normal. Also, using the 'run' command to compile and execute a regular C++ file on my own machine doesn't cause this, even if it fails. I have only found this to occur with build configurations, whether building locally, or for an Arduino, as I'm currently trying to do.

I have attached an image below showing what I mean:

I was simply using a PlatformIO build configuration to compile and upload a single source file to an Arduino. If this configuration fails for whatever reason, the aforementioned errors break loose and I need to restart the program to continue.

What I have tried:

 

  • reinstalling from the Ubuntu software store

  • invalidating caches and restarting (multiple times)

  • removing Ubuntu's pre-packaged distribution and installing from the official Jetbrains toolbox program

  • running different build configurations

  • changing the boot JDK in use by CLion (I have tried both OpenJDK as well as the Oracle JDK, both to no avail)

  • allocating more RAM (the crashes occur even when CLion has 10GB RAM allotted to it).

Any help would be much appreciated, cheers!

1
5 comments

Hello!

Could you please install CLion 2019.2 EAP and try using it? Does the issue happen in it? Note that you don't need to uninstall the stable version in order to test the EAP build - they can be installed side-by-side.

0
Avatar
Permanently deleted user

Installed EAP and gave it a go, it suffers from the same issues sadly

2
Avatar
Permanently deleted user

Any ideas on this?

 

1

Please archive the log folder (Help | Show Log in ...) and send it to clion-support at jetbrains.com. Note that logs might contain private user's information (like file paths and names). 

0

Reducing the number of cores used for compilation solved the issue for me, I have a 12 core machine and reduced the number to 6 via:

Settings | Build,Execution,Deployment | CMake | Debug | Build options -- -j 6 

I hope this helps :-)

0

Please sign in to leave a comment.