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

Bug 63633

Summary: Sleeping build workspace job blocks launch job
Product: [Eclipse Project] Platform Reporter: Gunnar Wagenknecht <gunnar>
Component: ResourcesAssignee: John Arthorne <john.arthorne>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P2 CC: diego_malpica
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
dump while waiting
none
Screen shot
none
Screenshot of Progress view showing all jobs sleeping
none
Thread dump at the moment when I took the screenshot none

Description Gunnar Wagenknecht CLA 2004-05-24 02:48:14 EDT
M9

After working some time in a M9 session I got to a point where I can't launch 
launch configurations, decorators doesn't update anymore and other things seem 
to hang.

The progress dialog that pops up after launching a launch/debug configuration 
showed that is is wating for an ongoing job. But the ongoing jobs window was 
empty.

The Progress view didn't show any jobs so I was wondering what was blocking. I 
figured out to enable verbose and closed & reopend the progress view which was 
now filled with all sleeping jobs.

After I've killed the _sleeping_ "Building workspace" jobs the launch 
configuration suddendly started fine.
Comment 1 Gunnar Wagenknecht CLA 2004-05-24 02:52:33 EDT
Created attachment 10997 [details]
dump while waiting

This is a thread dump while the launch job was waiting for "ongoing" jobs.
Comment 2 Darin Wright CLA 2004-05-27 17:52:19 EDT
*** Bug 64106 has been marked as a duplicate of this bug. ***
Comment 3 John Arthorne CLA 2004-05-27 18:16:11 EDT
Gunnar, could you attach a screen shot of the progress view (in verbose mode) if
this happens again?
Comment 4 John Arthorne CLA 2004-05-27 19:03:58 EDT
Created attachment 11252 [details]
Screen shot

I've captured a case where it says "-1 work items left". Doesn't look good, but
the launch was successful afterwards.
Comment 5 John Arthorne CLA 2004-05-27 19:32:41 EDT
Ignore the last screen shot. The format of the messages in the view is:

taskName - subTaskName

So the "-" does not mean "-1", it means "1" task left.
Comment 6 Gunnar Wagenknecht CLA 2004-05-28 00:35:19 EDT
Don't ignore the screenshot, it's exactly the case that indicates when the 
build job is blocking things. I had to cancel the sleeping build job and then 
the launch started successfully. But the sleeping build job also blocked other 
things. I also noticed that there isn't any auto-build anymore at this stage. 
After closing and reopening Eclipse everything works again.
Comment 7 Gunnar Wagenknecht CLA 2004-05-28 06:57:11 EDT
Created attachment 11265 [details]
Screenshot of Progress view showing all jobs sleeping

Here is a screenshot of the Progress view in verbose mode. 

The screenshot shows all jobs sleeping. No build is happening although
auto-build is turned on and I saved some java classes several times.

I noticed a problem while switching the Progress view into the verbose mode. It
didn't show system jobs. I had to close it in all perspectives first and reopen
it to see all jobs. It seems that the progress view got stale.
Comment 8 Gunnar Wagenknecht CLA 2004-05-28 06:58:32 EDT
Created attachment 11266 [details]
Thread dump at the moment when I took the screenshot
Comment 9 John Arthorne CLA 2004-05-31 16:46:52 EDT
This appears slightly different, but I believe this is a dupliate of bug 57565.
There was a bug that could cause a job to sleep forever.

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