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

Bug 322930

Summary: [launch] launching takes forever
Product: [Eclipse Project] JDT Reporter: Jeff McAffer <jeffmcaffer>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, Michael_Rennie, pawel.1.piech, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jeff McAffer CLA 2010-08-17 12:54:05 EDT
In a workspace with several million lines of java code over 80 or so bundles, launching a Junit test configuration with all workspace and target bundles took > 10 minutes.  Using the procmon tool on windows we observed eclipse.exe looking at every .java file in the workspace.  The progress monitor was stuck at 57% "Launching".  Seems alos that the UI froze and was not repainting.
Comment 1 Darin Wright CLA 2010-08-17 12:59:08 EDT
Is it possible that the launch was waiting for a build to complete, or that the
launch triggered a build before launching? (based on preference settings).
Comment 2 Jeff McAffer CLA 2010-08-17 13:49:14 EDT
I don't think so.  It was simply reading the .java files.  AFAICT there was no building going on (i.e., no class file being read/written and no resources being copied).  Nothing was happening in the workspace prior to launching.  Of course, this does not happen all the time but when it does its basically fatal.  Exiting (i.e., killing) eclipse and restarting seemed to address the issue. This also seems to point to building etc NOT being the issue.
Comment 3 Darin Wright CLA 2010-08-18 11:32:06 EDT
I'm not sure what would be reading .java files. Launch does search the workspace (relevant projects) for problem markers before launching in order to detect potentially problematic compilation errors:

IMarker[] markers = proj.findMarkers(IMarker.PROBLEM, true, IResource.DEPTH_INFINITE);

However, I don't this triggers reading of files.
Comment 4 Michael Rennie CLA 2011-06-08 13:15:50 EDT
Testing in my workspace of ~70 bundles I have never encountered this.

Closing as worksforme - Jeff, if the problem happens again please reopen.