Project: SWT
Bug 322912 [Browser] Browser fails when 32-bit XULRunner detected on 64-bit OS
Reported: 2010-08-17 11:30:47 | Status: resolved fixed

Build Identifier: I20100608-0911 i have Helios (I20100608-0911) installed on OpenSUSE 11.3 / x86_64, with, rpm -qa | egrep -i "xulrunner|MozillaFirefox-3" mozilla-xulrunner192-devel-1.9.2.8-3.1.x86_64 mozilla-xulrunner191-1.9.1.11-1.3.x86_64 mozilla-xulrunner191-devel-1.9.1.11-1.3.x86_64 mozilla-xulrunner191-32bit-1.9.1.11-1.3.x86_64 mozilla-xulrunner192-1.9.2.8-3.1.x86_64 MozillaFirefox-3.6.8-1.3.x86_64 and, ls -ald /usr/lib*/*xul* lrwxrwxrwx 1 root root 18 2010-08-16 22:35 /usr/lib64/xulrunner-1.9.1 -> xulrunner-1.9.1.11 drwxr-xr-x 12 root root 4096 2010-08-16 22:37 /usr/lib64/xulrunner-1.9.1.11/ lrwxrwxrwx 1 root root 17 2010-08-16 22:36 /usr/lib64/xulrunner-1.9.2 -> xulrunner-1.9.2.8 drwxr-xr-x 12 root root 4096 2010-08-16 22:37 /usr/lib64/xulrunner-1.9.2.8/ drwxr-xr-x 3 root root 4096 2010-08-16 22:37 /usr/lib64/xulrunner-devel-1.9.1.11/ drwxr-xr-x 3 root root 4096 2010-08-16 22:37 /usr/lib64/xulrunner-devel-1.9.2.8/ lrwxrwxrwx 1 root root 18 2010-08-16 22:35 /usr/lib/xulrunner-1.9.1 -> xulrunner-1.9.1.11 drwxr-xr-x 12 root root 4096 2010-08-16 22:35 /usr/lib/xulrunner-1.9.1.11/ i've installed Mylyn + Bugzilla connector, 3.4.1.v20100804-0100-e3x-7D77-BgJ9DH9bIS4CIC i can log in to bugzilla, and see/retrieve reports, as expected. if/when I attempt to make changes & then "Submit", I get an "XULRunner not found" error: /home/dev001/.eclipse/org.eclipse.platform_3.5.0_185596441/configuration/org.eclipse.osgi/bundles/151/1/.cp/libswt-mozilla-gtk-3650.so: libxpcom.so: cannot open shared object file: No such file or directory no swt-mozilla-gtk in java.library.path /tmp/swtlib-64/libswt-mozilla-gtk-3650.so: libxpcom.so: cannot open shared object file: No such file or directory Can't load library: /tmp/swtlib-64/libswt-mozilla-gtk.so ) at org.eclipse.swt.SWT.error(SWT.java:4109) at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1703) at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:637) at org.eclipse.swt.browser.Browser.<init>(Browser.java:119) at org.eclipse.mylyn.internal.tasks.ui.util.WebBrowserDialog.createCustomArea(WebBrowserDialog.java:55) at org.eclipse.jface.dialogs.MessageDialog.createDialogArea(MessageDialog.java:273) at org.eclipse.jface.dialogs.IconAndMessageDialog.createDialogAndButtonArea(IconAndMessageDialog.java:221) at org.eclipse.jface.dialogs.IconAndMessageDialog.createContents(IconAndMessageDialog.java:200) at org.eclipse.jface.window.Window.create(Window.java:431) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) at org.eclipse.jface.window.Window.open(Window.java:790) at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:334) at org.eclipse.mylyn.internal.tasks.ui.util.WebBrowserDialog.openAcceptAgreement(WebBrowserDialog.java:46) at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.displayStatus(TasksUiInternal.java:544) at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.displayStatus(TasksUiInternal.java:592) at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage$23.linkActivated(AbstractTaskEditorPage.java:1235) at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:233) at org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:327) at org.eclipse.ui.forms.widgets.AbstractHyperlink.access$2(AbstractHyperlink.java:311) at org.eclipse.ui.forms.widgets.AbstractHyperlink$4.handleEvent(AbstractHyperlink.java:125) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) at org.eclipse.equinox.launcher.Main.main(Main.java:1383) Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/dev001/.eclipse/org.eclipse.platform_3.5.0_185596441/configuration/org.eclipse.osgi/bundles/151/1/.cp/libswt-mozilla-gtk-3650.so: libxpcom.so: cannot open shared object file: No such file or directory no swt-mozilla-gtk in java.library.path /tmp/swtlib-64/libswt-mozilla-gtk-3650.so: libxpcom.so: cannot open shared object file: No such file or directory Can't load library: /tmp/swtlib-64/libswt-mozilla-gtk.so at org.eclipse.swt.internal.Library.loadLibrary(Library.java:267) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174) at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1688) ... 43 more Reproducible on a couple of different users', similarly configured, machines. Reproducible: Always

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/init/GREProperty.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/init/XPCOMInit.java bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java