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

Bug 319495

Summary: Eclipse IDE hangs / locks up in Vista 64-bit
Product: [Eclipse Project] Platform Reporter: Randy Given <GivenRandy>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, francisu, GivenRandy, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Thread Dump when IDE locks up none

Description Randy Given CLA 2010-07-11 19:57:36 EDT
Build Identifier: 20100617-1415

Using Eclipse IDE for Java Developers (build id 20100617-1415) on Vista 64-bit with all 64-bit installs. It hangs / locks up quickly and easily. Haven't noticed any particular trigger -- can be when editing, when switching to files, pretty much anything. Turned off UDC, didn't help. I can't get any work done.

Reproducible: Always
Comment 1 Remy Suen CLA 2010-07-12 05:46:35 EDT
Please attach a thread dump.
http://wiki.eclipse.org/How_to_report_a_deadlock

Does it hang with Eclipse Classic?
http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php
Comment 2 Randy Given CLA 2010-07-12 20:40:26 EDT
Created attachment 174111 [details]
Thread Dump when IDE locks up
Comment 3 Dani Megert CLA 2010-07-13 03:00:26 EDT
Are you sure it's a hang and not an OOME (PermGen space)? There's a problem with latest Java 1.6.0_21 from Oracle, see bug 319514.
Comment 4 Francis Upton IV CLA 2010-07-13 04:57:18 EDT
(In reply to comment #3)
> Are you sure it's a hang and not an OOME (PermGen space)? There's a problem
> with latest Java 1.6.0_21 from Oracle, see bug 319514.
Running out of PermGen space can cause infinite loops in Equinox (don't have the bug number but I have seen it.) I expect it can also cause hangs as well.
Comment 5 Randy Given CLA 2010-07-13 20:57:08 EDT
This is what my INI already was:

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.0.v20100503
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
Comment 6 Remy Suen CLA 2010-07-13 21:02:57 EDT
Randy, can you confirm whether you are using HotSpot 6u21?
Comment 7 Randy Given CLA 2010-07-13 22:13:22 EDT
I don't know if it was HotSpot or not, but it was 6u21. So, I removed everything but SDK 1.5. Set up for 2.1r1. Made simple project. Went to res -> layout -> main.xlm ... and it just spins and spins (not responding). Dang, I've never seen a development environment this unfriendly. Talking back to Apple II and TRS-80 days (Sinclair, too). Maybe it's just a perfect storm I / we stumbled into.
Comment 8 Dani Megert CLA 2010-07-14 02:28:43 EDT
Randy, please either try Java 6u20 or set the VM arguments on the command line using -vmargs <vm arguments>.
Comment 9 Randy Given CLA 2010-07-14 12:28:42 EDT
My earlier comment was unfair -- I was just frustrated.

I'll try the new suggestion in a few hours or ASAP.
Comment 10 Dani Megert CLA 2010-07-14 12:30:36 EDT
Even easier to try: Add the following line after "-vmargs" to your eclipse.ini:
-XX:MaxPermSize=256m
Comment 11 Randy Given CLA 2010-07-14 21:27:21 EDT
Yes, that makes it usable. Thanks!
Comment 12 Remy Suen CLA 2010-07-14 21:49:09 EDT

*** This bug has been marked as a duplicate of bug 319514 ***