Bug 50360 - Eclipse freezes when searching for class element references
Summary: Eclipse freezes when searching for class element references
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-21 16:50 EST by Rico Kahnert CLA
Modified: 2004-04-20 12:58 EDT (History)
0 users

See Also:


Attachments
Stacktract when it hangs (10.38 KB, text/plain)
2004-01-22 12:49 EST, Rico Kahnert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rico Kahnert CLA 2004-01-21 16:50:38 EST
Hi,

Whenever I'm editing a Java class source and try to find references to this
element a progress dialog pops up and the whole application just freezes.
The progress bar doesn't change and pressing Cancel doesn't work either
Steps to reproduce it.
I have to kill the 
- Open Java source file
- Select an element eg. a method name in the editor
- Press right mouse button for the popup menu
- Select References-> Hierarchy

Environment:
Windows 2000
JDK 1.4.2_03
Eclipse 200401210900

Rico
Comment 1 Thomas M??der CLA 2004-01-22 09:33:38 EST
I can't reproduce this. Can you elaborate how often you see this behaviour,
whether you can reproduce this with a new workspace, etc. Also, how long did you
wait before killing Eclipse.
Comment 2 Rico Kahnert CLA 2004-01-22 11:55:37 EST
Hmmm ... I was sure that it happend in all of my workspaces. But I double
checked and it's only happening in 1 workspace.

I guess I just have to rebuild this workspace then ...

Hmmm ... I'm wondering if there is a tool or a plugin that could help rebuilding
the workspace.

Sorry about that!

Rico
Comment 3 Thomas M??der CLA 2004-01-22 12:15:46 EST
Hold it! Can you get a stack trace from the workspace where the search freezes?
It might be a rare condition, but still a bug. You can get a stack trace by
starting eclipse with "-vm <path to your jdk>\bin\java.exe" and pressing
<ctrl>-break when the hang occurs. 
Comment 4 Rico Kahnert CLA 2004-01-22 12:49:57 EST
Created attachment 7526 [details]
Stacktract when it hangs

Stacktrace after it froze
Comment 5 Rico Kahnert CLA 2004-01-22 12:50:50 EST
OK ... I already was in the middle of rebuilding my workspace. But luckily I
made a backup copy. :-)
Anyway ... I didn't answer your question before about how long I wait before I
kill the process. One time I waited between 5 and 10 minutes, just to see if it
just takes longer. The same with trying to Cancel the search ... 

I attached the stacktrace. I hope it helps.

Rico
Comment 6 Thomas M??der CLA 2004-01-22 13:13:51 EST
This looks more like CORE. (notice two threads in the JDT Core JobManager).
Moving to Core for commment.
Comment 7 Kent Johnson CLA 2004-04-19 16:42:14 EDT
Rico: has this happened again in the last few months?
Comment 8 Kent Johnson CLA 2004-04-20 12:58:15 EDT
Rico: Please reopen if it can be reproduced on the latest build.