Menu

#316 RAM usage

Release_xx.yy
fixed
None
Bug_Report
2016-05-05
2016-03-15
hoske owl
No

After updating codeblocks gets all RAM.
The usage are increasing after "Build and run" any project. Codeblocks gets more and more ram every minute until RAM ends.
The process do not want to finish after quiting. I should kill him with "kill -9" command.

Codeblocks wx2.8.12
Linux 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux

1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2016-03-15

    I can't reproduce it on my machine.
    Are you able to reproduce this with the attached project?
    Are you using some non default gtk2 theme?
    Do you have the Code completion plugin enabled? Have you tried to disable it?

     
  • hoske owl

    hoske owl - 2016-03-16

    I've reproduced it. But i made a mistake. If I open non-project file (single cpp) I get a big RAM usage (without "Build and compile", just open).
    I use standart theme and code completion plugin is enabled.
    After disabling that plugin issue was gone.

     
  • Teodor Petrov

    Teodor Petrov - 2016-03-16

    Is the Test.cpp file in the project enough to reproduce the problem?
    I've tried without a project but still fail to reproduce the problem.

     
  • hoske owl

    hoske owl - 2016-03-16

    main.cpp is enough.
    I've got that file have to be in home directory.

     
  • ollydbg

    ollydbg - 2016-03-16

    From the log files(which CodeCompletion plugin enabled), I see the parsing is done correctly.
    One guess is the header file crawler, can you disable it in the CC plugin, and test it again?
    It's the option: "enable headers code-completion" in the CC's configure dialog.

     
  • Teodor Petrov

    Teodor Petrov - 2016-03-17

    I can't reproduce it.
    Can you run cb in terminal and use the -v option then post the log?

     
  • hoske owl

    hoske owl - 2016-03-17

    The option "enable headers code-completion" was unchecked. After that RAM usage returned to normal.
    Verbose output with option also was attached.

     
  • Teodor Petrov

    Teodor Petrov - 2016-03-17

    You've disabled the option "enable headers code-completion" and now there is RAM spike now right?
    Can you list your home folder (ls -la ~) and post it here?

     
  • hoske owl

    hoske owl - 2016-03-17

    Right

     
  • Teodor Petrov

    Teodor Petrov - 2016-03-17

    Can you create a folder inside the home folder and save the file there then tell us if the bug continues to happen?

     
  • hoske owl

    hoske owl - 2016-03-18

    If I move file to a directory, bug stops even I open file from home directory.
    But if I open file from home directory as the second file, I observe fast difference of RAM usage. I mean that in the first second I observe 2.6Gb free, in next second I observe 2.5Gb free, in next second I observe 2.6Gb free and all are repeating.

     
  • Teodor Petrov

    Teodor Petrov - 2016-03-18

    How much ram does codeblocks use when you see the bug?
    It is a problem only if the memory usage is rising but not dropping.
    If it drops then rises, this is not a problem.

     
  • hoske owl

    hoske owl - 2016-03-18

    The max usage of memory was 4Gb (during the bug).

     
  • Teodor Petrov

    Teodor Petrov - 2016-03-22

    Do you have circular symbolic links in the home folder?
    Can you try to copy staff from the home folder to another empty folder until you find the file that cause the memory spike?

    Another option is to debug cb with something like valgrinds memusage tools or heaptrack.

     
  • Teodor Petrov

    Teodor Petrov - 2016-05-05
    • labels: wx2.8.12 -->
    • status: open --> fixed
    • assigned_to: Teodor Petrov
    • Type: Undefined --> Bug_Report
     
  • Teodor Petrov

    Teodor Petrov - 2016-05-05

    Should be fix in rev 10847. Please test and report back if this is not the case.

     

Log in to post a comment.