Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 214400 - Launching of RCP product hangs at 46% for many minutes
Summary: Launching of RCP product hangs at 46% for many minutes
Status: RESOLVED DUPLICATE of bug 205888
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-04 16:22 EST by Nathan Tolbert CLA
Modified: 2008-06-27 15:20 EDT (History)
2 users (show)

See Also:


Attachments
Configuration details from Eclipse (143.28 KB, text/plain)
2008-01-04 16:22 EST, Nathan Tolbert CLA
no flags Details
2 Stack Traces from when it was taking a long time to launch (38.97 KB, text/plain)
2008-01-09 12:15 EST, Nathan Tolbert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Tolbert CLA 2008-01-04 16:22:49 EST
Created attachment 86236 [details]
Configuration details from Eclipse

Build ID: M20071023-1652

Steps To Reproduce:
Unfortunately, I cannot narrow down exact steps to reproduce the problem.

I have an RCP application that I am working on. 
I have it set to do automatic builds whenever I save.  Generally, it properly builds incrementally, and when I launch, will launch very quickly (after a quick build step).

But sometimes, Eclipse gets into modes where when I try to launch the product, it will spend a few minutes on the "build before launch" phase.  It starts building, hanging at the 46% mark for about 2-5 minutes.  The message at the bottom indicates "Launching maeviz.product (46%)", and the Progress view indicates that it is doing "Launching: Build before launch - ".  The message "Verifying Build Properties" appears and disappears rapidly from the dialog box.

When it gets into this state, it tends to stay this way for a day or two.  I have tried all sorts of things try to understand what triggers it being in this state, or leaving this state, and I haven't had much luck.  (cleaning all projects, new install of eclipse, etc).  It seems to enter and leave this state by some cause that I cannot determine.

I realize this bug will likely be closed as I haven't listed useful steps for reproduction, but after fighting with this for months, I thought it might be worth submitting as a bug to at least attempt to let the developers know what is happening. 


More information:
Using Windows XP, Eclipse 3.3.1.1
This problems has been occurring since 3.2.
Tried with virus scanning disabled.  TortoiseSVN is installed on the machine, but tried with and without its caching enabled.  Not aware of anything else running on the machine that could affect it.
Comment 1 Olivier Thomann CLA 2008-01-04 17:25:50 EST
Moving to Platform/Runtime
Comment 2 Thomas Watson CLA 2008-01-04 17:55:25 EST
A stack dump would be helpful to determine what is hung for the minutes before the launch.  Please see http://wiki.eclipse.org/index.php/How_to_report_a_deadlock to obtain a dump while the process of launching is hung.
Comment 3 Nathan Tolbert CLA 2008-01-09 12:15:50 EST
Created attachment 86483 [details]
2 Stack Traces from when it was taking a long time to launch

It just started this slow-launching activity again today after a machine reboot.  It is not delaying as long as it does sometimes (only a minute and 30 seconds or so), but nonetheless, I used the webstart StackTrace tool to get the following two dumps, 20 seconds apart from each other. (both dumps are in the same attached file). 

In this case, the slow-launching stopped after I disabled my virus scanner and restarted Eclipse (which doesn't always solve the problem).
Comment 4 Nathan Tolbert CLA 2008-02-14 13:00:05 EST
More clues for reproduction:

It tends to start doing this when I change plugin dependencies (ie add a new dependency from one plugin on another).  This change triggers a rebuild, and after this rebuild, the incremental building seems to be somewhat broken.

The broken incremental building seems to manifest itself into slowness in other places as well.  For example, when this occurs, if I select a java file in my Package Explorer, and hit F2 to rename it, I get about an 8 second delay where a dialog pops up telling me that it is waiting for operation "Building Workspace" to complete before I can rename my file.  This doesn't occur normally (normally on this computer, it is less than a second of waiting when I press F2).

When I save a file, I also notice that the Building Workspace item at the bottom right in the status bar has changed from something that appears for less than a second, to something that takes 5 seconds or so before it goes away.

I have also found, contrary to what I believed before, that restarting Eclipse immediately after the incremental building seems to be broken, generally resolves the problem.
Comment 5 John Arthorne CLA 2008-06-27 15:20:00 EDT
A cyclic build involving build.properties verification after changing plugin dependencies strongly suggests this is a duplicate of bug 205888 (or see duplicate bug 206887 for a more similar manifestation). Please reopen if this persists in 3.4 or later.

*** This bug has been marked as a duplicate of bug 205888 ***