GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Editra uses 100% if left alone for a few hours #464

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use Editra to edit some files, cpu usage is low
2. leave it open and running overnight
3. come back in the morning and look at the cpu usage

What is the expected output? What do you see instead?
-> cpu usage is very high, much higher than at start-up

What version of the product are you using? On what operating system?
-> v5.30 on debian testing

What method of install was your version installed with (Binary/Source)?
-> Binary package on debian. Seeing the same behavior when running from svn
sources.

If from source: What version of python and wxPython are you using?
-> Phython 2.5.4, wx.version() returns '2.8.10.1 (gtk2-unicode)'

Please provide any additional information below.
I can reproduce this every time and I'm willing to debug more and fix this
if someone gives me some pointers on how to get started investigating. I'm
familiar with python, not wxPython.

Original issue reported on code.google.com by gaudet.e...@gmail.com on 27 Jan 2010 at 2:39

GoogleCodeExporter commented 9 years ago
Hi,

Are you running on a 32 or 64 bit platform?

Please run Editra in profiler mode (Editra -p) and let it sit till this is 
happening
then send me the output file (editra.prof). This should make it possible to see 
what
is eating the cpu.

Please also include a list of any plugins you have installed and whether it 
matters
what kind of file is open or not.

Thanks!

Cody

Original comment by CodyPrec...@gmail.com on 27 Jan 2010 at 3:25

GoogleCodeExporter commented 9 years ago
I'm running on an amd64 machine.

I have the following plugins enabled: Calculator (0.6), CodeBrowser (0.9),
FileBrowser (1.5), MacroLauncher (0.1), Projects (1.5) and PyShell (0.8). Only
CodeBrower and Projects are visible in the window.

I tried with the svn version 5.33, and a .txt file open, and I didn't have 100% 
cpu
usage, so it might have been fixed in the trunk, or it doesn't happen with .txt
files. I'll investigate more.

I'm attaching the profiler file with high cpu usage after a few hours. This is 
with
the binary version 5.30, with a python file open. I can't open the profiler file
because I don't have python-profiler installed, but I'll try to install it.

Thanks,
EG

Original comment by gaudet.e...@gmail.com on 28 Jan 2010 at 5:01

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you I will try to analyze the profile output sometime today and get back 
to you
about it.

(runsnakerun is a nice program for looking at python profiler output.)

Thanks again,

Cody

Original comment by CodyPrec...@gmail.com on 28 Jan 2010 at 5:12

GoogleCodeExporter commented 9 years ago
Hi,

Nothing is immediately jumping out as a cause to this. I do see a larger than
expected number calls to the UpdateUI handling though. There have been some 
changes
in svn head that should reduce the number of update ui calls being made. The
Settings->Lexers menu is now configurable and by default has only a few things 
in it.
Previously there were 70~ items in it each with an update ui handler attached.

Will keep investigating though as most of the update ui time appears to have 
been
spent else where.

Original comment by CodyPrec...@gmail.com on 28 Jan 2010 at 7:53

GoogleCodeExporter commented 9 years ago
I've been using 5.33 from svn for a week non-stop, and I don't see high cpu 
usage
anymore. 

I recommend closing this bug as fixed in 5.33.

Original comment by gaudet.e...@gmail.com on 31 Jan 2010 at 6:21

GoogleCodeExporter commented 9 years ago
Ok thanks for the info will close for now, if it returns let me know.

Cody

Original comment by CodyPrec...@gmail.com on 31 Jan 2010 at 9:58