Bug 99938 - [search] OOM exception in "Java: lookup indexes..." while searching declaration of Object method
Summary: [search] OOM exception in "Java: lookup indexes..." while searching declarati...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.1.2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 98378
Blocks:
  Show dependency tree
 
Reported: 2005-06-14 08:14 EDT by Frederic Fusier CLA
Modified: 2006-03-06 14:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2005-06-14 08:14:21 EDT
Using 3.1 RC2.

On full source workspace, open Object.class and in Outline view search for
declaration of method "equals" in Hierarchy...

After a long while lookup in indexes, I get an OOM:

!ENTRY org.eclipse.ui 4 4 2005-06-14 14:11:38.285
!MESSAGE Unhandled event loop exception
Unhandled event loop exception
Reason:

!ENTRY org.eclipse.ui 4 0 2005-06-14 14:11:38.285
!MESSAGE java.lang.OutOfMemoryError
!STACK 0
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError

!ENTRY org.eclipse.core.runtime 4 2 2005-06-14 14:11:38.335
!MESSAGE An internal error occurred during: "Java Search".
!STACK 0
java.lang.OutOfMemoryError
Comment 1 Frederic Fusier CLA 2005-06-14 08:15:09 EDT
Note that I'm using eclipse default for VM heap: -Xmx256M -Xms40M
Comment 2 Frederic Fusier CLA 2005-06-14 08:16:09 EDT
Bug 98378 needs to be fixed otherwise there's no match while performing this
search...
Comment 3 Frederic Fusier CLA 2005-06-14 08:23:46 EDT
Note also that it's not really an indexer problem as search for declarations on
workspace ends normally with an VM heap at 198Mo
=> no link with bug 99114
=> seems to be a specific issue of IndexBasedHierarchyBuilder while computing
type hierarchy...
Comment 4 Frederic Fusier CLA 2005-06-14 08:26:02 EDT
Not really usual to search declaration in hierarchy from Object + easy
workarounds (modify VM -Xmx param value or search in workspace/project)
=> defer post 3.1 (with priority 2)
Comment 5 Frederic Fusier CLA 2005-08-05 03:58:23 EDT
Reopen for 3.2
Comment 6 Frederic Fusier CLA 2006-03-06 14:01:43 EST
Cannot reproduce. I've tested 3.1.2, 3.2 M4 and 3.2 M5.
All these versions perform the search without any OOME.