This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229971 - java.io.IOException: read past EOF: MMapIndexInput(path="/root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del")
Summary: java.io.IOException: read past EOF: MMapIndexInput(path="/root/.cache/netbean...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 229969 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-19 23:53 UTC by szmitek
Modified: 2013-05-29 02:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200751


Attachments
stacktrace (1.97 KB, text/plain)
2013-05-19 23:53 UTC, szmitek
Details
stacktrace (1.97 KB, text/plain)
2013-05-19 23:59 UTC, szmitek
Details
proposed fix (17.43 KB, patch)
2013-05-28 08:11 UTC, Vladimir Kvashin
Details | Diff
yet better fix (17.89 KB, patch)
2013-05-28 11:15 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description szmitek 2013-05-19 23:53:17 UTC
Build: NetBeans IDE 7.3.1 (Build 201304162201)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
szmitek: After creating blank file /root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del with nano




Stacktrace: 
java.io.IOException: read past EOF: MMapIndexInput(path="/root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del")
   at org.apache.lucene.store.MMapDirectory$MMapIndexInput.readByte(MMapDirectory.java:279)
   at org.apache.lucene.store.DataInput.readInt(DataInput.java:84)
   at org.apache.lucene.store.MMapDirectory$MMapIndexInput.readInt(MMapDirectory.java:315)
   at org.apache.lucene.util.BitVector.<init>(BitVector.java:269)
   at org.apache.lucene.index.SegmentReader.loadDeletedDocs(SegmentReader.java:159)
   at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:119)
Comment 1 szmitek 2013-05-19 23:53:19 UTC
Created attachment 134622 [details]
stacktrace
Comment 2 szmitek 2013-05-19 23:59:02 UTC
Created attachment 134623 [details]
stacktrace

Prblem with lack of file /root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del
Comment 3 szmitek 2013-05-20 00:14:42 UTC
Removing directory .cache/netbeans/7.3.1dev/cnd/model/text_index/ helps me. Maybe Netbeans should delete this directory or some files in it when error occurs.
Comment 4 Vladimir Voskresensky 2013-05-23 11:19:23 UTC
*** Bug 229969 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Voskresensky 2013-05-23 11:30:46 UTC
in case of broken index we have to reparse project, otherwise FindUsages will provide incorrect results, because now it completely relies on index content.
Comment 6 Vladimir Voskresensky 2013-05-23 11:31:44 UTC
repository should allow index provider to mark unit as broken which will force automatic repository error and reparse instead of restore project from repo
Comment 7 Vladimir Kvashin 2013-05-27 08:47:46 UTC
Somewhat related, although not the same issue is issue #225335
Comment 8 Vladimir Kvashin 2013-05-28 08:11:19 UTC
Created attachment 134990 [details]
proposed fix
Comment 9 Vladimir Kvashin 2013-05-28 11:15:10 UTC
Created attachment 134999 [details]
yet better fix
Comment 10 Vladimir Kvashin 2013-05-28 11:29:02 UTC
fixed in cnd-main
http://hg.netbeans.org/cnd-main/rev/7f595d229af2
Comment 11 Quality Engineering 2013-05-29 02:03:32 UTC
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7f595d229af2
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #229971 java.io.IOException: read past EOF: MMapIndexInput(path="...ex/_mi_a.del")