Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Editor slow or hangs

This is a recurrence of a problem which I had a couple of months ago. It disappeared magically but is now back.

For some reason the Photran editor seems to hang when I try to edit files in there.  I am using Red Hat Linux, eclipse CDT version 6, Photran version 5. This is a makefile project.

1. The files are free format f90 files.
2. Each file has about a 1000 lines in it and it is part of a big project (15-20 files, sub directories, modules, etc). 
3. Indexing and refactoring is turned off
4. I have the Subclipse plug in, but this project is not a shared one
5. Memory and CPU usage: When I am doing nothing, the heap status shows 374M of 3890M, after I type a couple of spaces into a file in the project, the heap jumps to about 1017M of 3890M (I have not even tried to hit save at this point). The CPU usage is more than 100% (when monitored on TOP)
6. The files are all on a network, but there is no such problem when I edit them using vi or emacs. It is just with Photran that I have this problem.
7. I have c++ code as part of this project as well, there are no problems when I am editing the c++ code.
8. I have increased -Xmx  4g in eclipse.ini

Any ideas on what is causing this and what can be used to fix this? I would like to see if I can do this without having to upgrade to Photran 7, but will do that if that is the only way to go.

Thanks,
Anusha




Last update to this thread -- from May 25th, 2011

>>Answering Jeff's questions from last week.  As an update, I came back after a week outside my office and lo and behold, the problem disappeared. I had also switched off and restarted my computer when I came back. I am not able to reproduce this saving problem now. But this has happened to me more than once, so next time I run into the problem, I will run the profiler and look in the log file as well. Answers to other questions are below...
 
> Later yesterday, I had refactoring turned off, but a Ctrl+S to save took
> about 1.5 minutes (I counted!). And the CPU usage monitored on?TOP jumped to
> 100% for the entire 1.5 minutes. ?Any idea why that would be?? And there was
> no progress bar at this point.

I've never seen this before.  It's odd that amount of time needed to
save a file would increase over time.  A few questions, if you don't
mind...

1. How big is the file (lines of code and/or total bytes)?

>>The files have about 1100 lines in them
 
2. Is your workspace stored on network drive/NFS?  This is not a
remote project (using RSE or RDT), right?

>>No it is stored locally.
3. Do you have plug-ins for Subversion, Git, or other version control
systems installed?

>>Yes, I do have Subversion installed
4. Try checking the box "Show Heap Status" in Window > Preferences >
General.  This will put a heap monitor in the status bar on the lower
right-hand corner of the workbench.  What sort of numbers is it
reporting?  Does it escalate or oscillate during the save?

 
5. Try opening the file in an ordinary text editor (right-click > Open
With > Text Editor), making a similar change, and saving it.  Does it
still take that long to save, or only in the Fortran editor?

>>Only in the photran editor. Using Vi or Vim, outside of eclipse did not make a difference. I will check to see if opening a different editor within eclipse makes a difference (see answer below as well)
 
6. Would you mind sending me the
/path/to/your/workspace/.metadata/.log file?  If there's an exception
being thrown, it ought to be logged there.

 
To answer your question, yes, the Eclipse platform keeps a local
history of each file, although I wouldn't expect that to slow things
down... unless it's storing a massive history on a network drive, or
something like that...

>>Where would such a file be stored? Is there a way to clean this history file, or change how much history is stored?
 
Thanks,
Anusha

Back to the top