Why does my Eclipse Indigo crash on Ubuntu 13.04 with Oracle JDK 64bit?

EclipseCrashJava

Eclipse Problem Overview


I installed jdk and eclipse on to Ubuntu 13.04. It stays open till I create a project and type some basic but then suddenly within a minute when I click somewhere like javadoc or Ctrl+Space, it immediately crashes with the following message. I had this problem with Juno and Ubuntu 12.04, but when I upgraded from Juno to Indigo, it was fine. But now after using Indigo and Ubuntu 13.04 it's all messed up. Even Juno won't work with Ubuntu 13.04, I need help. I need to get eclipse working. I just am ready to install/remove anything to get Eclipse working again.

[psycho:~] $ /opt/eclipse/eclipse 

(Eclipse:19297): Gtk-WARNING **: Unable to locate theme engine in module_path: "mist",

(Eclipse:19297): Gtk-WARNING **: Unable to locate theme engine in module_path: "mist",
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fb29dce2009, pid=19297, tid=140405947455232
#
# JRE version: 7.0_10-b18
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libsoup-2.4.so.1+0x6e009]  soup_session_feature_detach+0x19
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try        "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/psycho/hs_err_pid19297.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

My Logs: Logs generated by eclipse

Eclipse Solutions


Solution 1 - Eclipse

I had the same error running ADT on Ubuntu 13.04 with Gnome Shell 3.8.
I found this relevant bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776
And a workaround as posted in the bug report: Add

-Dorg.eclipse.swt.browser.DefaultType=mozilla

to your eclipse.ini
It worked for me, I hope it solves the problem for you as well.

Solution 2 - Eclipse

I am running eclipse luna on Ubuntu 12.04 and facing the same problem. I resolved it by adding the following line in eclipse.ini file as other options didn't work for me.

-Dorg.jboss.tools.vpe.loadxulrunner=false

Hope it helps!

Solution 3 - Eclipse

It appears to be an Ubuntu / GTK themes problem. According to this page on "Ubuntu Technical", it is caused by a missing GTK "theme engine" package. The fix is to identify the specific GTK theme engine package for the "mist" theme ... or just install theme engines by installing the package "gtk-engines" (source).

Solution 4 - Eclipse

Note that https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776 has been fixed, so the best way of avoiding this crash is to use Eclipse 4.3.2 or newer if you can.

Solution 5 - Eclipse

For me it was the problem with this bug and the workaround was to change the GTK theme (System Settings > Application appearence > GTK).

Solution 6 - Eclipse

In my case , the problem was solved by adding the following to the end of eclipse.ini

org.eclipse.swt.browser.DefaultType=mozilla

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionvikkyhacksView Question on Stackoverflow
Solution 1 - Eclipseuser2055996View Answer on Stackoverflow
Solution 2 - Eclipseh-raiView Answer on Stackoverflow
Solution 3 - EclipseStephen CView Answer on Stackoverflow
Solution 4 - EclipseGrant GayedView Answer on Stackoverflow
Solution 5 - EclipseAdrian BerView Answer on Stackoverflow
Solution 6 - EclipseOngati FelixView Answer on Stackoverflow