Bug 163174 - Eclipse crashes every time I use it
Summary: Eclipse crashes every time I use it
Status: RESOLVED DUPLICATE of bug 161310
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: vm
Depends on:
Blocks:
 
Reported: 2006-11-01 23:42 EST by Panickos Neophytou CLA
Modified: 2007-04-26 09:26 EDT (History)
6 users (show)

See Also:


Attachments
Error log from crashing Eclipse run (46.25 KB, text/plain)
2006-11-02 12:44 EST, Panickos Neophytou CLA
no flags Details
VM crash log (36.52 KB, application/octet-stream)
2006-11-08 18:03 EST, thinkenterprise CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Panickos Neophytou CLA 2006-11-01 23:42:16 EST
I started using eclipse 3.2.1 a few days ago and I alway have the same problem. I'm writing code and suddenly it exits with the following message:

JVM terminated. Exit code=6
/usr/bin/java
-Xms40m
-Xmx256m
-jar /usr/share/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/share/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 8190001
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /usr/share/eclipse/startup.jar

I tried using JSDK1.5.0_09-b03, JRE1.5.0_09-b03 on a variety of machines (Windows XP, Windows Vista and RedHat EL 3). All of them with the same problem.
What is the problem? My files are on AFS. Version 3.1 of Eclipse and earlier versions that I used worked fine for 2 years now.

Am I missing something? Please help me because I need to use Eclipse for a lot of my projects.

Thanks,
Panickos
Comment 1 Olivier Thomann CLA 2006-11-02 08:14:32 EST
Move to Platform/Runtime
Comment 2 John Arthorne CLA 2006-11-02 10:32:53 EST
When the Java VM crashes like this, there is usually a VM crash log that contains stack trace information. It's usually found in the current working directory of the eclipse process (usually the eclipse install directory).  Look for a file there called something like core... javacore... or hs_err..., and attach it here.
Comment 3 Panickos Neophytou CLA 2006-11-02 12:44:05 EST
Created attachment 53150 [details]
Error log from crashing Eclipse run
Comment 4 thinkenterprise CLA 2006-11-08 18:03:00 EST
Created attachment 53509 [details]
VM crash log
Comment 5 thinkenterprise CLA 2006-11-08 18:04:09 EST
Comment on attachment 53509 [details]
VM crash log

I am seeing the same issue. Running Eclipse 3.2.1 on RedHat ES 3
Comment 6 John Arthorne CLA 2006-11-09 16:15:11 EST
I can't make much sense of these crashes... there seems to be nothing particularly interesting going on. Andrew: any reports on your end for problems like this in REL 3 with Eclipse 3.2.1?
Comment 7 Ben Konrath CLA 2006-11-09 16:38:45 EST
This looks like it might be the same problem as bug #159616.
Comment 8 Jarkko Lietolahti CLA 2006-12-17 02:08:55 EST
Try adding 
-XX:MaxPermSize=128m
to your eclipse.ini
Comment 9 Oleg Besedin CLA 2006-12-18 11:25:06 EST
This line in the error stacks looks the same as the one I see on crashes on my WinXP computer with Sun VM:
 compacting perm gen  total 35840K, used 35651K [0x659b0000, 0x67cb0000, 0x859b0000)
   the space 35840K,  99% used [0x659b0000, 0x67c80f58, 0x67c81000, 0x67cb0000)

In about 80% of VM crashes I've encountered recently logs say that one of the heap areas or the PermGen area is at 99% and being compacted.

For me the number of crashes went down drastically after I added VM arguments to specify the high maximum and *iniital* size of the perm gen memory:

 -Xmx768m -XX:MaxPermSize=256m -XX:PermSize=256m

(Of course, for your needs numbers might be different.)

Please let us know if using setting the initial perm gen size and/or maximum perm gen size helps.
Comment 10 DJ Houghton CLA 2007-03-29 14:10:46 EDT
I agree with Ben that this is a dup of bug 159616. Marking as dup of the bug that bug 159616 is marked a dup of. (if that makes any sense :)


*** This bug has been marked as a duplicate of bug 161310 ***
Comment 11 Andrey Loskutov CLA 2007-04-26 09:26:10 EDT
According to the comment 9 it seems to be a VM memory management problem, according to comment 10 it is a mizilla/swt Linux libraries problem...

The bug was reported against different platforms (not only Linux), so how it is linked together and why this but is a duplicate of 161310?