Bug 517344 - IndexException below SubwordsSessionProcessor.computeProposals (thrown in IndexExceptionBuilder.build)
Summary: IndexException below SubwordsSessionProcessor.computeProposals (thrown in Ind...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-29 03:51 EDT by EPP Error Reports CLA
Modified: 2022-10-07 12:11 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 EPP Error Reports CLA 2017-05-29 03:51:51 EDT
The following problem was reported via the automated error reporting:

Message: Exception during code completion
org.eclipse.jdt.internal.core.nd.db.IndexException: Method close()V and method close()V both claim to be at position 9
Related addresses:
field 8, a FieldInt in struct NdMethod [address 204255866, size 4]: No modification report
field 8, a FieldInt in struct NdMethod [address 200540354, size 4]: No modification report
    at org.eclipse.jdt.internal.core.nd.IndexExceptionBuilder.build(IndexExceptionBuilder.java:74)
    at org.eclipse.jdt.internal.core.nd.java.NdType.getMethodsInDeclarationOrder(NdType.java:267)
    at org.eclipse.jdt.internal.core.nd.java.model.IndexBinaryType.getMethods(IndexBinaryType.java:265)
    at org.eclipse.jdt.internal.core.ClassFileInfo.generateMethodInfos(ClassFileInfo.java:254)
    at org.eclipse.jdt.internal.core.ClassFileInfo.readBinaryChildren(ClassFileInfo.java:427)
    at org.eclipse.jdt.internal.core.ClassFile.buildStructure(ClassFile.java:114)
    at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:259)
    at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:107)
    at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:579)
    at org.eclipse.jdt.internal.core.BinaryType.getElementInfo(BinaryType.java:287)
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:302)
    at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:115)
    at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:294)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:152)
    at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:102)
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:217)
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypesFor(BinaryTypeBinding.java:1532)
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.availableMethods(BinaryTypeBinding.java:396)
    at org.eclipse.jdt.internal.codeassist.CompletionEngine.findInterfacesMethods(CompletionEngine.java:8171)
    at org.eclipse.jdt.internal.codeassist.CompletionEngine.findMethods(CompletionEngine.java:10163)
    at org.eclipse.jdt.internal.codeassist.CompletionEngine.findFieldsAndMethods(CompletionEngine.java:7057)
    at org.eclipse.jdt.internal.codeassist.CompletionEngine.completionOnQualifiedNameReference(CompletionEngine.java:3238)
    at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(CompletionEngine.java:1858)
    at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(CompletionEngine.java:2080)
    at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:131)
    at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:359)
    at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:347)
    at org.eclipse.recommenders.internal.subwords.rcp.SubwordsSessionProcessor.computeProposals(SubwordsSessionProcessor.java:338)
    at org.eclipse.recommenders.internal.subwords.rcp.SubwordsSessionProcessor.getNewProposals(SubwordsSessionProcessor.java:227)
    at org.eclipse.recommenders.internal.subwords.rcp.SubwordsSessionProcessor.initializeContext(SubwordsSessionProcessor.java:167)
    at org.eclipse.recommenders.completion.rcp.processable.IntelligentCompletionProposalComputer.fireInitializeContext(IntelligentCompletionProposalComputer.java:292)
    at org.eclipse.recommenders.completion.rcp.processable.IntelligentCompletionProposalComputer.computeCompletionProposals(IntelligentCompletionProposalComputer.java:169)
    at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:333)
    at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:337)
    at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:331)
    at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:288)
    at org.eclipse.jface.text.contentassist.ContentAssistant$3.run(ContentAssistant.java:2007)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2004)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:560)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:555)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:489)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)
    at org.eclipse.jface.text.contentassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.java:377)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4492)



Bundles:
| org.eclipse.core.runtime | 3.13.0.v20170207-1030 | 3.13.0.v20170207-1030 |
| org.eclipse.e4.core.di | 1.6.100.v20170421-1418 | 1.6.100.v20170421-1418 |
| org.eclipse.jdt | 3.13.0.v20170512-0500 | 3.13.0.v20170512-0500 |
| org.eclipse.jdt.core | 3.13.0.xx-201705221441-e47 | 3.13.0.xx-201705221441-e47 |
| org.eclipse.jdt.ui | 3.13.0.v20170511-1354 | 3.13.0.v20170511-1354 |
| org.eclipse.jface | 3.13.0.v20170503-1507 | 3.13.0.v20170503-1507 |
| org.eclipse.jface.text | 3.12.0.v20170508-1601 | 3.12.0.v20170508-1601 |
| org.eclipse.recommenders.completion.rcp | 2.4.8.v20170516-0903 | 2.4.8.v20170516-0903 |
| org.eclipse.recommenders.subwords.rcp | 2.4.8.v20170516-0903 | 2.4.8.v20170516-0903 |
| org.eclipse.swt | 3.106.0.v20170512-0445 | 3.106.0.v20170512-0445 |
| org.eclipse.ui | 3.109.0.v20170411-1742 | 3.109.0.v20170411-1742 |

Operating Systems:
| Linux | 4.4.0 | 4.4.0 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/5927dd6ce4b00e98f02df6da for the latest data.

Thank you for your assistance.
 Your friendly error-reports-inbox.
Comment 1 Andreas Sewe CLA 2017-05-29 05:36:35 EDT
Hi JDT team,

while Code Recommenders shows up in the stack, these two problems [1, 2] seems rather a) be caused by the new index and b) have the same root cause.

From the message, I would guess that there is a confusion of object equality/identity somewhere, as close()V and close()V seems the be the same method.

Hope this helps.

[1] <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/5927dd6ce4b00e98f02df6da>
[2] <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/5927def0e4b00e98f02df6f7>
Comment 2 Stefan Xenos CLA 2018-05-10 13:31:03 EDT
This stack indicates index corruption. If it's reproducible, the index's write log could be enabled to obtain a traceback of the sequence of writes that resulted in the corruption.
Comment 3 Eclipse Genie CLA 2020-10-04 01:54:11 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.

If you have further information on the current state of the bug, please add it. 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.
Comment 4 Eclipse Genie CLA 2022-10-07 12:11:35 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.

If you have further information on the current state of the bug, please add it. 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.