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

Bug 319752

Summary: Unhandled event loop exception: PermGen space
Product: [Eclipse Project] Platform Reporter: Ali.Nouroozpour
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: Ali.Nouroozpour, francisu
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Stack trace and windows error message none

Description Ali.Nouroozpour CLA 2010-07-13 12:09:52 EDT
Build Identifier: 

Had previously opened a file in the editor (xx.java).
Attempted to import a new project from TFS using plug-in, this is a new file with a package that refers to xx.java but xx.java was not imported from TFS.
Click on the tab showing xx.java, and receive the above error.

Reproducible: Always

Steps to Reproduce:
1. Create a new project, add a single class with main and a single line; say system.out....
2. Save project.
3. Share project to TFS (using Team Explorer Everywhere).
4. Ensure xx.java is open in IDE
5. Before checking in, untick xx.java (I did this unintentionally!!)
6. Open and bring to front some other unit while xx.java is still open.
7. Switch to TFS and check-in.
8. Switch to Eclipse and delete project (including disk files) ensure that xx.java is still open.
9. File -> Import same project from TFS.
10. Click on xx.java tab. 2 things happen a) Eclipse crashes and disappears from the screen or b) goes into an infinite loop showing an unhandled exception error (see attachment).
Comment 1 Ali.Nouroozpour CLA 2010-07-13 12:12:29 EDT
Created attachment 174171 [details]
Stack trace and windows error message
Comment 2 Francis Upton IV CLA 2010-07-13 12:16:17 EDT
Likely a dup of bug 319514. Please try either a Java version that's not u21 or the permgen parameter workaround suggested there. Please reopen if you think it's not a dup.

*** This bug has been marked as a duplicate of bug 319514 ***
Comment 3 Ali.Nouroozpour CLA 2010-07-14 05:20:15 EDT
(In reply to comment #2)
> Likely a dup of bug 319514. Please try either a Java version that's not u21 or
> the permgen parameter workaround suggested there. Please reopen if you think
> it's not a dup.
> *** This bug has been marked as a duplicate of bug 319514 ***

Francis

Thanks for the quick response. I read through 319514's history with interest.

Just doing some research, and as per your suggestion, I found some usefull info on http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F.

So my startup arg now looks like this:
"C:\Program Files\Eclipse\eclipse.exe" -vm "C:\Program Files\Java\jre6\bin\javaw.exe"

So far I've been able to import and other stuff I was trying to do (but couldn't) without problem, but then again this being my first java proj and first time I've used eclipse (I'm a VC++ and Delphi programmer for my sins!) ...

Regards
Comment 4 Ali.Nouroozpour CLA 2010-07-14 05:35:26 EDT
(In reply to comment #2)
> Likely a dup of bug 319514. Please try either a Java version that's not u21 or
> the permgen parameter workaround suggested there. Please reopen if you think
> it's not a dup.
> *** This bug has been marked as a duplicate of bug 319514 ***

Francis

Thanks for the quick response. I read through 319514's history with interest.

Just doing some research, and as per your suggestion, I found some usefull info on http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F.

So my startup arg now looks like this:
"C:\Program Files\Eclipse\eclipse.exe" -vm "C:\Program Files\Java\jre6\bin\javaw.exe"

So far I've been able to import and other stuff I was trying to do (but couldn't) without problem, but then again this being my first java proj and first time I've used eclipse (I'm a VC++ and Delphi programmer for my sins!) ...

Regards