Bug 181459 - [open type] "Open Type" dialog maxes the CPU while searching
Summary: [open type] "Open Type" dialog maxes the CPU while searching
Status: VERIFIED DUPLICATE of bug 178551
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-06 15:49 EDT by Karen Butzke CLA
Modified: 2007-04-27 10:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2007-04-06 15:49:13 EDT
My development environment has eclipse 3.3 M6 and EMF 2.3 M6 and my target platform includes those as well as WTP 2.0M6, GEF, and DTP.  As of M6 my "Open Type" or the "Open Type in Hierarchy" dialogs will open but as soon as I type a letter it maxes out the cpu and never stops searching. I close the dialog and it continues to max out the CPU. Eclipse is no longer useable and I have to close it and reopen.

In an empty workspace I created a new plugin and added the org.eclipse.jst.j2ee.ui plugin as a dependency to recreate this issue.  I happen to type the letter 'i' in the Open Type dialog, but that does not seem to matter.

This problem did not occur in M5.  It also does not occur with M5 as my development environment and M6 as my target platform.

If I import the org.eclipse.jst.j2ee.ui plugin into my development environment, the problem vanishes.
Comment 1 Frederic Fusier CLA 2007-04-07 05:20:22 EDT
Sounds like a duplicate of bug 178551. Can you take a VM snapshot to confirm this assumption (start eclipse using -consoleLog option in line command and hit Ctrl+Break in the MS-DOS window displaying the console)? Thanks
Comment 2 Karen Butzke CLA 2007-04-10 11:18:52 EDT
I have tried pressing ctrl-break in the dos window and nothing happens.  This doesn't look like a deadlock issue to me.  I am able to close the type hierarchy dialog, choose the file menu and exit eclipse.  This just takes time since eclipse is churning at 99% of my cpu.  If I leave eclipse open it never recovers.
Comment 3 Frederic Fusier CLA 2007-04-13 10:13:05 EDT
(In reply to comment #2)
> I have tried pressing ctrl-break in the dos window and nothing happens.  This
> doesn't look like a deadlock issue to me.  I am able to close the type
> hierarchy dialog, choose the file menu and exit eclipse.  This just takes time
> since eclipse is churning at 99% of my cpu.  If I leave eclipse open it never
> recovers.
> 
Bug 178551 summary was not really accurate, it was not a deadlock between threads but an infinite loop in DiskIndex which hits CPU to 100% and cannot be stopped... So, your bug does definitely sound similar...

What do you mean by nothing happens? Didn't you see threads dump displayed in the console? If so, are you really sure that you have the -consoleLog parameter in your command line? What JVM are you using?
Comment 4 Markus Keller CLA 2007-04-13 10:36:15 EDT
Bug 168726 and bug 167310 are tracking problems with getting the console to work with latest Eclipse builds.

The console works for me if I launch Eclipse with:
java.exe <vmargs> -jar [..]\plugins\org.eclipse.equinox.launcher_*.jar <eclipseargs>
Comment 5 Karen Butzke CLA 2007-04-13 16:17:20 EDT
I downloaded the latest I-Build and am unable to repeat the problem. It appears the fix for bug 178551 has fixed this problem

*** This bug has been marked as a duplicate of bug 178551 ***
Comment 6 Frederic Fusier CLA 2007-04-27 02:12:01 EDT
Reopen to assign
Comment 7 Frederic Fusier CLA 2007-04-27 02:13:11 EDT

*** This bug has been marked as a duplicate of bug 178551 ***
Comment 8 Jerome Lanneluc CLA 2007-04-27 10:40:48 EDT
Verified for 3.3M7 for I20070427-0010