cancel
Showing results for 
Search instead for 
Did you mean: 

Indexer crash

O'li
Associate II

I'm failing to get the indexer working correctly.

So far I've tried several solutions regarding paths definition and Eclipse memory sizes allocation. All of them leading to the same error for all the files in my project. See an extract of the .log file:

 

 

!ENTRY org.eclipse.cdt.core 4 0 2023-12-05 17:44:50.916
!MESSAGE Error while parsing /C:/path/to/one/src/or/header/file.cpp.
!STACK 1
org.eclipse.core.runtime.CoreException: Error while parsing /C:/path/to/one/src/or/header/other_file.h.
    at org.eclipse.cdt.internal.core.pdom.PDOMWriter.addSymbols(PDOMWriter.java:307)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.writeToIndex(AbstractIndexerTask.java:1295)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.parseFile(AbstractIndexerTask.java:1107)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.parseLinkage(AbstractIndexerTask.java:944)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.runTask(AbstractIndexerTask.java:572)
    at org.eclipse.cdt.internal.core.pdom.indexer.PDOMIndexerTask.run(PDOMIndexerTask.java:164)
    at org.eclipse.cdt.internal.core.pdom.indexer.PDOMRebuildTask.run(PDOMRebuildTask.java:94)
    at org.eclipse.cdt.internal.core.pdom.PDOMIndexerJob.run(PDOMIndexerJob.java:160)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Contains: Error while parsing /C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.1.100.202309271528/tools/arm-none-eabi/include/c++/9.3.1/cstring.
java.lang.NegativeArraySizeException: -47
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates.instantiateArguments(CPPTemplates.java:1425)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates.resolveDeferredClassInstance(CPPTemplates.java:3190)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates.resolveUnknown(CPPTemplates.java:3114)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates.instantiateType(CPPTemplates.java:1619)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates.instantiateType(CPPTemplates.java:1678)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalTypeId.instantiate(EvalTypeId.java:415)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalConstructor.instantiate(EvalConstructor.java:357)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.ExecConstructorChain.instantiate(ExecConstructorChain.java:38)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates.instantiateConstructorChain(CPPTemplates.java:3364)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPConstructorSpecialization.getConstructorChainExecution(CPPConstructorSpecialization.java:46)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPConstructorSpecialization.getConstructorChainExecution(CPPConstructorSpecialization.java:51)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage$ConfigureConstructorSpecialization.<init>(PDOMCPPLinkage.java:384)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPConstructorSpecialization.<init>(PDOMCPPConstructorSpecialization.java:45)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage.createSpecialization(PDOMCPPLinkage.java:1002)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage.createBinding(PDOMCPPLinkage.java:791)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage.addBinding(PDOMCPPLinkage.java:710)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage.addTypeBinding(PDOMCPPLinkage.java:1626)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalBinding(TypeMarshalBuffer.java:92)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalBinding.marshal(EvalBinding.java:401)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalMemberAccess.marshal(EvalMemberAccess.java:372)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalFunctionCall.marshal(EvalFunctionCall.java:218)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalBinary.marshal(EvalBinary.java:448)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalBinary.marshal(EvalBinary.java:448)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalUnary.marshal(EvalUnary.java:387)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalConditional.marshal(EvalConditional.java:360)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalUnary.marshal(EvalUnary.java:387)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalEvaluation(TypeMarshalBuffer.java:169)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.ExecExpressionStatement.marshal(ExecExpressionStatement.java:49)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalExecution(TypeMarshalBuffer.java:178)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.ExecCompoundStatement.marshal(ExecCompoundStatement.java:76)
    at org.eclipse.cdt.internal.core.pdom.dom.TypeMarshalBuffer.marshalExecution(TypeMarshalBuffer.java:178)
    at org.eclipse.cdt.internal.core.pdom.dom.PDOMLinkage.storeExecution(PDOMLinkage.java:746)
    at org.eclipse.cdt.internal.core.pdom.dom.PDOMLinkage.storeExecution(PDOMLinkage.java:740)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPFunctionSpecialization.initData(PDOMCPPFunctionSpecialization.java:102)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage$ConfigureFunctionSpecialization.run(PDOMCPPLinkage.java:372)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage.handlePostProcesses(PDOMCPPLinkage.java:1318)
    at org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkage.addBinding(PDOMCPPLinkage.java:638)
    at org.eclipse.cdt.internal.core.pdom.dom.PDOMFile.createPDOMName(PDOMFile.java:524)
    at org.eclipse.cdt.internal.core.pdom.dom.PDOMFile.addNames(PDOMFile.java:490)
    at org.eclipse.cdt.internal.core.pdom.WritablePDOM.addFileContent(WritablePDOM.java:158)
    at org.eclipse.cdt.internal.core.index.WritableCIndex.setFileContent(WritableCIndex.java:90)
    at org.eclipse.cdt.internal.core.pdom.PDOMWriter.storeFileInIndex(PDOMWriter.java:692)
    at org.eclipse.cdt.internal.core.pdom.PDOMWriter.storeSymbolsInIndex(PDOMWriter.java:330)
    at org.eclipse.cdt.internal.core.pdom.PDOMWriter.addSymbols(PDOMWriter.java:287)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.writeToIndex(AbstractIndexerTask.java:1295)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.parseFile(AbstractIndexerTask.java:1107)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.parseLinkage(AbstractIndexerTask.java:944)
    at org.eclipse.cdt.internal.core.pdom.AbstractIndexerTask.runTask(AbstractIndexerTask.java:572)
    at org.eclipse.cdt.internal.core.pdom.indexer.PDOMIndexerTask.run(PDOMIndexerTask.java:164)
    at org.eclipse.cdt.internal.core.pdom.indexer.PDOMRebuildTask.run(PDOMRebuildTask.java:94)
    at org.eclipse.cdt.internal.core.pdom.PDOMIndexerJob.run(PDOMIndexerJob.java:160)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

 

 

Did anybody face this kind of issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Jacob WOODRUFF
ST Employee

Hi All,

 

This question has been routed to our online support center for support from our team. 

 

Regards,

Jake

ST Support

View solution in original post

1 REPLY 1
Jacob WOODRUFF
ST Employee

Hi All,

 

This question has been routed to our online support center for support from our team. 

 

Regards,

Jake

ST Support