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

Bug 323913

Summary: eclipse 3.6 and 4.0 crash when showing popup
Product: [Eclipse Project] Platform Reporter: Michael Gaber <Michael.Gaber>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: eclipse.felipe, grant_gayed, remy.suen, sven.koehler
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
error report file from vm none

Description Michael Gaber CLA 2010-08-29 15:14:09 EDT
Build Identifier: 

when I start eclipse 3.6 or 4.0ea as downloaded from the website it crashes with a segfault the moment it tries to open a popup for displaying e.g. javadoc.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x83a15a74, pid=31123, tid=3065793392
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK Server VM (16.0-b13 mixed mode linux-x86 )
# Derivative: IcedTea6 1.8.1
# Distribution: Built on Gentoo Base System release 1.12.13 (Fri Jul 30 14:07:36 CEST 2010)
# Problematic frame:
# C  [libxul.so+0xfb0a74]
#
# An error report file with more information is saved as:
# /home/tigerchen/hs_err_pid31123.log


Reproducible: Always

Steps to Reproduce:
1. start eclipse
2. open a java file
3. move mouse over any method to show javadoc
4. CRASH
Comment 1 Michael Gaber CLA 2010-08-29 15:15:02 EDT
Created attachment 177692 [details]
error report file from vm
Comment 2 Remy Suen CLA 2010-08-29 16:05:57 EDT
What versions of GTK+, XULRunner, and Firefox do you have installed on your system?
Comment 3 Michael Gaber CLA 2010-08-29 17:35:02 EDT
xulrunner: 2.0_beta5_pre-r1
firefox: 4.0_beta5_pre-r1
gtk+: 1.2.10-r12

on a gentoo testing (~x86) box
Comment 4 Remy Suen CLA 2010-08-29 17:39:23 EDT
(In reply to comment #3)
> xulrunner: 2.0_beta5_pre-r1
> firefox: 4.0_beta5_pre-r1

I'm guessing this is probably the problem.

> gtk+: 1.2.10-r12

x11-libs/gtk+ is slotted. You should have a 2.x installation.

# equery list x11-libs/gtk+
Comment 5 Michael Gaber CLA 2010-08-29 19:20:49 EDT
sure, gtk+ is also in version 2.20.1-r1 installed sry missed that one in the compact output of eix.

but well, i think since 4.0 is the next release of firefox and will be released fairly soon, something should be done about this bug.
Comment 6 Remy Suen CLA 2010-08-29 19:25:08 EDT
(In reply to comment #5)
> but well, i think since 4.0 is the next release of firefox and will be released
> fairly soon, something should be done about this bug.

Firefox 4.0 is not out yet so it is possible the problem will have resolved itself when it goes GA.

On the other hand, it's not even clear if the 4.0 beta is to blame as we have no evidence at the moment to indicate that Firefox 3.6 works for you.
Comment 7 Michael Gaber CLA 2010-08-29 19:33:03 EDT
I'm actually trying to install an older firefox to test it.

i might note that i can without problems run a eclipse 3.5.1-r1 which is built (emerged) on this system with the ff 4 installed
Comment 8 Remy Suen CLA 2010-08-29 19:39:22 EDT
(In reply to comment #7)
> i might note that i can without problems run a eclipse 3.5.1-r1 which is built
> (emerged) on this system with the ff 4 installed

It may be worth getting the 3.5.x series from eclipse.org and see if that runs properly then.
http://download.eclipse.org/eclipse/downloads/
Comment 9 Michael Gaber CLA 2010-08-29 19:55:08 EDT
3.5.2 crahes exactly the same way, I'll try with 3.5.1 next and afterwards finish the ff change
Comment 10 Michael Gaber CLA 2010-08-29 20:02:55 EDT
ssdd with 3.5.1
Comment 11 Michael Gaber CLA 2010-08-29 21:21:50 EDT
all versions work with firefox-3.6.8-r1 including the emerged one
Comment 12 Felipe Heidrich CLA 2010-08-30 10:50:34 EDT
We do not support:
xulrunner: 2.0_beta5_pre-r1
firefox: 4.0_beta5_pre-r1

Grant, do you plan to move to a new xulrunner ?
Comment 13 Grant Gayed CLA 2010-08-30 11:47:54 EDT
Support is never claimed for beta releases of mozilla renderers, and it's not currently planned to implement support for xulrunner 2.0/firefox 4.0 because linux distros that are new enough to include these should also provide WebKitGTK+ as an alternative.

The thing I'm wondering about is how did it end up trying to use /usr/lib/xulrunner-2.0/... in the first place, because the xulrunner detection code is given a ceiling of "1.9.*" for acceptable versions.  You're not doing anything to explicitly point at /usr/lib/xulrunner-2.0/, right?  And does you linux distro really not ship with either a xulrunner version < 2.0 or a WebKitGTK version >= 1.2.0?
Comment 14 Michael Gaber CLA 2010-08-30 13:50:53 EDT
i dont actually know. I'm using gentoo and have installed the java-overlay via layman.
so I basically just emerged firefox-4-beta-whatever and noticed that the binary build of eclipse started to crash on me that day.

xulrunner in gentoo is actually slotted only 1.9 and the 2.0 beta versions are also in the 1.9 slot, so i cant have 2 diffeent versions of them installed at the same time 

i have webkit-gtk installed in version 1.2.3.

if i can do anything to help further i will gladly do so
Comment 15 Grant Gayed CLA 2010-08-30 15:32:14 EDT
Ok, at least there's a usable WebKitGTK+ there.  A workaround that should get eclipse running for you is to add the following line to the bottom of your eclipse.ini file:

-Dorg.eclipse.swt.browser.UseWebKitGTK=true

Setting this property is only needed with eclipse/swt 3.6.x; as of 3.7 WebKitGTK+ is used by default any time it's found on the user's machine, so it should work for you out of the box.

Back to xulrunner...

> xulrunner in gentoo is actually slotted only 1.9 and the 2.0 beta versions
> are also in the 1.9 slot, so i cant have 2 different versions of them
> installed at the same time

Can you try the following:
- add the -D switch above to your eclipse.ini
- run eclipse, it should come up fine
- run the snippet in https://bugs.eclipse.org/bugs/show_bug.cgi?id=319123#c23
  -> what does it print?
Comment 16 Michael Gaber CLA 2010-08-30 18:43:51 EDT
it prints this. swt-3.6 built on this machine was used, hope that is ok.

MOZILLA_FIVE_HOME: /usr/lib/xulrunner-devel-2.0
LD_LIBRARY_PATH: /opt/icedtea6-bin-1.8.1/jre/lib/i386/server:/opt/icedtea6-bin-1.8.1/jre/lib/i386:/opt/icedtea6-bin-1.8.1/jre/../lib/i386:/usr/lib/xulrunner-devel-2.0
>>>Snippet creating SWT.MOZILLA-style Browser
>>>This failed with the following error:
org.eclipse.swt.SWTError: No more handles [Could not detect registered XULRunner to use]
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
	at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
	at Test.main(Test.java:41)


Snippet creating SWT.NONE-style Browser
Mozilla path: /usr/lib/xulrunner-devel-2.0
>>>This failed too, with the following error:
org.eclipse.swt.SWTError: XPCOM error -1041039104
	at org.eclipse.swt.browser.Mozilla.error(Unknown Source)
	at org.eclipse.swt.browser.Mozilla.initFactories(Unknown Source)
	at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
	at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
	at Test.main(Test.java:48)
Comment 17 Grant Gayed CLA 2010-09-16 10:26:00 EDT
Marking as a duplicate of bug 319123.  Although the symptoms in these reports are different, the cause is the same.  This should be fixed for 3.6.2 and later.

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