Bug 674838 - embedded browser fails with org.eclipse.swt.SWTError: XPCOM error -2147467261
Summary: embedded browser fails with org.eclipse.swt.SWTError: XPCOM error -2147467261
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sami Wagiaalla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-03 13:57 UTC by David Juran
Modified: 2016-06-07 22:46 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 11:20:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
JVM crash log (67.36 KB, text/plain)
2011-02-03 16:54 UTC, David Juran
no flags Details
log form latest crash (67.32 KB, text/plain)
2011-02-23 10:21 UTC, David Juran
no flags Details
JVM crash log (58.93 KB, text/plain)
2011-04-12 12:35 UTC, David Juran
no flags Details

Description David Juran 2011-02-03 13:57:49 UTC
Description of problem:
When starting azureus on rawhide, the embedded browser fails with the rather cryptic error message "org.eclipse.swt.SWTError: XPCOM error -2147467261"

Now I don't even know where to start looking for what this error code means but running the very same version of azurueus works fine on F14 so I'm hoping that eclipse could be the correct component to assign this to...


Version-Release number of selected component (if applicable):
eclipse-swt-3.6.1-4.fc15.x86_64

How reproducible:
Every time


Steps to Reproduce:
1. start azureus form the command line
2. Watch how the embedded browser GUI doesn't come up and the above error is spewed out.

Additional info:

Comment 1 Andrew Overholt 2011-02-03 14:01:42 UTC
Has xulrunner changed recently?  If so, Eclipse may need to be rebuilt.

Comment 2 Severin Gehwolf 2011-02-03 14:09:06 UTC
Looks like it did change recently:
http://koji.fedoraproject.org/koji/buildinfo?buildID=215797

Comment 3 Alexander Kurtakov 2011-02-03 14:20:24 UTC
I have never been able to make swt work with latest xulrunner (2.x) though it compiles against it.

Comment 4 Andrew Overholt 2011-02-03 14:25:23 UTC
Alex pointed this link out to me:

http://web.archiveorange.com/archive/v/WKyaraG5QTD6IfxEo5OS

Comment 5 Alexander Kurtakov 2011-02-03 14:41:09 UTC
David, I'll recommend you to add -Dorg.eclipse.swt.browser.UseWebKitGTK=true parameter to your azureus startup script. This will make it use webkit explicitly and azureus should be safe though the general problem for swt will still be here.

Comment 6 David Juran 2011-02-03 16:52:27 UTC
Setting -Dorg.eclipse.swt.browser.UseWebKitGTK=true causes the JVM (java-1.6.0-openjdk-1.6.0.0-51.1.9.5.fc15.x86_64) to crash in a way similar to what is described in http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=532

Attaching the hs_err log.

To reproduce the crash, set the -Dorg.eclipse.swt.browser.UseWebKitGTK=true parameter in the azureus start script (/usr/bin/azureus) and then when azureus starts up, click on "Vuze HD network" in the side bar.

Comment 7 David Juran 2011-02-03 16:54:55 UTC
Created attachment 476822 [details]
JVM crash log

Comment 8 Alexander Kurtakov 2011-02-18 11:28:17 UTC
Can you try using webkitgtk after all the rebuilds? It might be just a rebuild was needed.

Comment 9 David Juran 2011-02-18 14:48:17 UTC
Tried it with a freshly updated rawhide using webkitgtk-1.3.11-2.fc15.x86_64 and it still crashes.

Comment 10 David Juran 2011-02-19 11:20:51 UTC
I tried giving this a quick look but it seems eclipse doesn't provide any debuginfo (bug 153247)

/me gives up and hopes someone with more debugging experience will have the time/inclination...

Comment 12 David Juran 2011-02-23 10:21:57 UTC
Created attachment 480404 [details]
log form latest crash

Comment 13 Alexander Kurtakov 2011-04-06 07:59:02 UTC
(In reply to comment #12)
> Created attachment 480404 [details]
> log form latest crash

Can you try http://koji.fedoraproject.org/koji/taskinfo?taskID=2977859 on F-15 with webkit?

Comment 14 David Juran 2011-04-06 17:58:35 UTC
libswt-gnome-gtk.so seem to be missing...

This is what I get as soon as I try to start azureus:

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
	at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:114)
	at org.gudy.azureus2.ui.swt.Main.main(Main.java:292)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37)
	at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	no swt-gnome-gtk-3659 in java.library.path
	no swt-gnome-gtk in java.library.path
	Can't load library: /tmp/swtlib-64/libswt-gnome-gtk-3659.so
	Can't load library: /tmp/swtlib-64/libswt-gnome-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.internal.gnome.GNOME.<clinit>(GNOME.java:21)
	at org.eclipse.swt.program.Program.gnome_24_launch(Program.java:397)
	at org.eclipse.swt.program.Program.launch(Program.java:1086)
	at org.eclipse.swt.program.Program.launch(Program.java:1042)
	at org.gudy.azureus2.ui.swt.Utils.launch(Utils.java:948)
	at com.aelitis.azureus.ui.swt.Initializer.checkInstallID(Initializer.java:304)
	at com.aelitis.azureus.ui.swt.Initializer.runInSWTThread(Initializer.java:273)
	at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:220)
	at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:63)
	at com.aelitis.azureus.ui.swt.Initializer.<init>(Initializer.java:163)
	... 12 more

Comment 15 Alexander Kurtakov 2011-04-08 21:03:41 UTC
Problem should  be fixed in http://koji.fedoraproject.org/koji/buildinfo?buildID=238280 . Webkit is the only one supposed to work

Comment 16 David Juran 2011-04-12 12:34:31 UTC
Still crashes (although in a different place) as soon as one starts azureus. JVM crash log attached

Comment 17 David Juran 2011-04-12 12:35:29 UTC
Created attachment 491473 [details]
JVM crash log

Comment 18 Sami Wagiaalla 2011-04-13 16:16:09 UTC
Hi David,

I am trying to reproduce the crash but things seem to be working for me.

I use f15 64, yum updated everything, yum installed azureus, and edited /usr/bin/azureus to add -Dorg.eclipse.swt.browser.UseWebKitGTK=true and things seem to be working for me. I can open "Vuze HD network" and click on a few links.

What are we doing differently. Can you think of anything to help me reproduce this ?

Comment 19 Sami Wagiaalla 2011-07-11 14:23:14 UTC
David,
Are you still experiencing this ?

Comment 20 David Juran 2011-07-12 11:20:02 UTC
Sorry, forgot to close this issue.

If I'm not mistaken, the crash in #17 only happens when there are _no_ fonts at all installed on the system. If it's worth reporting (a system running a GUI typically should have some fonts installed), I'll open a new BZ about this.

For the issue I had with azureus, after the latest updates to eclipse and exchanging xulrunner for webkit, everything now works fine.


Note You need to log in before you can comment on or make changes to this bug.