eclipse crashes on launching with a bad alloc

Bug #184169 reported by Pau Minoves
4
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
New
Undecided
Unassigned
xorg-server (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

Hi,

My eclipse has suddenly (I've been working with it today) stopped to launch. When I launch it i get a popup with message (1). I also happens via the shell throwing the same popup and message (2).

I'm on Ubuntu 7.10 fully updated (with compiz fusion). Eclipse is 3.2.2 with java environment and WTP (also without WTP, fresh eclipse install).
I've "sun-java5-jdk" and "sun-java6-jdk" installed, Eclipse is using java6.

I've done nothing relevant on the system between successful eclipse use and bug appearance.

As it seems an Xorg problem too, here is relevant updates from /var/log/dpkg.log

2008-01-18 12:24:15 status installed libxfont1 1:1.3.0-0ubuntu1.1
2008-01-18 12:24:15 status installed xserver-xorg-core 2:1.3.0.0.dfsg-12ubuntu8.1
2008-01-18 12:24:23 status installed libc6 2.6.1-1ubuntu10

Things I've already tried:

1 - Download and run an standalone eclipse tarball from eclipse.org.
2 - Remove and reinstall eclipse (plain, without WTP).
3 - Reboot (many many times).
4 - Add swap memory. From top:

Mem: 1027328k total, 790028k used, 237300k free, 43520k buffers
Swap: 524280k total, 0k used, 524280k free, 329996k cached

Allways the same issue :(

I've been unable to locate another program that fails. Mplayer, Firefox, all is ok.

Any hint will be much apreciated
Thanks!

(1)- eclipse popup message:

VM terminated. Exit code=1
/usr/lib/jvm/java-6-sun/bin/java
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata f000f
-install /usr/lib/eclipse
-vm /usr/lib/jvm/java-6-sun/bin/java
-vmargs
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar

(2) - eclipse console message:

searching for compatible vm...
  testing /usr/lib/jvm/java-gcj...not found
  testing /usr/lib/kaffe/pthreads...not found
  testing /usr/lib/jvm/java-6-sun...found
The program 'Eclipse' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 449 error_code 11 request_code 146 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Revision history for this message
Sergejs (sergejs-nosovs) wrote :

I have the same error by starting Eclipse today.
Last Friday all was OK, I've been working with Eclipse all time.

Ubuntu 7.10 with all updates,
Eclipse 3.3.0,
Java version "1.6.0_03"

Revision history for this message
Sergejs (sergejs-nosovs) wrote :

I've found temporarily decision in this bug report "xserver-xorg-core update breaks java & wxwidgets apps"
See link https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/183969

I've got for my Ubuntu 7.10 the previous version from https://launchpad.net/ubuntu/gutsy/i386/xserver-xorg-core/2:1.3.0.0.dfsg-12ubuntu8,
installed it and restarted X-server.

wget http://launchpadlibrarian.net/9590664/xserver-xorg-core_1.3.0.0.dfsg-12ubuntu8_i386.deb
sudo dpkg -i xserver-xorg-core_1.3.0.0.dfsg-12ubuntu8_i386.deb

All works now ;)

Revision history for this message
gnufreex (gnufreex) wrote :

I also have same problem with Eclipse, crashes on startup. But I use 64-bit Jaunty jackalope, so that fix don't work. Help please.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.