CLion 2019.2 text color coding somehow leaks memory on linux?
Hey,
I have started to notice that CLion gets slow after I've been using it for a while. After editing any text, the text editor loses all color coding (all text appears white which is kinda irritating, this bug/behavior makes all kinds of development difficult), debugging is slow and if I try to jump over code too fast (pressing the button faster than once per two seconds or so) the File-menu opens up for some reason? Color coding is restored once I reboot the program, but it is lost as soon as I edit code or even hit space bar once.
I rebooted my system, started htop and let the system just idle for a while. Without anything else turned on the system stays at 0.5G ram used.
I start CLion and in half a minute I'm at 1.5G ram used. I don't do any work, I just wait to see if the memory usage increases and sure enough, it does. CLion doesn't report that it's doing anything but the memory usage slowly goes up and up until I close the program at over 4G ram used.
After looking at the problem closely I noticed that as long as there is color coding in the C++ -code, the memory usage keeps going up and up without end. When I edit the code, all text turns white and memory usage stops going higher.
I'm currently using Arch Linux. I removed all plugins that I had downloaded but the problem persists.
Does anyone know why this is happening and how could it be fixed?
Please sign in to leave a comment.
Hi Zen!
Please try using CLion 2019.3 EAP which contains a lot of performance improvements.
Also do you have all options in File | Settings | Languages & Frameworks | C/C++ | Clangd enabled?
Hey Anna,
I indeed had everything enabled in Clangd.
As soon as I disabled the part where it says "Show errors and warnings from clangd", the color coding was restored and memory usage stopped increasing. Everything seems to work now in the version 2019.2. I didn't yet upgrade to 2019.3 EAP.
Thanks for all the help and have a nice day!