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

Bug 357740

Summary: Quick outline causing unhandled event loop execution/java.lang.StackOverflowError
Product: z_Archived Reporter: Nicklas Gummesson <gummesso>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: gummesso, silviya, zulus
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch none

Description Nicklas Gummesson CLA 2011-09-15 05:05:24 EDT
Build Identifier: I20110613-1736

I use quick outline quite a lot and all of sudden I get this error consistently.
Following the "steps to reproduce" this is happening consistently to me.

The error log gives me:
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.StackOverflowError
	at org.eclipse.dltk.internal.core.ProjectFragment.hashCode(ProjectFragment.java:114)
	at org.eclipse.dltk.internal.core.ScriptFolder.hashCode(ScriptFolder.java:127)
	at org.eclipse.dltk.internal.core.ModelElement.hashCode(ModelElement.java:299)
	at org.eclipse.dltk.internal.core.ModelElement.hashCode(ModelElement.java:299)
	at java.util.HashMap.get(HashMap.java:300)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:513)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
	at org.eclipse.dltk.internal.core.hierarchy.TypeHierarchy.getAllSupertypes0(TypeHierarchy.java:519)
... (continues for another hundred lines or so).

Reproducible: Always

Steps to Reproduce:
1. Latest versions of Eclipse + PDT.
2. Have a PHP project which has been indexed by DLTK.
3. Open quick outline, using CMD+o.
4. Press CMD+o again to see parent/inherited methods/properties.
5. Eclipse displays a dialog window saying "Unhandled event loop execution\njava.lang.StackOverflowError", and advice me to close the workbench.
Comment 1 Nicklas Gummesson CLA 2011-09-15 05:09:16 EDT
Since I cannot select the proper PDT version in the ticket I'll write it here:
PDT - 3.0.0.v20110516-1100
DLTK H2-based indexer - 3.0.0.v20110423
Comment 2 Zhongwei Zhao CLA 2011-09-15 05:27:16 EDT
Created attachment 203391 [details]
patch
Comment 3 Dawid Pakula CLA 2014-02-18 18:34:45 EST
It works correctly with latest PDT/DLTK snapshot.
Comment 4 Sylvia Tancheva CLA 2015-06-05 01:46:36 EDT
Verified on Yosemite with current PDT. No errors. closing