Bug 104568 - Hanging AJDT Builder
Summary: Hanging AJDT Builder
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 15:28 EDT by Ron Bodkin CLA
Modified: 2005-09-30 14:56 EDT (History)
0 users

See Also:


Attachments
example of hanging AJDT builder... even on exit (9.61 KB, image/x-png)
2005-07-20 15:29 EDT, Ron Bodkin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2005-07-20 15:28:23 EDT
The AJDT builder hangs periodically on me, e.g., on projects that are in 
another workspace. Worse yet, I find that it's basically impossible to stop it: 
if you select stop on the builder, the thread still runs, and if you try to 
exit it won't exit. If you try to, e.g., edit files or turn off automatic 
compilation, that also invokes the builder.

In addition to preventing hanging in the builder, it would be good to make sure 
that if things hang, you can kill it and you can reconfigure without 
reinvoking. One thing that does work around the issue is turning off automatic 
builds, force quitting, then restarting & editing (phew).

I will also include some error log entries I saw at hang time...

(see attached
Comment 1 Ron Bodkin CLA 2005-07-20 15:29:18 EDT
Created attachment 25080 [details]
example of hanging AJDT builder... even on exit

this is with the 19+20-jul-05 dev release
Comment 2 Ron Bodkin CLA 2005-07-20 15:30:18 EDT
I see this error when it hangs...

Error 2005-07-20 14:29:47.279 java.io.EOFException
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:358)
at java.io.ObjectInputStream$BlockDataInputStream.readInt()I(Unknown Source)
at java.io.ObjectInputStream.readInt()I(Unknown Source)
at org.eclipse.ajdt.core.model.AJProjectModel$Persistence.loadJavaElements
(AJProjectModel.java:638)
at org.eclipse.ajdt.core.model.AJProjectModel$Persistence.loadModel
(AJProjectModel.java:568)
at org.eclipse.ajdt.core.model.AJProjectModel.loadModel(AJProjectModel.java:136)
at org.eclipse.ajdt.core.model.AJModel.getModelForProject(AJModel.java:83)
at org.eclipse.ajdt.core.model.AJModel.isAdvised(AJModel.java:126)
at org.eclipse.ajdt.internal.buildconfig.ImageDecorator.decorateImage
(ImageDecorator.java:207)
at org.eclipse.ui.internal.decorators.FullDecoratorDefinition.decorateImage
(FullDecoratorDefinition.java:111)
at org.eclipse.ui.internal.decorators.FullImageDecoratorRunnable.run
(FullImageDecoratorRunnable.java:28)
at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.decorators.DecoratorManager.safeDecorateImage
(DecoratorManager.java:395)
at org.eclipse.ui.internal.decorators.DecoratorManager.decorateImage
(DecoratorManager.java:360)
at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage
(DecoratingLabelProvider.java:84)
at org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabel
(DecoratingLabelProvider.java:212)
at org.eclipse.jface.viewers.StructuredViewer.buildLabel
(StructuredViewer.java:1855)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:228)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run
(AbstractTreeViewer.java:85)
at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem
(AbstractTreeViewer.java:621)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run
(StructuredViewer.java:434)
at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.updateItem
(StructuredViewer.java:1763)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem
(AbstractTreeViewer.java:535)

Comment 3 Matt Chapman CLA 2005-09-30 14:56:36 EDT
I can't be sure it's the same problem, but we managed to consistently reproduce
a hang with a particular workspace here, and tracked it down to a deadlock
involving updates to the editor's title image. This is fixed in the following
builds:

AJDT 1.2.1:
BUILD COMPLETE -  build.536
Date of build: 09/30/2005 17:55:44
Time to build: 43 minutes 29 seconds

AJDT 1.3.0:
BUILD COMPLETE -  build.130
Date of build: 09/30/2005 17:18:37
Time to build: 32 minutes 45 seconds

If you see another hang as of these builds, please reopen or open a new bug.