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

Bug 358011

Summary: Eclipse crashes when choose Web browser menu or Preferences
Product: [Eclipse Project] Platform Reporter: Elena <ellectronca>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed, remy.suen
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
vm log none

Description Elena CLA 2011-09-18 02:43:20 EDT
Build Identifier: 20110301-1815

I don't remember I ever used Web browser in Eclipse, but when I suddenly hover on Window -> Web browser (I just going click by Preferences) as Eclipse crashes. It also crashes over Web browser item in Preferences menu.

Reproducible: Always

Steps to Reproduce:
1. Trying to open Preferences dialog
2. When go on Window -> Web browser
3. Eclipse crashes
Comment 1 Remy Suen CLA 2011-09-18 06:53:25 EDT
Please attach a VM crash log and your workspace's log file to this bug.
Comment 2 Elena CLA 2011-09-18 11:16:39 EDT
Created attachment 203554 [details]
vm log

VM crash log in attachment. 

I don't have error notice about this bug in Eclipse log. That's only this:

!SESSION 2011-09-18 18:52:34.909 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=ru_RU
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.php.product

!ENTRY org.eclipse.core.resources 2 10035 2011-09-18 18:52:42.803
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
Comment 3 Elena CLA 2011-09-18 11:37:48 EDT
This might be similar to my another issue: Bug 358014
Comment 4 Grant Gayed CLA 2011-09-19 16:06:45 EDT
It's trying to use your xulrunner in /usr/lib/xulrunner-2.0, which is not supported.  Unless you're doing something to explicitly point at this location, this should be fixed if you upgrade to the Eclipse 3.7 or 4.2 release.

Closing report as WORKSFORME, please reopen if you still see this problem with Eclipse 3.7 or 4.2.
Comment 5 Grant Gayed CLA 2011-09-19 16:09:33 EDT
*** Bug 358014 has been marked as a duplicate of this bug. ***
Comment 6 Elena CLA 2011-09-21 08:33:42 EDT
(In reply to comment #4)

I can't update it to 3.7 or more since there is no Eclipse for PHP Developers (PDT) package for 3.7. And latest PDT is v2.2.1 uses eclipse 3.6 :(
Comment 7 Remy Suen CLA 2011-09-21 08:36:37 EDT
(In reply to comment #6)
> I can't update it to 3.7 or more since there is no Eclipse for PHP Developers
> (PDT) package for 3.7. And latest PDT is v2.2.1 uses eclipse 3.6 :(

There's a PDT 3 for Indigo.
Comment 8 Elena CLA 2011-09-21 09:11:52 EDT
(In reply to comment #7)
> 
> There's a PDT 3 for Indigo.

I mean there is no new PDT by itself:

http://www.eclipse.org/pdt/downloads/ (the latest download include PDT 2.2.0, Eclipse 3.6, ...)

http://www.eclipse.org/downloads/php_package.php

So to "upgrade" I need remove PDT 2 and install SDK 3.7 and then PDT 3?
Comment 9 Remy Suen CLA 2011-09-21 09:16:44 EDT
(In reply to comment #8)
> So to "upgrade" I need remove PDT 2 and install SDK 3.7 and then PDT 3?

I presume you install Eclipse 3.7 and then install PDT 3 from the Indigo site. Please ask on PDT's forums for installation instructions if you get lost.
http://www.eclipse.org/forums
Comment 10 Grant Gayed CLA 2011-09-21 09:38:44 EDT
If you're really stuck on using Eclipse 3.6.2 then there are a couple of other things you can try with your 3.6.2 install.

1. Add to the end of your eclipse.ini file (substituting an appropriate value for the <...> part):
   -Dorg.eclipse.swt.browser.XULRunnerPath=<fullPathToXULRunnerOlderThan2.0>

2. Alternatively, if your Linux has WebKit 1.2.x installed then add to the end of your eclipse.ini file:
   -Dorg.eclipse.swt.browser.UseWebKitGTK=true
Comment 11 Elena CLA 2011-09-21 10:16:01 EDT
(In reply to comment #10)
> If you're really stuck on using Eclipse 3.6.2 then there are a couple of other
> things you can try with your 3.6.2 install.
> 
> 1. Add to the end of your eclipse.ini file (substituting an appropriate value
> for the <...> part):
>    -Dorg.eclipse.swt.browser.XULRunnerPath=<fullPathToXULRunnerOlderThan2.0>
> 
> 2. Alternatively, if your Linux has WebKit 1.2.x installed then add to the end
> of your eclipse.ini file:
>    -Dorg.eclipse.swt.browser.UseWebKitGTK=true

THANKS!!! I've added both lines and now Eclipse doesn't closes on Web browsers and Marketplace is working
Comment 12 Elena CLA 2011-09-21 10:17:53 EDT
*** Bug 358013 has been marked as a duplicate of this bug. ***