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

Bug 325056

Summary: When editing a java file and trying to do a type-ahead, eclipse crashes. (Ubuntu 10.04)
Product: [Eclipse Project] Platform Reporter: jay <dembaremba>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: remy.suen, thatnitind
Version: 3.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
The log file generated after the crash of eclipse
none
Projects Available in eclipse helios
none
About Eclipse - Helios none

Description jay CLA 2010-09-12 13:37:56 EDT
Build Identifier: M20100211-1343

Each time I try to do a class method type ahead OR if I hover on a class/method to get more information about it, eclipse crashes with this error msg:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0412bcee, pid=2910, tid=3003018096
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK Client VM (16.0-b13 mixed mode, sharing linux-x86 )
# Derivative: IcedTea6 1.8.1
# Distribution: Ubuntu 10.04 LTS, package 6b18-1.8.1-0ubuntu1
# Problematic frame:
# C  [libmozjs.so+0x1acee]  js_NextActiveContext+0x16
#
# An error report file with more information is saved as:
# /home/jay/hs_err_pid2910.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#
Aborted

The problem

Reproducible: Always

Steps to Reproduce:
1.Create a simple new class, with a class method and a main method e.g. Person class with method getName();
2.Create a new instance of the class e.g Person p = new Person()
3.If want to then say p.getName(), at the point of pressing the . to get the list of methods available in the Person class it then crashes. This is also happening if you simply hover on the person class instance whereby eclipse tries to tell you more about the class, it then crashes.
Comment 1 jay CLA 2010-09-12 13:43:16 EDT
Created attachment 178703 [details]
The log file generated after the crash of eclipse
Comment 2 jay CLA 2010-09-12 13:44:59 EDT
java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1)
OpenJDK Server VM (build 16.0-b13, mixed mode)
Comment 3 Remy Suen CLA 2010-09-12 17:30:10 EDT
What versions of XULRunner/Firefox/Seamonkey do you have installed?

If you use Eclipse 3.6 does the crash still happen?
http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php
Comment 4 jay CLA 2010-09-12 18:36:59 EDT
Mozilla XULRunner 1.9.1.9 - 20100401213457
Comment 5 jay CLA 2010-09-12 18:42:48 EDT
I am currently busy downloading eclipse-jee-helios-linux-gtk and try it out. I get very confused with eclipse site and the various downloads - is 3.6 later or same as helios? Anyway, I must say this problem only started when I upgraded my ubuntu from 9.10 to 10.04. Before that, I never had any problems with the same version of eclipse.
Comment 6 Grant Gayed CLA 2010-09-13 12:45:36 EDT
jay can you try a quick experiment?  Before launching eclipse at the command line try setting MOZILLA_FIVE_HOME to some bogus value, like:

bash> export MOZILLA_FIVE_HOME=/dev/null

Does this help?  I notice in your attached log that there are gecko libraries loaded from both /usr/lib/xulrunner-1.9.1.9 and /usr/lib/xulrunner-1.9.2.9, which can't be good.  I'm hoping that setting MOZILLA_FIVE_HOME to a bogus value will make this stop happening.
Comment 7 jay CLA 2010-09-14 13:34:25 EDT
Hi Grant, when I got u comment I had already uninstalled eclipse and replace it with helios anyway:

1. I re-installed it (version from the ubunt 10.04 repositories) i.e the one I've always used. Did what you told me to do and it still crashed.

2. I then un-installed it again and this time tried eclipse-jee-helios. It works perfectly BUT I also installed the WTP  plugin to do Web Development and I seem to be missing the Dynamic Web Project option. For my existing web projects I can't export to a war file as well. I checked everything and WTP seems to be installed fine. 

I really am wondering if my environment has some problems somewhere. I have attached the screen-shots of the eclipse version as well as new project options. Has something changed in Helios with regards to Dynamic Web Development or am I missing something.
Comment 8 jay CLA 2010-09-14 13:35:44 EDT
Created attachment 178855 [details]
Projects Available in eclipse helios
Comment 9 jay CLA 2010-09-14 13:36:55 EDT
Created attachment 178856 [details]
About Eclipse - Helios
Comment 10 Nitin Dahyabhai CLA 2010-09-14 13:43:11 EDT
(In reply to comment #7)
> Hi Grant, when I got u comment I had already uninstalled eclipse and replace it
> with helios anyway:
> 
> 1. I re-installed it (version from the ubunt 10.04 repositories) i.e the one
> I've always used. Did what you told me to do and it still crashed.
> 
> 2. I then un-installed it again and this time tried eclipse-jee-helios. It
> works perfectly BUT I also installed the WTP  plugin to do Web Development and
> I seem to be missing the Dynamic Web Project option. For my existing web
> projects I can't export to a war file as well. I checked everything and WTP
> seems to be installed fine. 
> 
> I really am wondering if my environment has some problems somewhere. I have
> attached the screen-shots of the eclipse version as well as new project
> options. Has something changed in Helios with regards to Dynamic Web
> Development or am I missing something.

You're probably missing something.  How did you install WTP (it's not a single plug-in)?
Comment 11 jay CLA 2010-09-14 13:52:08 EDT
Using he "Install New Software.." option and reposition: http://download.eclipse.org/webtools/repository/helios

Currently it says all items are installed. What other plugin do I have to install?
Comment 12 jay CLA 2010-09-14 16:34:27 EDT
Ok, I think I am going to wrap this up. I un-installed everything related to eclipse in my environment (using the Synaptic Package Manager) including the deletion of the .eclipse/ folder in my home dir. Unzipped again the eclipse-jee-helios-linux-gtk file I downloaded earlier and voila:

1. My eclipse is not crashing any longer

2. My Dynamic Web Project plugin is now available and I can now export my project to a war file.

I really can't say what the problem was but one thing is for sure: An installation of eclipse from the 10.04 repositories keeps crashing as I explained in this bug report.

Thanks everyone for the help.
Comment 13 Grant Gayed CLA 2010-09-16 10:22:27 EDT
Ok, if this works with the eclipse from eclipse.org then there's nothing to do on this end, closing report.