CodeLite 8.1 constant CPU usage

CodeLite installation/troubleshooting forum
MicBoucinha
CodeLite Curious
Posts: 6
Joined: Tue Aug 04, 2015 11:41 am
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite 8.1 constant CPU usage

Post by MicBoucinha »

Hi,

I just installed Codelite 8.1 (I downloaded the provided stable binaries and upgraded from version 8.0) on Window 8 Enterprise x64 (not 8.1).

I'm currently using MinGW from the MinGW-w64 project (two versions: x86_64-5.1.0-win32-seh-rt_v4-rev0 and also i686-5.1.0-posix-dwarf-rt_v4-rev0).

After I upgraded, I opened Codelite and everything seemed ok, until I noticed that my laptop's fan was working more than usual. I went to Task Manager and Codelite was using constantly around 20% of CPU (I have a i7 Q720 - 4 cores with HT). I found it strange and thought that it might be something related some file processing or something (I have somewhat some big files lately). However, this didn't happen with the previous version.

I noticed that Codelite stopped using the CPU when I opened a menu and let it open. This happens with any file open or all closed, and with the different compilers. Also, I tried disabling all the plugins and it keeps using CPU. I created a sample Workspace with a single gcc project and the result is the same.

Does that happen with someone else too?

Also, is there a sort of log or something that I can send to help?

Please let me know if there's more information I can give to help.

Best,
Luís
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by eranif »

Can you remove the %appdata%\CodeLite folder and see if the problem persists?
Which Windows version of CodeLIte did you install? (64 or 32)

Eran
Make sure you have read the HOW TO POST thread
MicBoucinha
CodeLite Curious
Posts: 6
Joined: Tue Aug 04, 2015 11:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by MicBoucinha »

Hi,

I removed the codelite folder on %APPDATA% but it keeps using CPU as it was before.

I'm using the 64bits version of Codelite.

Any other idea of what it might be? Anything else I can do to help?

Best,
Luís
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by eranif »

I am using WIndows 7, 64 bit with no issues.
0% CPU...

Try Can you do a clean install?

- Uninstall CodeLite
- Delete the installation file (C:\Program Files\CodeLite)
- Install fresh new CodeLite

To get some more information, increase CodeLite verbosity:
Settings->Global Editor Preferences->Misc->Log and set the log level to "DEBUG"
The log file is located under: %appdata%\CodeLite\codelite.log

If you are an experienced Windows developer, you could compile codelite in debug mode on Windows and run it under gdb.
Once the CodeLite is running just break the debugger and print the backtrace, do this multiple times and inspect the backtrace to see any hints on what is CodeLite doing

To get some more information:
- Download Process Monitor https://download.sysinternals.com/files ... onitor.zip
- Try open ProcessMonitor and search for codelite.exe (notice that when you monitor CodeLite its CPU will rise by 3-4%)
Make sure you have read the HOW TO POST thread
MicBoucinha
CodeLite Curious
Posts: 6
Joined: Tue Aug 04, 2015 11:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by MicBoucinha »

Hi,

I tried to do what you suggested, and uninstalled, removed the codelite folder (and also the configuration folder on %APPDATA%).

I then installed it again and the situation remained.
I noticed something curious though, Codelite is using CPU, even without a workspace opened.

With that, I went to ProcessMonitor and filtered only for codelite.exe and it seems always trying to access a tzres.dll file. And it keeps trying to access it (trying to find it from different locations and there's a couple of NAME NOT FOUND results... for en-GB, but then it tries to look for the en-US and it has SUCCESS accessing it). I saved part of that log from ProcessMonitor (I attached it).

The codelite log in Debug, doesn't seem to show any information that might be relevant. If you wish I can upload it also.

I haven't tried yet to compile Codelite in Debug mode. I will try during the day if I manage to find some time to do it.

Thanks.
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by eranif »

I might have fixed this, please try this build (looking for more people to confirm this is fixed):
http://codelite.org/downloads/codelite/ ... 64-8.1.exe

Eran
Make sure you have read the HOW TO POST thread
MicBoucinha
CodeLite Curious
Posts: 6
Joined: Tue Aug 04, 2015 11:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by MicBoucinha »

Hi,

Yes, this new build is working nicely.

Thanks so much.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by eranif »

Thanks for confirming this, I will release a CodeLite 8.1.1 update for Windows

Eran
Make sure you have read the HOW TO POST thread
ColinTaylor
CodeLite Expert
Posts: 152
Joined: Fri Jul 15, 2011 2:49 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by ColinTaylor »

Windows 8.1 64-bit

Sorry been a bit delayed testing this ...

Original codelite 8.1.0 was using roughly 8% CPU (on core i7-3770); this is with a workspace open but I wasn't actively using codelite
Modified codelite using 0% CPU under the same scenario, so I am happy this has been fixed
aimic
CodeLite Curious
Posts: 2
Joined: Sun Jul 28, 2013 12:16 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: CodeLite 8.1 constant CPU usage

Post by aimic »

Hi. High load of CPU remained on 32-bit versions.
I use:
CodeLite 8.1 for Windows 32-bit (clean install)
Windows 8.1 Enterprise 32-bit
TDM-GCC 5.1.0 32-bit download from site which open codelite.
2015-08-07.png
You do not have the required permissions to view the files attached to this post.
Post Reply