Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How can I debug the index?

Forgot a link to the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=411817

-Andrew

On 13-08-22 03:41 PM, Andrew Eidsness wrote:
> This is something that we ran into as well.  The error depends on the code that is in your workspace, however, I was
> never able to isolate the exact pattern that triggers the error.  The other way to trigger this bug (if your workspace
> contains the problem code) is to do a <ctrl>-<shift>-t and search for "*".
> 
> Other code in the same file (javadoc right above the parameter definition) says that it can be null.  For now we've
> assumed that the javadoc comment is the right one and have masked the error with a null check at the point of this
> exception.
> 
> I haven't had a chance to go back and try to isolate the error.  It seems to be related to templates that are
> instanstiated with both a type and an int -- T<int> and T<5>.
> 
> -Andrew
> 
> On 13-08-22 02:32 PM, Nathan Ridge wrote:
>>> However, when I use the C/C++ Index view
>>
>> I had no idea we had an index view.
>>
>> I tried opening it for the project I'm currently working on. Expanding the
>> "C++" node under my project caused Eclipse to use 100% CPU for about
>> 5 minutes, after which I got "An internal error occurred during 'Child
>> Node Computation': java.lang.NullPointerException".
>>
>> Stack trace is:
>>
>> java.lang.NullPointerException
>>     at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalBinding.getBinding(EvalBinding.java:102)
>>     at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalBinding.computeType(EvalBinding.java:249)
>>     at org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.EvalBinding.getTypeOrFunctionSet(EvalBinding.java:243)
>>     at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPTemplateNonTypeArgument.getTypeOfNonTypeValue(CPPTemplateNonTypeArgument.java:79)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.appendArgument(ASTTypeUtil.java:187)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.appendArgumentList(ASTTypeUtil.java:165)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.appendCppName(ASTTypeUtil.java:746)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.appendTypeString(ASTTypeUtil.java:368)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.appendType(ASTTypeUtil.java:596)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.appendParameterTypeString(ASTTypeUtil.java:83)
>>     at org.eclipse.cdt.core.dom.ast.ASTTypeUtil.getParameterTypeString(ASTTypeUtil.java:71)
>>     at org.eclipse.cdt.internal.ui.indexview.IndexLabelProvider.getText(IndexLabelProvider.java:144)
>>     at org.eclipse.cdt.internal.ui.indexview.IndexView$IndexContentProvider.wrap(IndexView.java:279)
>>     at org.eclipse.cdt.internal.ui.indexview.IndexView$IndexContentProvider.computeChildren(IndexView.java:266)
>>     at org.eclipse.cdt.internal.ui.indexview.IndexView$IndexContentProvider.asyncronouslyComputeChildren(IndexView.java:230)
>>     at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.runJob(AsyncTreeContentProvider.java:229)
>>     at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.access$0(AsyncTreeContentProvider.java:224)
>>     at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider$1.run(AsyncTreeContentProvider.java:63)
>>     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>>
>> Somewhat amusingly, the comment above that line says: "fParameterOwner is guaranteed to be not null" :)
>>
>> Regards,
>> Nate 		 	   		  
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>>
> 
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 



Back to the top