UnsatisfiedLinkError: no swt-pi-gtk-3555 or swt-pi-gtk

Bug #700602 reported by Weisi Dai
96
This bug affects 20 people
Affects Status Importance Assigned to Milestone
TuxGuitar
Invalid
Undecided
Unassigned
azureus (Ubuntu)
Invalid
Undecided
Unassigned
swt-gtk (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: azureus

after "aptitude safe-upgrade" in natty yesterday, vuze doesn't start, and becomes:

multiple1902@m-laptop:/usr/share/java$ vuze
file:/usr/lib/jni/ ; file:/usr/lib/java/ ; file:/usr/share/java/Azureus2.jar ; file:/usr/share/java/log4j-1.2-1.2.15.jar ; file:/usr/share/java/commons-cli-1.2.jar ; file:/usr/lib/java/swt-gtk-3.5.1.jar ; file:/usr/share/java/
java.lang.reflect.InvocationTargetException
        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 org.gudy.azureus2.ui.common.Main.directLaunch(Main.java:229)
        at org.gudy.azureus2.ui.common.Main.main(Main.java:132)
        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: no swt-pi-gtk-3555 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:254)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:159)
        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:131)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:79)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:59)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:111)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:88)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:255)
        ... 12 more
Start fails:
com.aelitis.azureus.core.AzureusCoreException: Azureus core already instantiated
        at com.aelitis.azureus.core.impl.AzureusCoreImpl.create(AzureusCoreImpl.java:120)
        at com.aelitis.azureus.core.AzureusCoreFactory.create(AzureusCoreFactory.java:46)
        at org.gudy.azureus2.ui.common.Main.main(Main.java:160)
        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)

====

I tried "/usr/share/java$ sudo ln -s swt-gtk-3.5.1.jar swt.jar" but it doesn't work, almost nothing changes.

Revision history for this message
Weisi Dai (multiple1902) wrote :

Solution:

Downgrade packages named with "libswt" to version '3.5.1+versionbump-5ubuntu1' temporarily solves this problem.

This bug and solution is only tested on natty.

Revision history for this message
Javier Moreno (elpasmo) wrote :

I can confirm it in natty 11.04 i386 2.6.37-11.25 with vuze 4.3.0.6-1.1 and libswt-gtk-3.5-java 3.5.1+versionbump-5ubuntu2

Changed in azureus (Ubuntu):
status: New → Confirmed
Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

The same problem also happens when opening other SWT based apps (like tuxguitar).

Changed in azureus (Ubuntu):
status: Confirmed → Invalid
status: Invalid → Confirmed
summary: - "Azureus core already instantiated" After Natty Upgrade
+ UnsatisfiedLinkError: no swt-pi-gtk-3555 or swt-pi-gtk
tags: added: natty
Hanmac (hanmac)
tags: added: swt-pi-gtk
Changed in tuxguitar:
status: New → Confirmed
Revision history for this message
Giovanni Mellini (merlos) wrote :

I have the same problem in Natty using davmail

Revision history for this message
_the_mars_ (themars) wrote :

I have the same problem with davmail too. Running 64-bit Natty.

I solved it by downloading the swt.jar from http://www.eclipse.org/swt/ (do not click on Linux, but click on more to get the right libs for your platform) and placing it in /usr/share/davmail/lib. I had to modify /usr/bin/davmail to exclude the /usr/share/java/swt.jar from the classpath.

It is working now for me. This proves the swt-3.6.1-gtk-linux-x86_64.zip package from Eclipse.org contains the right swt.jar to get (davmail and maybe vuze) working.

Revision history for this message
Pavel Mlčoch (pavkamlc) wrote :

I've tried build davmail from SVN sources, and this works at now.

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

I think this is solved on natty now. Could someone test?

Revision history for this message
Tamas Papp (tompos) wrote :

It's not OK for me.

$ davmail
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3555 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
 at org.eclipse.swt.internal.Library.loadLibrary(Library.java:254)
 at org.eclipse.swt.internal.Library.loadLibrary(Library.java:159)
 at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
 at davmail.ui.tray.SwtAwtEventQueue.registerErrorHandler(SwtAwtEventQueue.java:37)
 at davmail.ui.tray.SwtGatewayTray.init(SwtGatewayTray.java:182)
 at davmail.ui.tray.DavGatewayTray.init(DavGatewayTray.java:236)
 at davmail.DavGateway.main(DavGateway.java:67)

ii libswt-gtk-3.5-java 3.5.1+versionbump-5ubuntu2 Standard Widget Toolkit for GTK+ Java library
ii libswt-gtk-3.5-jni 3.5.1+versionbump-5ubuntu2 Standard Widget Toolkit for GTK+ JNI library
ii davmail 3.9.1-1654-1 DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway

Everything is updated to the latest version.

Revision history for this message
Koichi Akabe (vbkaisetsu) wrote :

It was solved.

Uninstall: "libswt-gtk-3.5-jni" and "libswt-gtk-3.5-java"
Install: "libswt-gtk-3.6-jni" and "libswt-gtk-3.6-java"
Then, tuxguitar will work

Revision history for this message
Tamas Papp (tompos) wrote :

This way is OK for me too.

Revision history for this message
Bertrand Croq (bcroq) wrote :

it now works since I installed tuxguitar 1.2-7ubuntu2

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

Problem solved with SWT 3.6.

Changed in tuxguitar:
status: Confirmed → Invalid
Changed in azureus (Ubuntu):
status: Confirmed → Invalid
Changed in swt-gtk (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.