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

Bug 333526

Summary: Deadlock while starting Eclipse (stuck at "Initializing Java Tooling (1%)" forever)
Product: [WebTools] WTP Common Tools Reporter: eclipse
Component: wst.commonAssignee: Jason Sholl <jsholl>
Status: CLOSED DUPLICATE QA Contact: Carl Anderson <ccc>
Severity: major    
Priority: P3 CC: daniel_megert
Version: unspecified   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Thread dump while Eclipse is sitting and spinning.
none
Another thread dump, this time with jstack -l none

Description eclipse CLA 2011-01-04 21:59:31 EST
Build Identifier: 20100917-0705

Following plugins are installed:

Subclipse 1.6.16
m2eclipse 0.12
m2eclipse-extras 0.12
Code Collaborator 4.0.864

3 Tasks are running: 
Configuring org.eclipse.jst.j2ee.internal.web.container
Initializing JavaScript Tooling
Loading Web Service DOM (Waiting)

No progress is made, no matter how long I wait.  eclipse -clean is unhelpful.

Will attach thread dump.

Reproducible: Always

Steps to Reproduce:
Install plugins above.
Try to start Eclipse.
Comment 1 eclipse CLA 2011-01-04 22:01:12 EST
Created attachment 186064 [details]
Thread dump while Eclipse is sitting and spinning.
Comment 2 eclipse CLA 2011-01-04 22:18:32 EST
Created attachment 186066 [details]
Another thread dump, this time with jstack -l
Comment 3 eclipse CLA 2011-01-04 22:26:16 EST
If I run dtruss on the eclipse process, it just reports gettimeofday calls by the thousands.  (ie, it looks like it's just spinning, chewing CPU like crazy.)
Comment 4 Carl Anderson CLA 2011-01-05 09:22:33 EST
Assigning to Jason for initial investigation.
Comment 5 eclipse CLA 2011-01-05 11:21:22 EST
On further investigation, I think this might be https://bugs.eclipse.org/bugs/show_bug.cgi?id=327801 .  I'll try the suggested patch there and see if it matters.
Comment 6 eclipse CLA 2011-01-05 11:33:46 EST
Verified it's a duplicate of 327801.  The patch for that issue fixes it.  Further, it was something in m2eclipse-extras WTP integration that was tickling the bug in my case.

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