Community
Participate
Working Groups
Build Identifier: M20110210-1200 I am using eclipse 3.6.2. Since upgrade of Firefox 4.0 with xulrunner 2.0, eclipse crash each time I want to see the documentation. For me this is a duplicate of 340402, but it's marked as CLOSED DUPLICAT/FIXED # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x5f2d05a5, pid=12943, tid=3076286144 # # JRE version: 6.0_24-b07 # Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode linux-x86 ) # Problematic frame: # C [libxul.so+0xc395a5] # # An error report file with more information is saved as: # /home/benjarobin/hs_err_pid12943.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # /usr/bin/eclipse : ligne 4 : 12943 Abandon ${ECLIPSE_HOME}/eclipse "$@" But if I run eclipse this way, it's fine: eclipse -vmargs -Xmx384m -Dorg.eclipse.swt.browser.XULRunnerPath=/home/benjarobin/xulrunner-1.9.2/ Reproducible: Always Steps to Reproduce: 1. Run eclipse Helios 3.6.2 with xulrunner 2.0 2. Press Ctrl+Space 3. eclipse crashes
Created attachment 191934 [details] Crash trace
Also I don't have any problem if I run eclipse with this command line: eclipse -vmargs -Xmx384m -Dorg.eclipse.swt.browser.UseWebKitGTK=true
I discover something that looks strange for me: If I run eclipse with: -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-2.0/ Or with any path, valid or not, for me /usr/lib/xulrunner-2.0/ or /usr/lib/xulrunner-devel-2.0/ should be good and crash eclipse. But this is not the case, Eclipse doesn't crash when I want to see the documentation, but the content of this documentation looks ugly: We doesn't have any link, no green dot for public function, etc. If I run this code : https://bugs.eclipse.org/bugs/show_bug.cgi?id=311936#c5 I have this output for all the possibility of eclipse stating arguments (That normal because the argument of eclipse are not passed to the new Java VM of the snippet): >>>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(SWT.java:4109) at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:652) at org.eclipse.swt.browser.Browser.<init>(Browser.java:119) at DisplayMozillaVersion.main(DisplayMozillaVersion.java:15) Snippet creating SWT.NONE-style Browser Mozilla path: /usr/lib/xulrunner-devel-2.0 # # A fatal error has been detected by the Java Runtime Environment: .... The same error message than usual ...
same error for me on gentoo with xulrunner-2.0-r1 (gentoo-repository) and eclipse-3.6.2 (eclipse.org tarball). if i start eclipse with -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-devel-2.0/ it works for me. -Dorg.eclipse.swt.browser.UseWebKitGTK=true didn't work for me, i got the same error (libxul.so if i use webkit ???) blaimi
(In reply to comment #4) > if i start eclipse with > -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-devel-2.0/ it works > for me. But how looks like the documentation ? For me it's ugly... > -Dorg.eclipse.swt.browser.UseWebKitGTK=true didn't work for me, i got > the same error (libxul.so if i use webkit ???) Do you have webkit installed, if Eclipse doesn't find webkit library, it fallback to xulrunner... I have to install libwebkit under ArchLinux to use it.
> But how looks like the documentation ? For me it's ugly... fine for me. I found nothing wich don't look like it should > Do you have webkit installed, if Eclipse doesn't find webkit library, it > fallback to xulrunner... > I have to install libwebkit under ArchLinux to use it. webkit-gtk is in 2 slots installed (1.3.13-r200:2 and 1.3.13:3 (both from gnome-overlay)) blaimi
> webkit-gtk is in 2 slots installed (1.3.13-r200:2 and 1.3.13:3 (both from > gnome-overlay)) I have only this version : 1.2.7, 1.3 is in testing. This may explain why it's not working on your computer.
The Browser does not support XULRunner versions >= 2.0, so pointing the Browser at a XULRunner 2.0 install is not valid, see http://www.eclipse.org/swt/faq.php#browserlinux . Pointing it at /usr/lib/xulrunner-devel-2.0/ likely failed early enough in the embedding attempt that the crash was avoided, and the javadoc hover fell back to displaying its content in a non-Browser control. This is why this case may seem to "work" (because it doesn't crash) but looks "ugly" (like not in a Browser). The best way to see if Browser support is actually working is to try Eclipse's Internal Web Browser view. WebKitGTK should work. Comment 4 indicated that it didn't work, but the "(libxul.so if i use webkit ???)" words give the impression that it didn't actually try to use WebKitGTK, because it definitely does not have any relation to libxul.so. WebKitGTK is the Browser's default renderer on Linux as of Eclipse 3.7, so trying a recent 3.7-stream build like http://download.eclipse.org/eclipse/downloads/drops/S-3.7M6-201103101119/index.php would show conclusively whether it's working for you or not. Closing report as invalid since pointing the Browser at a XULRunner install with version >= 2.0 is not supported. If you see any problems with embedding of WebKitGTK then please open a new report, thanks.