Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358779

Summary: Clicking 'OK' in Project Properties Dialog results in "Out of Bounds" Error
Product: [Tools] CDT Reporter: hex4def6
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED WONTFIX QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: major    
Priority: P3 CC: cdtdoug, hex4def6
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Log file from Eclipse
none
screenshot of project properties none

Description hex4def6 CLA 2011-09-23 17:19:08 EDT
Build Identifier: 20110218-0911

I have a project that utilizes QT / Eclipse. It has been working fine until recently (I'm not sure what caused the error to start occurring).

Now, when I try to change a project properties, I get an "Out of Bounds Error" when I try to save the change.

Reproducible: Always

Steps to Reproduce:
1.Right Click on Project in Project Explorer
2.Select "Properties"
3.Click "OK"
 -- Result:
Dialog pops up that says:
"An Internal error has occur [sic] please check error log.
Java.lang.IllegalArgumentException: Indesx out of bounds

Reason:
Internal Error:"

Clicking "details" results in:
"Index Out of bounds" as elaboration.
Comment 1 hex4def6 CLA 2011-09-23 17:19:59 EDT
Created attachment 203942 [details]
Log file from Eclipse
Comment 2 Andrew Gvozdev CLA 2011-09-23 18:32:38 EDT
Can you attach a screenshot of your project properties?
Comment 3 hex4def6 CLA 2011-09-27 11:57:42 EDT
Created attachment 204099 [details]
screenshot of project properties

Per request, here are some of the project properties.
Comment 4 Andrew Gvozdev CLA 2011-09-27 13:03:08 EDT
You are using old project style of CDT 3.1 which is not supported anymore.
The log shows the exception has to do with Discovery Options. Try to re-select a discovery profile (GCC per project profile for example) and save.
Comment 5 hex4def6 CLA 2011-09-27 13:41:33 EDT
(In reply to comment #4)
> You are using old project style of CDT 3.1 which is not supported anymore.
> The log shows the exception has to do with Discovery Options. Try to re-select
> a discovery profile (GCC per project profile for example) and save.


I selected "Automate Discovery of Paths and Symbols", and then in the dropbox, selected "GCC per project scaner info profile". I then clicked OK.

It resulted in:

"An Internal error has occur [sic] please check error log.
java.lang.NullPointerException

Reason:
Internal Error:

java.lang.NullPointerException"
Comment 6 hex4def6 CLA 2011-09-27 13:50:59 EDT
(In reply to comment #5)
> (In reply to comment #4)
> > You are using old project style of CDT 3.1 which is not supported anymore.
> > The log shows the exception has to do with Discovery Options. Try to re-select
> > a discovery profile (GCC per project profile for example) and save.
> 
> 
> I selected "Automate Discovery of Paths and Symbols", and then in the dropbox,
> selected "GCC per project scaner info profile". I then clicked OK.
> 
> It resulted in:
> 
> "An Internal error has occur [sic] please check error log.
> java.lang.NullPointerException
> 
> Reason:
> Internal Error:
> 
> java.lang.NullPointerException"

Just an update; 

I selected yet another profile, clicked "Apply", then reselected "GCC per project scanner info profile", then clicked OK. This then exited without either Internal Error mentioned occurring.

So, thanks for the explanation. I do think that eclipse should be a bit more robust / explanatory about this situation however.

Thanks.
Comment 7 Andrew Gvozdev CLA 2011-09-27 14:14:27 EDT
(In reply to comment #6)
> So, thanks for the explanation. I do think that eclipse should be a bit more
> robust / explanatory about this situation however.
I agree. We'll focus on the parts currently being maintained and those under development though.