Bug 227263

Summary: eclipse does not start
Product: [openSUSE] openSUSE 10.3 Reporter: Joachim Deguara <joachim.deguara>
Component: JavaAssignee: E-mail List <bnc-team-java>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: davidcanar, felix, joachim.goeschel, uli.egger
Version: Alpha 4plus   
Target Milestone: ---   
Hardware: i586   
OS: Other   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Configuration Details

Description Joachim Deguara 2006-12-08 20:31:01 UTC
I selected eclipse to be installed during initial installation and this worked without any warnings or errors.  Howevere whenever I try to start eclipse I get the following message; "JVM terminated. Exit code=1
/usr/lib64/jvm/java/bin/java
-Xms64M
-Xmx256M
-jar /usr/share/eclipse/startup.jar
-os linux
-ws gtk
-arch x86_64
-launcher /usr/share/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 22001b
-data /home/joachim/.eclipse
-vm /usr/lib64/jvm/java/bin/java
-vmargs
-Xms64M
-Xmx256M
-jar /usr/share/eclipse/startup.jar"

and of cource eclipse does not start.  Java appears to work as Azureus (64-bit) works fine.
Comment 1 Joachim Deguara 2006-12-10 21:59:48 UTC
jedit also would not work.  After I installed sun 1.5.0 java devel, both apllication could be run and do not show problems.
Comment 2 Felix Möller 2007-03-29 11:07:49 UTC
I got this one with current factory too!

# eclipse
JVM terminated. Exit code=1
/usr/bin/java
-Xms64M
-Xmx256M
-jar /usr/share/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/share/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 600006
-data /home/felix/.eclipse
-vm /usr/bin/java
-vmargs
-Xms64M
-Xmx256M
-jar /usr/share/eclipse/startup.jar

I the konsole I see the following:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Comment 3 Felix Möller 2007-03-29 11:29:17 UTC
playing a little bit with it I found out that "eclipse -vmargs -Xmx64M -Xms64M" works.

The other values come from "/etc/eclipse.conf".

I have a notebook with 512MB RAM, this is quiete common and should be enough to run eclipse!
Comment 4 Felix Möller 2007-03-29 22:48:24 UTC
eclipse -vmargs -Xmx64M -Xms64M does not work reproducable ... ;(

I have downloaded eclipse-SDK-3.2.2-linux-gtk.tar.gz from eclipse.org and it has been working all the time for now. It does no change the memory-options:
/usr/bin/java -Xms40m -Xmx256m -jar /home/felix/Desktop/./eclipse/startup.jar -os linux -ws gtk -arch x86 -launcher /home/felix/Desktop/./eclipse/eclipse -name Eclipse -showsplash 600 -exitdata 1a8004 -vm /usr/bin/java -vmargs -Xms40m -Xmx256m -jar /home/felix/Desktop/./eclipse/startup.jar

The openSUSE eclipse does not work with the VM_ARGS uncommented.
# rpm -qa | grep eclipse
eclipse-platform-3.2.1-45
eclipse-swt-3_2-gtk2-3.2-0.pm.2
eclipse-gtk2-3.2.1-45
eclipse-scripts-3.2.1-45
eclipse-3.2.1-45
eclipse-jdt-3.2.1-45
Comment 5 Felix Möller 2007-04-10 15:28:53 UTC
It works for me since one of the last factory updates ... 

For the record:
felix@linux-95zp:~> rpm -qa | grep eclipse
eclipse-swt-3_2-gtk2-3.2-0.pm.2
eclipse-platform-3.2.1-47
eclipse-jdt-3.2.1-47
eclipse-gtk2-3.2.1-47
eclipse-3.2.1-47
eclipse-scripts-3.2.1-47
felix@linux-95zp:~> rpm -qa | grep java
java-1_4_2-gcj-compat-1.4.2.0-88
java-1_5_0-sun-plugin-1.5.0_update11-4
java-1_5_0-sun-1.5.0_update11-4
java-1_5_0-sun-devel-1.5.0_update11-4
java-1_5_0-sun-alsa-1.5.0_update11-4

I have no idea what change cured it for me ...
Comment 6 Daniel Bornkessel 2007-04-18 10:01:11 UTC
mmm ... should we close this bug then?
I can't reproduce it here neither
Comment 7 Joachim Deguara 2007-04-18 14:05:22 UTC
I tested with openSUSE 10.3 alpha 3 and had no problems installing and using eclipse.
Comment 8 Daniel Bornkessel 2007-04-18 14:31:25 UTC
ok ... closing this for now, please re-open if the problem should occur again.
Thanks,
Daniel
Comment 9 Felix Möller 2007-04-18 14:55:21 UTC
I am sad to report that the problem is there again. I have used eclipse on Sunday, therefore it must be from one of the factory updates since Monday 16.

java-1_5_0-sun-plugin-1.5.0_update11-5
java-1_5_0-sun-1.5.0_update11-5
java-1_5_0-sun-alsa-1.5.0_update11-5
java-1_5_0-sun-devel-1.5.0_update11-5
java-1_4_2-gcj-compat-1.4.2.0-91

eclipse-3.2.1-49
eclipse-swt-3_2-gtk2-3.2-0.pm.2
eclipse-scripts-3.2.1-49
eclipse-jdt-3.2.1-49
eclipse-gtk2-3.2.1-49
eclipse-platform-3.2.1-49

kernel-default-2.6.21_rc6_git4-2

# eclipse
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

JVM terminated. Exit code=1
/usr/lib/jvm/java/bin/java
-Xms64M
-Xmx256M
-jar /usr/share/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/share/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 350006
-data /home/felix/.eclipse
-vm /usr/lib/jvm/java/bin/java
-vmargs
-Xms64M
-Xmx256M
-jar /usr/share/eclipse/startup.jar
Comment 10 Felix Möller 2007-04-19 15:32:18 UTC
playing again with it:

# eclipse
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

while this works!
# java -jar /usr/share/eclipse/startup.jar
Comment 11 Felix Möller 2007-06-06 20:33:18 UTC
It is still the same

# java -jar /usr/share/eclipse/startup.jar 
works.

# eclipse
does not!
Comment 12 Daniel Bornkessel 2007-06-11 09:53:02 UTC
Hi Felix.
Thanks for keeping looking at this. Lately I was busy updating eclipse to the next release which is why I did not fix stuff on the old release.
I will test whether this works on my machine and come back to you.
Comment 13 Daniel Bornkessel 2007-06-11 17:38:10 UTC
Hi.
I set VM_ARGS in eclipse.ini to
VM_ARGS=""
to avoid that the VM tries to allocate more memory than available.
Eclipse still starts fine here then.
Please reopen the bug if the problem remains for versions >= 3.3M3

Thanks and sorry that it took rather long before I changed this setting.

Regards,
Daniel
Comment 14 Joachim Goeschel 2007-10-02 17:22:44 UTC
This issue pops up again on openSUSE 10.3 Goldmaster (x86-64). 
Comment 15 David Canar 2007-12-05 13:00:52 UTC
I can confirm that 10.3 GM 32bits still has this annoying problem.
Using Eclipse with Aptana plugins and openSUSE 10.3 32bits with all the online updates.
Version: 3.3.0
Build id: I20070625-1500
I keep getting "Out of memory error" every 10 minutes, it is unusable.

I changed my /usr/share/eclipse/eclipse.ini to 
-showsplash
org.eclipse.platform
-vmargs
-Xms512m
-Xmx1024m

but didn't make any change. I tried starting using:

eclipse -vmargs -Xmx64M -Xms64M

but it doesn't help either. I also see that my /etc/eclipse.conf has this:

# The directory where to find the workspace by default.
USER_DIR="$HOME/.eclipse"

# The JVM to use. If you have jpackage-utils installed, you shouldn't set this.
#JAVACMD=""

# Arguments to pass to the JVM.
VM_ARGS=""

Please let me know if you need more information
Comment 16 David Canar 2007-12-05 13:48:43 UTC
Something interesting I found out is that when I read my configuration details, it doesn't show the arguments that the eclipse.ini has. I'll attach my Configuration Details. Also when I pass the arguments directly using (for example):

eclipse -vmargs -Xmx64M -Xms64M

those arguments don't show up in the configuration details either. The only time the arguments show up in the configuration details is when I edit the file /usr/share/eclipse/eclipse and I add them in this line:

/usr/share/eclipse/eclipse.bin -startup $STARTUP_JAR "" -vmargs -Xms512m -Xmx1024m 

And doing this the problem is gone. Why is the eclipse.ini file being ignored in the first place? or why are the arguments passed in the command line also being ignored? I think they shouldn't, should they?
Comment 17 David Canar 2007-12-05 13:52:35 UTC
Created attachment 186005 [details]
Configuration Details

Configuration Details don't contain the arguments that the eclipse.ini file has nor the arguments being passed as arguments in the command line
Comment 18 Daniel Bornkessel 2007-12-05 14:51:08 UTC
Hi.
Try having your eclipse.ini being:

-showsplash
org.eclipse.platform
-vmargs
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-XX:PermSize=128m


assigning to Java team
Comment 19 Ulrich Egger 2008-01-24 14:10:13 UTC
I had the same bug with Eclipse.

I fixed the problem by downgrading my x.org installation using the SUSE 10.3 installation DVD.

Eclipes always worked until a recent automatic update which also updated 
my xorg installation.

It would be helpful to be informed when xorg can be updated again without creating conflicts with Eclipse
Comment 20 Ales Nosek 2008-05-22 09:43:10 UTC
I think it's fixed. I cannot reproduce it. I'm closing the bug, please re-open if the problem should occur again. Thank you