Bug 213702 - [index] Should recreate corrupted index files
Summary: [index] Should recreate corrupted index files
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 220222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-21 11:14 EST by Philipe Mulet CLA
Modified: 2020-04-12 15:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2007-12-21 11:14:23 EST
Build 3.4M4

At some point during development, I got some exception in console (see below).
However, it never recovered from this state. I had to exit, manually discard the offending index files and restart.

I would have hoped that it would have done this automatically for me as standard crash recovery.


!ENTRY org.eclipse.core.jobs 4 2 2007-12-21 16:58:23.750
!MESSAGE An internal error occurred during: "Java Search".
!STACK 0
java.lang.NegativeArraySizeException
        at org.eclipse.jdt.internal.compiler.util.HashtableOfObject.<init>(HashtableOfObject.java:38)
        at org.eclipse.jdt.internal.core.index.DiskIndex.readCategoryTable(DiskIndex.java:624)
        at org.eclipse.jdt.internal.core.index.DiskIndex.addQueryResults(DiskIndex.java:182)
        at org.eclipse.jdt.internal.core.index.Index.query(Index.java:134)
        at org.eclipse.jdt.internal.core.search.matching.MethodPattern.queryIn(MethodPattern.java:352)
        at org.eclipse.jdt.internal.core.search.matching.InternalSearchPattern.findIndexMatches(InternalSearchPattern.java:73)
        at org.eclipse.jdt.internal.core.search.matching.MatchLocator.findIndexMatches(MatchLocator.java:307)
        at org.eclipse.jdt.internal.core.search.PatternSearchJob.search(PatternSearchJob.java:117)
        at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute(PatternSearchJob.java:64)
        at org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob(JobManager.java:279)
        at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:200)
        at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:500)
        at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:550)
        at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:143)
        at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:94)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Philipe Mulet CLA 2007-12-21 11:15:43 EST
btw the logged exception was also associated with some DBG data:

-------------------- DEBUG --------------------
file = D:\eclipse\workspaces\dev3.4\plugins\.metadata\.plugins\org.eclipse.jdt.core\1689418278.index
offset = 430653
size = -2143717719
--------------------   END   --------------------
Comment 2 Frederic Fusier CLA 2008-02-27 05:06:42 EST
*** Bug 220222 has been marked as a duplicate of this bug. ***
Comment 3 Eclipse Genie CLA 2020-04-12 15:42:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.