| Summary: | Eclipse Helios Hanging | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Ivan Rei <ivan.rei> | ||||||||||||||||||||||||||||||
| Component: | jst.jsp | Assignee: | Nitin Dahyabhai <thatnitind> | ||||||||||||||||||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||||||||||||||||||||||||
| Severity: | critical | ||||||||||||||||||||||||||||||||
| Priority: | P3 | CC: | daniel_megert, david_williams, eclipse, ivan.rei, john.arthorne, mariot.chauvin, nsand.dev, remy.suen, thatnitind | ||||||||||||||||||||||||||||||
| Version: | 3.2 | Flags: | nsand.dev:
review+
|
||||||||||||||||||||||||||||||
| Target Milestone: | 3.2.2 | ||||||||||||||||||||||||||||||||
| Hardware: | PC | ||||||||||||||||||||||||||||||||
| OS: | Windows 7 | ||||||||||||||||||||||||||||||||
| Whiteboard: | http://dev.eclipse.org/viewcvs/index.cgi/sourceediting/plugins/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/taglib/TaglibIndex.java?revision=1.36&root=WebTools_Project | ||||||||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||||||||
|
Description
Ivan Rei
Please attach a thread dump. http://wiki.eclipse.org/index.php/How_to_report_a_deadlock Created attachment 172644 [details]
threaddump
First threaddump
Created attachment 172645 [details]
threaddump
Created attachment 172646 [details]
threaddump
Created attachment 172647 [details]
threaddump
Created attachment 172648 [details]
threaddump
Created attachment 172649 [details]
threaddump
Created attachment 172650 [details]
threaddump
Created attachment 172651 [details]
threaddump
I've attaced a few Thread Dumps, I did a dump every minute or so till eclipse got stuck in "waiting". The stack traces don't indicate a lock in the main thread. Is it really stuck or are just the decorators not updating? The stack traces indicate that JST and JSP is also installed. Can you please try with a pure Eclipse SDK R3.6 (Helios): http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php I ran the pure Eclipse SDK R3.6 (Helios), it seems to be working OK. So it must be something with WTP. The problems happen even if I use the "Eclipse IDE for Java EE Developers" version (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-win32.zip). Any ideas on what to try next? >Any ideas on what to try next?
Answer all my questions as a start? ;-)
Created attachment 173553 [details]
Eclipse Workspace with CVS and Server "Labels" Missing
Created attachment 173555 [details]
After 2 minutes CVS and Server "Labels" Appear
Created attachment 173556 [details]
After 8 Minutes Eclipse hasn't completed startup
Created attachment 173557 [details]
With no processes running I get a waiting window
(In reply to comment #13) > >Any ideas on what to try next? > Answer all my questions as a start? ;-) I've attached some screenshots. As you can see, to me it looks like it's hanging. Almost 20 minutes to start Eclipse and with CPU at 100%. And every process I do after that causes a hang. Even my mouse cursor doesn't flow evenly. If I open the same workspace with Milestone 4 version it works fine, and starts up in 5 minutes. This might be the culprit, given that it works with plain Eclipse SDK: "Worker-0" prio=6 tid=0x54909800 nid=0x448 waiting for monitor entry [0x5583f000] java.lang.Thread.State: BLOCKED (on object monitor) at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:79) John? Created attachment 175055 [details]
Thread dump containing suspicious creation of ProjectDescription.
Hi all,
I'm facing a related problem. Seems to be a problem with the org.eclipse.jst.jsp.core.taglib.TaglibIndex.
The ProjectDescriptions seem to be rebuilt for each project on build path after opening a JSP file or even simply typing or removing an "<" in a JSP file, time after time. Each rebuild takes about two minutes, so it's absolutely impossible for me at the moment to edit my JSP files with WTP 3.2.
Removing all projects from build path and replacing them with the according jar-file (which I create independently from eclipse with ANT) solves the problem for me.
I know this is not the exact right place to report a bug in WTP, but perhaps the infos are helpful nevertheless :-)
Greetz,
Andree
Seams there is a problem with Java 1.6.0 update 21 with Eclipse. Followed the link form the eclipse download page. "Attention Windows users running Java 1.6.0 update 21 with Eclipse. Please follow the instructions here to resolve crashing and freezing issues." http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Oracle.2FSun_VM_1.6.0_21_on_Windows I did step 2 and 3 from the instructions, the only difference is that I deleted the original dll as it does not specify that. Also updated WTP to the latest version 3.2.1 (wtp-M-3.2.1-20100716070539). For now it seems to be working fine. Will be testing it further and will let everyone know if it was resolved. (In reply to comment #9) > Created an attachment (id=172651) [details] > threaddump This one looks like a possible deadlock between worker 0 and worker 4. If so, it is because TagLibIndex#ClasspathChangeListener#elementChanged is trying to lock an object within a resource change event, but the lock is held by worker 4 which is waiting for the change event. Moving to JST for further analysis. "Worker-0" prio=6 tid=0x54909800 nid=0x448 waiting for monitor entry [0x5583f000] java.lang.Thread.State: BLOCKED (on object monitor) at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:79) at org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1557) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) "Worker-4" prio=6 tid=0x5490c400 nid=0xb74 in Object.wait() [0x5617d000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x40f540c8> (a org.eclipse.core.internal.jobs.Semaphore) at org.eclipse.core.internal.jobs.Semaphore.acquire(Semaphore.java:39) - locked <0x40f540c8> (a org.eclipse.core.internal.jobs.Semaphore) at org.eclipse.core.internal.jobs.OrderedLock.doAcquire(OrderedLock.java:176) at org.eclipse.core.internal.jobs.OrderedLock.acquire(OrderedLock.java:110) at org.eclipse.core.internal.jobs.OrderedLock.acquire(OrderedLock.java:84) at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:118) at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1914) at org.eclipse.core.internal.resources.SaveManager.addParticipant(SaveManager.java:128) at org.eclipse.core.internal.resources.Workspace.addSaveParticipant(Workspace.java:290) at org.eclipse.jst.jsp.core.internal.JSPCorePlugin.start(JSPCorePlugin.java:80) That makes sense, but the lock acquisition for Worker 0 happens on line 74--line 79 shouldn't be waiting on new locks. Can I not trust that number? I'm not sure what the thread's blocking on, otherwise, unless it's a freak occurrence due to an earlier PermGen failure. Ivan, do you have a .log file you can attach from that session? Created attachment 175532 [details]
proposed patch
Patch looks good to me. Applied the target milestone shows 3.2.2 but according to "about" i have 3.2.2 built a few days before the "applied" comment (comment#26). is there any way to get a WTP build to test the fix against current helios? (In reply to comment #27) > the target milestone shows 3.2.2 but according to "about" i have 3.2.2 built a > few days before the "applied" comment (comment#26). is there any way to get a > WTP build to test the fix against current helios? Current Helios, SR1, should already have it in there. I'm experiencing exactly the symptoms described in this bug w.r.t opening JSP or editing JSP (placing angle brackets in the code causes the hang). hang lasts 40 seconds or so. as I mentioned in the previous comment, the date stamps in my build version pre-date the date of the "applied" in comment#26. the build id is: Build id: 20100915173744 is there an M build I can test with? after looking at a threaddump, my symptom is the same, my trigger is the same, but the cause may not be the same. it seems the "main" thread is processing every JAR in my classpath searching for the taglib descriptor every time I: - open a jsp - add/remove a scriptlet tag in a jsp this processing in the "main" thread blocks all UI interaction this behaviour is new in Helios. should I open a different bug for this? okay, my problem is different and is already a different (resolved) bug, bug#326332. thanks for all your help. |