Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359947

Summary: Indexer locks up whole Eclipse UI
Product: [Tools] PTP Reporter: Greg Watson <g.watson>
Component: Photran.UnknownAssignee: Photran Inbox <photran-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: blocker    
Priority: P3 CC: com-eclipse-dot-org
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Greg Watson CLA 2011-10-05 03:54:20 EDT
The Photran indexer is extremely slow. I have a fortran 90 file that contains 14,115 lines and the indexer has been running on the file for over 30 minutes. This is one of 4,365 files in the code. While this is bad, what is even worse is that the entire UI is locked up while the indexer is running. I don't see any reason for this, and see it as a serious design flaw that makes Photran refactoring pretty useless for real applications.
Comment 1 Jeffrey Overbey CLA 2011-10-05 10:51:09 EDT
Do you have the file open in a Fortran editor?  There's a good chance it's deadlocking.

Can you send/attach the file?  If not, can you give a basic idea of its structure?  Is it preprocessed?

I agree that the indexer is slow -- this is exacerbated when there are many lines in a single file -- but it shouldn't be taking that long...
Comment 2 Jeffrey Overbey CLA 2011-10-13 11:12:28 EDT
Greg, you said the underlying cause was an OutOfMemoryError, right?
Comment 3 Greg Watson CLA 2011-10-13 11:16:56 EDT
Yes, that appears to be the case. At least when I reran the indexer with the heap size increased to 1GB, I didn't see the problem again.