Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333444 - Eclipse crashes when preference/general/web browser tab accessed
Summary: Eclipse crashes when preference/general/web browser tab accessed
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 20:44 EST by fuzzballz CLA
Modified: 2018-04-10 15:23 EDT (History)
10 users (show)

See Also:


Attachments
Helios config file (171.04 KB, application/octet-stream)
2011-01-04 09:43 EST, fuzzballz CLA
no flags Details
error log file after loading plugins (242.24 KB, text/x-log)
2011-01-16 01:43 EST, fuzzballz CLA
no flags Details
Helios config file (233.62 KB, application/octet-stream)
2011-01-16 01:44 EST, fuzzballz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fuzzballz CLA 2011-01-03 20:44:34 EST
Build Identifier: M20100909-0800

Eclipse crashes  almost immediately when attempting to access the web browser entry under the preferences/general.  It gives no error messages, does not generate an error log.  

Reproducible: Always

Steps to Reproduce:
1.click on window
2.click on preferences
3.Click on general
4.Click on web browser
it crashes
Comment 1 Dani Megert CLA 2011-01-04 03:09:39 EST
(In reply to comment #0)
> Build Identifier: M20100909-0800
> 
> Eclipse crashes  almost immediately when attempting to access the web browser
> entry under the preferences/general.  It gives no error messages, does not
> generate an error log.  
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.click on window
> 2.click on preferences
> 3.Click on general
> 4.Click on web browser
> it crashes

Please provide exact version of your Linux and your desktop manager. Which browser are you using?
Comment 2 fuzzballz CLA 2011-01-04 09:43:53 EST
Created attachment 186005 [details]
Helios config file
Comment 3 fuzzballz CLA 2011-01-04 09:46:59 EST
Mandriva Linux 2.6.33.7-desktop-2mnb #1 SMP Mon Sep 20 18:19:20 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux running on a quad-core intel system.  Desktop KDE
Comment 4 fuzzballz CLA 2011-01-04 09:51:06 EST
I use Firefox 3.6.13, but had not set any external browser up for the system.  Presumably, it would be still set to use the internal browser.  BTW my Galileo version of Essentris shows normal behaviour.
Comment 5 Oleg Besedin CLA 2011-01-04 10:59:27 EST
Could you attach a stack trace from the log file?
Comment 6 fuzzballz CLA 2011-01-04 23:23:01 EST
Where do I find it/how do I generate it.  There is no errorlog generated under workspace/.metadata.
Comment 7 Dani Megert CLA 2011-01-05 03:25:55 EST
>There is no errorlog generated under workspace/.metadata.
The file is '.log'.

Also look for a javacore file (either in your home, the eclipse install or the JRE directory).
Comment 8 Max Areshkau CLA 2011-01-05 10:48:10 EST
For US eclipse 3.6.1 has begun fail to on RHEL4 x86_64 platform.
Eclipse 3.6.0 work normally. Additinal information can be founded here https://issues.jboss.org/browse/JBIDE-8040  https://issues.jboss.org/browse/JBIDE-8037
Comment 9 Chris Goldthorpe CLA 2011-01-05 17:53:07 EST
Copying Grant Gayed to see if he knows of any SWT changes between 3.6 and 3.6.1 that affect the browser on Linux.

I just took a look at the second of the two logs Max submitted and saw these lines.

org.eclipse.swt.SWTError: XPCOM error -2147467262
at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:2414)
at org.eclipse.swt.browser.Mozilla.unhookDOMListeners(Mozilla.java:2844) 

It's certainly possible that the problems reported by Max Areshkau have the same underlying cause as the original description although without a stack trace it's not possible to tell.

Max, are you also using M20100909-0800 ( 3.6.1 )? I don't see any bugs fixed in the User Assistance component that are related to this area.
Comment 10 fuzzballz CLA 2011-01-05 23:57:22 EST
still no luck finding a java crash, but I did manage to restore the error log, by creating a new workspace.  Here are the contents after a crash.

!SESSION 2011-01-05 20:53:01.369 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.mylyn.tasks.ui 2 0 2011-01-05 20:53:20.699
!MESSAGE No search provider was registed. Tasks search is not available.
Comment 11 fuzzballz CLA 2011-01-06 00:25:44 EST
The above error log entry may be a red herring, when I tried to duplicate it.  Essentris crashed, but no new log entry.

Where to I look for a stack trace, crash dump.  There doesn't seem to be anything useful in the workspace/.metadata/.log.
Comment 12 Max Areshkau CLA 2011-01-06 06:05:00 EST
Yes, we are using eclipse 3.6.1 too.
Comment 13 Grant Gayed CLA 2011-01-07 15:02:33 EST
Although the symptoms are different, I wonder if this is another case of bug 319123.  Can you see if a recent 3.6.2 build like http://download.eclipse.org/eclipse/downloads/drops/M20110105-0951/download.php?dropFile=eclipse-SDK-M20110105-0951-linux-gtk-x86_64.tar.gz
works better for you?  And if not, can you see what is output by running the swt snippet at http://www.eclipse.org/swt/faq.php#printmozillapath ?
Comment 14 Nick Boldt CLA 2011-01-12 17:27:24 EST
(In reply to comment #12)
> Yes, we are using eclipse 3.6.1 too.

The following JBoss Tools issues related to XPCOM errors and eclipse crashes are:

https://issues.jboss.org/browse/JBIDE-8037 RHEL5 x86_64
https://issues.jboss.org/browse/JBIDE-8040 RHEL4 x86_64

Both are no longer crashing after moving to use Eclipse 3.6.2 M20110105-0951.
Comment 16 fuzzballz CLA 2011-01-16 00:49:37 EST
It still gives the same behaviour with the 3.6.2.  I ran the Helios 3.6.1 on a 32 bit Mandriva lap top.  It works fine.  I have been looking for log/crash files.  There is noting in Workbench/.metadata/.log.  What would the name be if JRE crashed and where would I find it?
Comment 17 fuzzballz CLA 2011-01-16 01:33:08 EST
I don't know if this is relevant, but when I try to view the error log from about..>installation details>view error log. It also crashes tracelessly even if there is an error log present.
Comment 18 fuzzballz CLA 2011-01-16 01:43:18 EST
Created attachment 186880 [details]
error log file after loading  plugins
Comment 19 fuzzballz CLA 2011-01-16 01:44:30 EST
Created attachment 186881 [details]
Helios config file
Comment 20 fuzzballz CLA 2011-01-16 01:47:30 EST
The entries in the error log file does not correspond to the crashes.  These occured while loading the CDT, linux tools, XML and PhP development kits.
Comment 21 Grant Gayed CLA 2011-01-20 15:22:27 EST
It's easy to lose site of the original problem as the comments roll in.  To summarize:
- comment 1 and comment 17 indicate a problem accessing an external browser, so this would not be related to comments 13-15, and would not involve the Browser control
- the problem was introduced between 3.5.x and 3.6.1 (comment 4), not between 3.6.0 and 3.6.1, since comment 8 is a different problem.

Perhaps something bad is happening in swt's Program component.  Can you try running the snippet below (just set its FULL_PATH_OF_AN_HTML_FILE)?  Also, can you see if your hang happens with another session manager like Gnome?

import org.eclipse.swt.program.Program;
import org.eclipse.swt.widgets.Display;
public class Main {
public static void main(String[] args) {
	final String FULL_PATH_OF_AN_HTML_FILE = "..."; // fill this in 
	Display display = new Display();
	Program program = Program.findProgram(".html");
	System.out.println("found program: " + program.getName());
	System.out.println("execute result: " + program.execute(FULL_PATH_OF_AN_HTML_FILE));
	System.out.println("launch result: " + Program.launch(FULL_PATH_OF_AN_HTML_FILE));
	display.dispose();
}
Comment 22 fuzzballz CLA 2011-01-22 02:34:41 EST
It works fine under Gnome, I did not try other desktop managers.  Attempting to run the snippet in scrapbook gives the following:
Syntax error on token "import", assert expected.  Possibly I am doing something wrong here I program C and C++ and am not very good at java.
Comment 23 Grant Gayed CLA 2011-01-24 09:29:12 EST
If it works better under Gnome then this sounds like a problem in swt's Program support, so moving report there.
Comment 24 fuzzballz CLA 2011-01-29 21:16:20 EST
I have been unable to get any SWT snippets to run in the scrapbook.  They fail with the same message.  It would appear to me there is an issue with the SWT under 64 bit KDE desktop.  I don't know if this is the same problem.  Curiously,  Subclipse also fails tracelessly and when I tried to run a snippet there to debug it gave me the same error message: 'Syntax error on token "import", assert expected'.
Comment 25 fuzzballz CLA 2011-03-01 22:59:39 EST
After some experimentation, I was able to figure out how to run the snippit.  It runs, but produces no output.  Snippet 128 from the SWT  web site runs normally and opens the web page.

I have noticed several other conditions which cause Eclipse to crash tracelessly, eg trying to open the error log, trying to open a auto-tool project and trying to expand the a Subclipse repository tree.  In all the cases Eclipse crashes tracelessly.  This only occurs with the 64bit version, running on KDE 4.3.  When I run Gnome it works ok.
Comment 26 semeion7 CLA 2011-04-16 12:59:19 EDT
I am with exactly same problem here.

I try click in Web Browser preferences and Eclipse close/quit.


Arch Linux

Eclipse SDK
Version: 3.6.2
Build id: M20110210-1200
Comment 27 semeion7 CLA 2011-04-16 13:00:43 EDT
I am using KDE 4.
Comment 28 semeion7 CLA 2011-04-16 18:30:17 EDT
I found the problem.

The problem happens using Firefox 4 and Eclipse.

Eclipse isn't compatible with xulrunner 2.0 (used by Firefox 4).

To solve the problem:

Edit /usr/share/eclipse/eclipse.ini and put 1 or 2 lines:

-Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2.0/
-Dorg.eclipse.swt.browser.UseWebKitGTK=true

:)


Bug references:
https://bugs.archlinux.org/task/23392
http://changelogs.ubuntu.com/changelogs/pool/universe/e/eclipse/eclipse_3.5.2-8ubuntu3/changelog


cya!
Comment 29 Grant Gayed CLA 2011-04-18 11:49:53 EDT
(In reply to comment #28)
> -Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2.0/
> -Dorg.eclipse.swt.browser.UseWebKitGTK=true

The second line is the one that's helping, don't add the first one.
Comment 30 Chris Goldthorpe CLA 2011-04-18 12:27:46 EDT
Is this something that can be fixed for Eclipse 3.7? If it affects any users of Firefox 4.0 on Linux then a lot of people will run into it.
Comment 31 Grant Gayed CLA 2011-04-18 14:29:01 EDT
Comments 24-29 are actually a different problem, they are concerned with the Browser control, while this report is about specifying an external browser (SWT's Program class).  Use of FF4 should not affect the latter.
Comment 32 fuzzballz CLA 2011-04-29 20:30:30 EDT
Adding the :
> -Dorg.eclipse.swt.browser.UseWebKitGTK=true
or both does not fix the original problem.  

I think all of these issue must be related.  I have heard that there are known problem with 64 bit swt, but I don't know the details.
Comment 33 Grant Gayed CLA 2011-05-02 10:47:20 EDT
Assigning, BG see comment 21 as a starting point.
Comment 34 tb003 CLA 2011-07-15 07:27:16 EDT
(In reply to comment #29)
> (In reply to comment #28)
> > -Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2.0/
> > -Dorg.eclipse.swt.browser.UseWebKitGTK=true
> 
> The second line is the one that's helping, don't add the first one.

This worked. In fixing the GWT Designer css issue in eclipse
Comment 35 Leo Ufimtsev CLA 2018-04-10 15:23:51 EDT
Webkit1 crashes have been resolved via Gtk3 & Webkit2.