User forums > Help

Memory Usage After Open Project in Ubuntu 13.04

<< < (2/2)

ollydbg:

--- Quote from: dmoore on November 23, 2013, 04:10:39 pm ---Do you have a minimal project that you can share that reproduces your problem?

--- End quote ---
I would like to try testing CodeCompletion plugin(on Windows) if the OP can supply a minimal project.

darksshades:

--- Quote from: dmoore on November 23, 2013, 04:10:39 pm ---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?

--- End quote ---

Yes, I tested with ppa:damien-moore/codeblocks-nightly just now, rev 9455.
But I doubt its reproductible, this happens in ANY project. For example: I just created an empty project, everything is fine. From the moment I add a .cpp file in the project, even a blank one, the memory starts to go up indefinitly.

As I said, I'm pretty sure this might be some broken package from me end at Ubuntu 13.04. Or even some misconfiguration, who knows, the first time this happend I hadn't updated codeblocks. So I strongly feel its either ubuntu updates, or some incompatible packages I installed.
Sorry I can't be of much help.
But thanks for for help people, I'll keep using it without code completion as I'll soon be changing ubuntu version anyways.

budman85:
Hi,

I can confirm the bug as well.  I ran into this problem using 13.12 under Slackware 14.1.  I tried the SlackBuild which uses the Debian binaries, and also compiled from source. 

I opened CB and left it running idle - it ran for a day solid, with no gain in memory.  The moment I open a new or existing project, it still seems ok.  However, the moment I touch the editor, I notice memory usage starts to climb, until all memory is consumed, forcing other apps to swap out.  Closing the window doesn't help, the memory usage continues to climb.  Checked running processes, there is always one CodeBlock process remaining and you can watch the memory usage increase under top.  When I do a kill on the process, all memory is freed and system returns to normal.

I renamed .codeblocks dir with no difference.  I will try disabling the code completion and using the safe mode option.  :)

Regards
Rich

budman85:
I ran strace on the remaining process to see what it was doing...

strace -c -f -p28065

I saw that 'stat' had over 300 hits in a few minutes.

strace -f -p28065 -o r1


--- Code: ---28229 getcwd("/home/budman", 1024)      = 13
28229 stat("/usr/include/seamonkey-2.24/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/ns
s/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/xpcom/xpcom/nss/xpcom/nspr/prtypes.h", {st_mode=S_IFREG|0644, st
_size=19848, ...}) = 0
28229 getcwd("/home/budman", 1024)      = 13
28229 stat("/usr/include/seamonkey-2.24/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/ns
s/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/xpcom/xpcom/nss/xpcom/nspr/pripcsem.h", {st_mode=S_IFREG|0644, s
t_size=2640, ...}) = 0
28229 getcwd("/home/budman", 1024)      = 13
28229 stat("/usr/include/seamonkey-2.24/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/ns
s/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/xpcom/xpcom/nss/xpcom/nspr/plbase64.h", {st_mode=S_IFREG|0644, s
t_size=2895, ...}) = 0
28229 getcwd("/home/budman", 1024)      = 13
28229 stat("/usr/include/seamonkey-2.24/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/ns
s/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/nss/xpcom/xpcom/nss/xpcom/nspr/prvrsion.h", {st_mode=S_IFREG|0644, s
t_size=3559, ...}) = 0

--- End code ---

I found there were 3 links, that were odd:


--- Code: ---/usr/include/seamonkey-2.24/
lrwxrwxrwx  1 root root    1 Feb 28 21:07 nss -> ./
lrwxrwxrwx  1 root root    1 Feb 28 21:07 plugin -> ./
lrwxrwxrwx  1 root root    1 Feb 28 21:07 xpcom -> ./

--- End code ---

I moved them to another dir, outside of include.  Bingo!

I started up CB, loaded a project, started editing it.
Memory usage stayed at 1.6 all the time I was editing.
No change in memory even after 15 minutes.

Prior, it was jumping within seconds of editing.  
And had nearly 80% of memory within <3 minutes.


Seems ok now.

EDIT: It's been running for 17 hours now, and memory usage is the same.  I was finally able to code it in for several hours last night.  Running fine now.

Regards
Rich

Navigation

[0] Message Index

[*] Previous page

Go to full version