Bug 385035 - Eclipse IDE crashes when clicking on one of the help menu items
Summary: Eclipse IDE crashes when clicking on one of the help menu items
Status: RESOLVED DUPLICATE of bug 410739
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Arun Thondapu CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 377367 383993 384592 385232 389761 397782 414782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-13 07:01 EDT by Michele De Stefano CLA
Modified: 2016-12-21 18:14 EST (History)
20 users (show)

See Also:


Attachments
Log file created when the problem occurs (82.18 KB, text/x-log)
2012-07-13 07:03 EDT, Michele De Stefano CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele De Stefano CLA 2012-07-13 07:01:47 EDT
Build Identifier: Version: Juno Release Build id: 20120614-1722 (Eclipse for parallel application developers)

When in the workbench, if I click on Help > Welcome or Help > Help Contents, the IDE crashes.

Reproducible: Always

Steps to Reproduce:
1. Start the IDE (it brings me directly to the workbench now)
2. Click on Help > Welcome or Help > Help Contents
Comment 1 Michele De Stefano CLA 2012-07-13 07:03:57 EDT
Created attachment 218692 [details]
Log file created when the problem occurs

May be this log file is useful to understand the problem on your side
Comment 2 Arun Thondapu CLA 2012-07-16 11:45:26 EDT
The crash is happening in the Mozilla Browser and it is most likely because of a xulrunner version mismatch. Which version of Mozilla Firefox and Xulrunner are you using?
Can you please verify that a supported version of Xulrunner or Webkit is installed and used by Eclipse as documented here? - http://www.eclipse.org/swt/faq.php#browserlinux and http://www.eclipse.org/swt/faq.php#browserwebkitgtk
Comment 3 Grant Gayed CLA 2012-07-16 13:00:47 EDT
CentOS/RHEL 5.8 does not provide a native browser that's supported by the Browser control, so a workaround that can be used is to download a supported XULRunner (download link: xulrunner-10.0.2.en-US.linux-x86_64.tar.bz2), extract it, and point at it by setting Java's org.eclipse.swt.browser.XULRunnerPath property (related FAQ entry: http://www.eclipse.org/swt/faq.php#specifyxulrunner ).

Your crash log indicates that it's currently trying to use /usr/lib64/xulrunner-2, which presumably is an install of XULRunner 2.x.  The Browser should not be attempting to do this, it should just fail to instantiate but not crash.  Are you doing anything to explicitly point at /usr/lib64/xulrunner-2 (eg.- setting Linux's MOZILLA_FIVE_HOME environment variable?  Or Java's org.eclipse.swt.browser.XULRunnerPath property?)?.  Or does your OS come with 
Linux's MOZILLA_FIVE_HOME environment variable set to this?
Comment 4 Grant Gayed CLA 2012-07-16 16:05:49 EDT
*** Bug 384592 has been marked as a duplicate of this bug. ***
Comment 5 Grant Gayed CLA 2012-07-16 16:06:12 EDT
*** Bug 385232 has been marked as a duplicate of this bug. ***
Comment 6 Grant Gayed CLA 2012-07-16 16:25:02 EDT
*** Bug 383993 has been marked as a duplicate of this bug. ***
Comment 7 Grant Gayed CLA 2012-07-30 13:34:35 EDT
(In reply to comment #3)
> ...Are you doing anything to explicitly point at
> /usr/lib64/xulrunner-2 (eg.- setting Linux's MOZILLA_FIVE_HOME environment
> variable?  Or Java's org.eclipse.swt.browser.XULRunnerPath property?)?.  Or
> does your OS come with 
> Linux's MOZILLA_FIVE_HOME environment variable set to this?

anyone?
Comment 8 Michael Jones CLA 2012-07-30 13:49:37 EDT
I don't believe that that environment variable is set on my system. I'm also not using a 64 bit machine.
Comment 9 Grant Gayed CLA 2012-07-30 15:58:17 EDT
Ok, follow-up question for anyone that sees this problem: Do you have one of the following files, and if so does its content point at the xulrunner-2 dir?

/etc/gre64.conf
/etc/gre.d/gre64.conf
/etc/gre.conf
/etc/gre.d/gre.conf
Comment 10 Michele De Stefano CLA 2012-07-31 02:01:25 EDT
(In reply to comment #7)
> (In reply to comment #3)
> > ...Are you doing anything to explicitly point at
> > /usr/lib64/xulrunner-2 (eg.- setting Linux's MOZILLA_FIVE_HOME environment
> > variable?  Or Java's org.eclipse.swt.browser.XULRunnerPath property?)?.  Or
> > does your OS come with 
> > Linux's MOZILLA_FIVE_HOME environment variable set to this?
> 
> anyone?

Sorry ... I've been on vacation up to now.

I've not done anything explicitly and I didn't know of the existence of that environment variable.
Simply, all previous Eclipse versions worked (and continue to work) with the same settings and Indigo does not.
Comment 11 Michele De Stefano CLA 2012-07-31 02:44:46 EDT
(In reply to comment #10)
> (In reply to comment #7)
> > (In reply to comment #3)
> > > ...Are you doing anything to explicitly point at
> > > /usr/lib64/xulrunner-2 (eg.- setting Linux's MOZILLA_FIVE_HOME environment
> > > variable?  Or Java's org.eclipse.swt.browser.XULRunnerPath property?)?.  Or
> > > does your OS come with 
> > > Linux's MOZILLA_FIVE_HOME environment variable set to this?
> > 
> > anyone?
> 
> Sorry ... I've been on vacation up to now.
> 
> I've not done anything explicitly and I didn't know of the existence of that
> environment variable.
> Simply, all previous Eclipse versions worked (and continue to work) with the
> same settings and Indigo does not.

Sorry ... I mean that Juno does not work with the same settings (Indigo, and all previous versions, work)
Comment 12 Michele De Stefano CLA 2012-07-31 02:45:56 EDT
(In reply to comment #9)
> Ok, follow-up question for anyone that sees this problem: Do you have one of
> the following files, and if so does its content point at the xulrunner-2 dir?
> 
> /etc/gre64.conf
> /etc/gre.d/gre64.conf
> /etc/gre.conf
> /etc/gre.d/gre.conf

I don't have any of these files
Comment 13 Grant Gayed CLA 2012-08-01 16:49:51 EDT
I don't know why it's trying to use the xulrunner-2 directory.

- I've tried on 64-bit RHEL 5.8 and the Browser successfully avoids it
- I've tried on 64-bit RHEL 6.2 (should be similar to CentOS 6.2 and Scientific Linux 6.2), and it comes with WebKitGTK and XULRunner versions that are both supported by the Browser.  There shouldn't be a need to fall back to something in a place called "xulrunner-2".

Still thinking about what could be happening...
Comment 14 Grant Gayed CLA 2012-09-17 16:29:24 EDT
*** Bug 389761 has been marked as a duplicate of this bug. ***
Comment 15 Michael Jones CLA 2012-10-10 11:53:03 EDT
None of these files exist on my system: 
/etc/gre64.conf
/etc/gre.d/gre64.conf
/etc/gre.conf
/etc/gre.d/gre.conf


I'm getting crashes in Eclipse 3.7 and 3.8 now when trying to do ctrl+space on an import, as well as 4.2

I'm using Scientific Linux 6.3.
Comment 16 Grant Gayed CLA 2012-11-05 11:00:46 EST
I notice that Ubuntu 12.10 only provides a GTK 3-based WebKit lib by default, but not the GTK 2-based WebKit lib needed by the Browser.  I'm wondering if distros like CentOS 6.x and Scientific Linux 6.x are doing something similar.  If you're on one of these, please see if /usr/lib/ contains a libwebkitgtk-1.0.so.0 link to a similarly-named lib in the same directory?  This is what the Browser needs.  If you only have a libwebkitgtk-3.0.so.0 link there then installing the libwebkitgtk-1.0 package (may not be the exact package name) should fix your problem.
Comment 17 Michael Jones CLA 2012-11-05 11:23:42 EST
I'm on SL6.3, and at the moment I don't have any files that match /usr/lib/libwebkit* 

After installing the package, though, a quick 5 minute attempt at reproducing the crash seems to show that the issue's fixed...

Can someone else corroborate?
Comment 18 Michele De Stefano CLA 2013-01-15 07:01:42 EST
I've just tried, on my CentOS 5, to download any update (there are no updates).
The issue is still there.
Comment 19 Lance Mead CLA 2013-01-15 10:07:47 EST
I was told that this bug covers my problem.  I have none listed files.  I am running Red hat 5.8 and Eclipse 4.2
Comment 20 Michael Jones CLA 2013-01-15 11:17:21 EST
[mjones@cmx070 ~]$ ls /usr/lib/libweb*
/usr/lib/libwebkit-1.0.so.2  /usr/lib/libwebkit-1.0.so.2.17.8


[mjones@cmx070 ~]$ lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: Scientific
Description:    Scientific Linux release 6.3 (Carbon)
Release:        6.3
Codename:       Carbon

[mjones@cmx070 ~]$ uname -a
Linux cmx070 2.6.32-279.9.1.el6.i686 #1 SMP Tue Sep 25 14:55:22 CDT 2012 i686 i686 i386 GNU/Linux
Comment 21 Grant Gayed CLA 2013-01-17 15:48:32 EST
*** Bug 397782 has been marked as a duplicate of this bug. ***
Comment 22 Grant Gayed CLA 2013-01-17 16:11:13 EST
I tried this again, this time with CentOS 5.8, and I still don't see the crash.  This release has XULRunner 1.9.2 by default, which Eclipse works fine with.  After applying the CentOS 5.8 auto-updates the XULRunner version was bumped up to XULRunner 10, which Eclipse does not detect and therefore does not crash with (Eclipse would actually not crash even if it did detect the XULRunner 10 because this coincidentally is a supported version).

My only remaining guess is that those that see this have taken a different path than me to get to the Linux release they're on.  For example, rather than downloading RHEL/CentOS 5.8, someone that started with RHEL/CentOS 5.0 and migrated it to 5.8 over the years via RHEL updates could have some baggage left in their OS image that a clean install of 5.8 would not have (?).
Comment 23 Michele De Stefano CLA 2013-01-17 17:34:55 EST
Yes. I've started with CentOS 5.0 and I've continuously upgraded through the standard CentOS upgrade program. Anyway, Eclipse Indigo still works. Eclipse Juno does not.
Comment 24 Lance Mead CLA 2013-01-23 09:30:12 EST
I started with RHEL 5.8, did an update the Red hat requested.  The version of xulrunner is xulrunner - 2.  i posted log files but you closed that bug.
Comment 25 Lance Mead CLA 2013-01-23 09:38:13 EST
I started with RHEL 5.8, did an update the Red hat requested.  The version of xulrunner is xulrunner - 2.  i posted log files but you closed that bug.
Comment 26 Lance Mead CLA 2013-01-23 10:55:44 EST
I started with RHEL 5.8, did an update the Red hat requested.  The version of xulrunner is xulrunner - 2.  i posted log files but you closed that bug.
Comment 27 Lance Mead CLA 2013-01-24 13:54:42 EST
I backed out updates to xulrunner until I got to version 1.9.2 and Eclipse works.  Eclipse should work with newer versions as well!

#yum downgrade xulrunner
Comment 28 Neil Cohen CLA 2013-01-31 13:44:20 EST
I just updated a RHEL 6.1 system to RHEL 6.3 and started seeing this problem. I now have XUL RPMs installed:

xulrunner-10.0.11-1.el6_3.x86_64
xulrunner10-10.0.1-1.el6.remi.x86_64


I tried a yum downgrade but it complains that Firefox and other programs require the more recent versions of xulrunner.

I am running a Juno build of Eclipse.

Is there a workaround that does not involve downgrading xulrunner?

thanks,

nbc
Comment 29 Grant Gayed CLA 2013-01-31 16:24:21 EST
(In reply to comment #28)
Installing the libwebkitgtk-1.0 package (may not be the exact package name) should make this work.
Comment 30 Michele De Stefano CLA 2013-02-01 03:26:23 EST
libwebgtk does not exist for CentOS 5.x. It's for Fedora.
Comment 31 Neil Cohen CLA 2013-02-01 07:52:24 EST
I'm running RHEL 6.x and libwebkit did not seem to exist. But I did install webkitgtk (both the 32 and 64 bit versions) and I have not seen the crash since that time yesterday afternoon...

nbc
Comment 32 Grant Gayed CLA 2013-06-25 12:51:39 EDT
*** Bug 377367 has been marked as a duplicate of this bug. ***
Comment 33 Mark Fishman CLA 2013-07-08 12:06:32 EDT
If I am understanding this thread correctly, the workaround suggested up to this point seems to be to use webkit rather than xulrunner, is that correct?  If so, is there any workaround if I want to continue using xulrunner?
Comment 34 Grant Gayed CLA 2013-07-08 12:18:51 EDT
(In reply to comment #33)
> If so, is there any workaround if I want to continue using xulrunner?

You need to:
1. Download a supported XULRunner, such as one from http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.4esr/runtimes/ .
2. Set -Dorg.eclipse.swt.browser.XULRunnerPath=<pathToXULRunner>, details: http://www.eclipse.org/swt/faq.php#specifyxulrunner .
3. Set -Dorg.eclipse.swt.browser.DefaultType=mozilla , details: http://www.eclipse.org/swt/faq.php#browserspecifydefault .
Comment 35 Grant Gayed CLA 2013-08-09 10:52:20 EDT
*** Bug 414782 has been marked as a duplicate of this bug. ***
Comment 36 Mary Komor CLA 2015-01-09 10:34:55 EST
Running into this with 4.2 on RHEL. 

Is this problem fixed in more recent versions of Eclipse? Any chance of a fix on 4.2.x? 

We have customers running into this often. We end up suggesting the XULRunner or WebKit workaround to them because there is seems to be nothing we can pre-configure before we ship our product. Our customers are not impressed.
Comment 37 Chris Lee CLA 2015-03-30 20:07:56 EDT
I recently installed Eclipse 4.4SR2 as an upgrade to Juno release, and had problems with it crashing shortly after starting to use it.  I eventually tracked it down to one of several activities: 
- displaying the "Javadoc" view
- displaying one of the "Help" menus (as described in this bug)
- Pressing Ctrl-Shift-J to try autogenerating Javadoc.

Googling around for that brought me through a chain of duplicates, and eventually to this bug.  The workaround Grant suggested does indeed fix the problem, and I can actually use Eclipse.

(In reply to Grant Gayed from comment #34)
> You need to:
> 1. Download a supported XULRunner, such as one from
> http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/10.0.4esr/runtimes/
> .
> 2. Set -Dorg.eclipse.swt.browser.XULRunnerPath=<pathToXULRunner>, details:
> http://www.eclipse.org/swt/faq.php#specifyxulrunner .
> 3. Set -Dorg.eclipse.swt.browser.DefaultType=mozilla , details:
> http://www.eclipse.org/swt/faq.php#browserspecifydefault .

For further information related to my setup:
> /usr/bin/xulrunner -version
Mozilla XULRunner 17.0.9 - 20130918225600
> lsb_release -i -r
Distributor ID: RedHatEnterpriseClient
Release:        5.4
> usr/bin/firefox -version
Mozilla Firefox 31.5.3

It's not immediately clear why or how this solves the problem, or why I need this workaround in the first place, but it looks like this bug has been open for several years now and it's still not fixed. Having Eclipse crash out of the gate on Linux is a terrible customer experience that should be fixed without the customer having to search for some esoteric workaround.
Comment 38 Michael Keuchen CLA 2016-01-26 10:56:00 EST
> I eventually tracked it down to one of several activities: 
> - displaying the "Javadoc" view
> - displaying one of the "Help" menus (as described in this bug)
> - Pressing Ctrl-Shift-J to try autogenerating Javadoc.

I had the same problem this week (Linux Mint 17.3 Rosa, eclipse.buildId=4.5.1.M20150904-0015, java.version=1.8.0_66)

The workaround in https://bugs.eclipse.org/bugs/show_bug.cgi?id=410739#c3 works for me (to switch the SWT browser to mozilla).
Comment 39 Michael Keuchen CLA 2016-05-20 11:07:20 EDT
Now, I can't reproduce the problem anymore.
Neither with Mars (Mars.2 Release 4.5.2 - 20160218-0600) nor Neon (Neon Milestone 7 4.6.0M7 - 20160505-1310).

I don't know why the bug has disappeared.
One of my changes in the meantime was an update of the Lombok javaagent to 16.8; that also fixed the issues mentioned in https://github.com/rzwitserloot/lombok/issues/872.
Could there be a connection between lombok and the Javadoc browser problems?
Comment 40 Alexander Kurtakov CLA 2016-12-21 18:14:12 EST

*** This bug has been marked as a duplicate of bug 410739 ***