Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351665 - Eclipse freezes while "ASTProvider > waiting for AST"
Summary: Eclipse freezes while "ASTProvider > waiting for AST"
Status: CLOSED DUPLICATE of bug 350616
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 17:58 EDT by Stephan Herrmann CLA
Modified: 2011-07-12 04:34 EDT (History)
1 user (show)

See Also:


Attachments
log file: tracing plus stack dump (51.38 KB, application/x-gzip)
2011-07-10 17:58 EDT, Stephan Herrmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2011-07-10 17:58:52 EDT
Created attachment 199392 [details]
log file: tracing plus stack dump

Eclipse sporadically freezes while the ASTProvider is active.
I turned on tracing for ASTProvider, and typical last log lines before
a freeze look like this:

main - ASTProvider > about to reconcile: ExceptionHandlingFlowContext.java
main - ASTProvider > caching AST: null for: ExceptionHandlingFlowContext.java
Worker-94 - ASTProvider > waiting for AST for: ExceptionHandlingFlowContext.java
Text Viewer Hover Presenter - ASTProvider > waiting for AST for: ExceptionHandlingFlowContext.java
main - ASTProvider > waiting for AST for: ExceptionHandlingFlowContext.java


I'll attach a log file that contains the full log of tracing ASTProvider
plus the result of sending "kill -3" (twice to be sure it's stuck).

I haven't found a pattern for reproducing other than: perform some editing
in a Java editor. The freeze happens in the order of once per hour.

My regular Eclipse is an Indigo SDK plus several other plugins 
but I also tried a plain SDK with no additions 
(I happened to use a 3.7M4 for that experiment) 
and saw the freeze in both.
Comment 1 Dani Megert CLA 2011-07-11 04:12:20 EDT
>(I happened to use a 3.7M4 for that experiment) 

Can you reproduce on R3.7? We fixed several AST provider bugs during 3.7.
Comment 2 Stephan Herrmann CLA 2011-07-11 04:43:14 EDT
(In reply to comment #1)
> >(I happened to use a 3.7M4 for that experiment) 
> 
> Can you reproduce on R3.7? We fixed several AST provider bugs during 3.7.

Yes, "my regular Eclipse is an Indigo SDK ...".
With that I meant the release.
Comment 3 Dani Megert CLA 2011-07-11 04:44:56 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > >(I happened to use a 3.7M4 for that experiment) 
> > 
> > Can you reproduce on R3.7? We fixed several AST provider bugs during 3.7.
> 
> Yes, "my regular Eclipse is an Indigo SDK ...".
> With that I meant the release.

Yes, but you wrote that the test with the plain SDK was against M4 - so to rephrase my question: can you reproduce in plain Eclipse SDK?
Comment 4 Stephan Herrmann CLA 2011-07-11 05:15:02 EDT
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > >(I happened to use a 3.7M4 for that experiment) 
> > > 
> > > Can you reproduce on R3.7? We fixed several AST provider bugs during 3.7.
> > 
> > Yes, "my regular Eclipse is an Indigo SDK ...".
> > With that I meant the release.
> 
> Yes, but you wrote that the test with the plain SDK was against M4 - so to
> rephrase my question: can you reproduce in plain Eclipse SDK?

Right now I installed an all new plain Eclipse SDK 3.7 and started to work
with that. However, I don't have a lot of editing scheduled for today,
so we might have to wait a while until I can report the next freeze.

OTOH, what are the odds that adding some plug-ins re-creates the exact
symptoms of a bug fixed between M4 and GA?
Comment 5 Dani Megert CLA 2011-07-11 05:17:59 EDT
> OTOH, what are the odds that adding some plug-ins re-creates the exact
> symptoms of a bug fixed between M4 and GA?
They are high. Anything that interferes with the reconciler from JDT Text and/or JDT Core (which reports the AST) can cause a problem.
Comment 6 Dani Megert CLA 2011-07-12 04:34:22 EDT
Stephan, could it be that you get this after your computer returned from sleep?

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