User forums > Help

Memory Usage After Open Project in Ubuntu 13.04

(1/2) > >>

darksshades:
Hello,

Something really strange started happening for some time now.
After opening a project with codeblocks, its memory usage starts rising until there is no more RAM left.

This is probably some ubuntu related problem or some random incompatibility thing, but it only happens with codeblocks when opening a project.

I tried a full reinstalation using both ubuntu universe repository and ppa:damien-moore/codeblocks-nightly for the latest nightly build.
And was removing codeblock with sudo apt-get autoremove codeblocks --purge; sudo apt-get remove libcodeblocks0 --purge;
Or using synaptic and removing everything with 'codeblocks' in it.



The console log after the 'Open...' operation is:

--- Code: ---Starting batch parsing for project 'Box2D - SFML'...
Pool task operated?!
Pool task operated?!
Pool task operated?!
Pool task operated?!
Pool task operated?!
Pool task operated?!
Pool task operated?!
Pool task operated?!
ReadClsNames() : Unexpected token '((__aligned__))'.
Already current parser present?!
Project 'Box2D - SFML' parsing stage done!
Project 'Box2D - SFML' parsing stage done (241 total parsed files, 7997 tokens in 0 minute(s), 0.268 seconds).
Updating class browser...
Class browser updated.

--- End code ---

But after that it stays normal without any errors.
Also if some project was open, codeblock task stays alive even after closing the window.

As I said, this is probably something on me ubuntu thats making it all go wrong, I'm going to change my distribution in a couple of months so not really that concerned about it.
But just wondering if anyone seen anything like this before?

Edit:
  I installed codeblocks 13.12, and now codeblocks was crashing after the update-compilers popups. I found the same problem here http://forums.codeblocks.org/index.php/topic,18088.0.html and here http://forums.codeblocks.org/index.php/topic,18113.0.html and it seems it is a problem with ubuntu's gtk+.
Then I remembered that I had installed gtkmm some time ago(maybe about the time code completion stopped working, not sure), so I uninstalled it with:
    sudo apt-get remove libgtkmm-3.0-dev --purge --auto-remove
And installed codeblocks 13.12 from the latest debian-stable from the site.
Also, I removed the ~/.codeblocks

I don't know if it was the version 13.12 or the gtkmm problem, but now the code completions is working normaly again o/

dmoore:
I haven't encountered this.

Does this happen for any project or just a specific one?
What do you have in ~/.codeblocks? Try temporarily renaming that folder to see if a fresh start makes a difference.

After that, have you tried disabling plugins? CodeCompletion is a leading candidate for errors. But try starting with --safe-mode, enable the compiler plugin and open your project..

Jenna:
And very important (as always !!):
which version of C::B do you use ?

darksshades:

--- Quote from: dmoore on November 23, 2013, 02:10:52 pm ---I haven't encountered this.

Does this happen for any project or just a specific one?
What do you have in ~/.codeblocks? Try temporarily renaming that folder to see if a fresh start makes a difference.

After that, have you tried disabling plugins? CodeCompletion is a leading candidate for errors. But try starting with --safe-mode, enable the compiler plugin and open your project..

--- End quote ---

Nice sugestion! Disabling the CodeCompletion plugin when loading a project seems to solve it.

PS: I've had already removed my previous ~./codeblocks configuration files.
Using the latest Code::Blocks 12.11 as of now. (stable version from universe raring)

dmoore:
Do you have a minimal project that you can share that reproduces your problem? To the extent this is caused by a bug in our code we would obviously like to fix it.

Problem occurs with both 12.11 and rev 9455 right?

Navigation

[0] Message Index

[#] Next page

Go to full version