Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143743 - net-p2p/azureus needs atk - hence swt emerged with accessibility flag
Summary: net-p2p/azureus needs atk - hence swt emerged with accessibility flag
Status: RESOLVED DUPLICATE of bug 140778
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low minor (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-13 01:29 UTC by Clemens Fruhwirth
Modified: 2006-08-27 03:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Fruhwirth 2006-08-13 01:29:47 UTC
I occassionally get an UnsatisifiedLinkError from azureus talking about no swt-atk-3232 in java.library.path. After that exception on the console azureus is dead - running and downloading but dead GUI wise. 

atk is the accessibility lib of gnome, so I figured maybe I had to emerge swt with the acccessibility flag. And yes, with this use flag, swt provides the missing /usr/lib64/libswt-atk-gtk-3232.so and the error goes away.

Maybe azureus should not use any atk features of swt, or maybe we should just make the azureus ebuild depend on an swt emerged with +accessibility.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-08-13 05:28:04 UTC
Hmm. This could be an amd64 specific problem because I have been running azureus-2.4.0.2 on x86 with swt built with USE="-accessibility" without problems. What version of azureus are you talking about here? Please provide such information and emerge --info next time when you post a bug. 
Comment 2 Clemens Fruhwirth 2006-08-13 07:06:32 UTC
azureus 2.4.0.2-r2 swt-3.2

I prefer to report bugs without emerge --info as it's noise mostly wrt to a bug.

Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-64 x86_64)
=================================================================
System uname: 2.6.17-64 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://gentoo.inf.elte.hu/"
LANG="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 =dev-java/java-config-wrapper-0.10-r3 X Xaw3d aac alsa arts avi berkdb bitmap-fonts bonobo cairo cdr cli crypt cups dlloader dri dvd eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jack java jpeg kde lzw lzw-tiff maildir mbox mono mp3 mpeg mysql ncurses nls nptl nsplugin nvidia ogg oggvorbis opengl pam pcre pdflib perl pic png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 video_cards_nvidia vorbis xinerama xmms xorg xpm xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_-acecad input_devices_-aiptek input_devices_-calcomp input_devices_-citron input_devices_-digitaledge input_devices_-dmc input_devices_-dynapro input_devices_-elo2300 input_devices_-elographics input_devices_-evdev input_devices_-fpit input_devices_-hyperpen input_devices_-jamstudio input_devices_-joystick input_devices_-magellan input_devices_-magictouch input_devices_-microtouch input_devices_-mutouch input_devices_-palmax input_devices_-penmount input_devices_-spaceorb input_devices_-summa input_devices_-synaptics input_devices_-tek4957 input_devices_-ur98 input_devices_-vmmouse input_devices_-void kernel_linux userland_GNU video_cards_-i128 video_cards_-mga video_cards_-radeon video_cards_-savage video_cards_-apm video_cards_-ark video_cards_-chips video_cards_-cirrus video_cards_-cyrix video_cards_-dummy video_cards_-fbdev video_cards_-fglrx video_cards_-glint video_cards_-i740 video_cards_-i810 video_cards_-imstt video_cards_-mach64 video_cards_-neomagic video_cards_-newport video_cards_-nsc video_cards_nv video_cards_-r128 video_cards_-rendition video_cards_-s3 video_cards_-s3virge video_cards_-siliconmotion video_cards_-sis video_cards_-sisusb video_cards_-sunbw2 video_cards_-suncg14 video_cards_-suncg3 video_cards_-suncg6 video_cards_-sunffb video_cards_-sunleo video_cards_-suntcx video_cards_-tdfx video_cards_-tga video_cards_-trident video_cards_-tseng video_cards_v4l video_cards_vesa video_cards_-vga video_cards_-via video_cards_-vmware video_cards_-voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2006-08-13 07:29:58 UTC
pena azureus # grep "accessibility" -r .
Binary file ./build/libs/swt.jar matches
pena azureus #

betelgeuse@pena ~ $ lsjar swt-3 | grep -i accessibility
org/eclipse/swt/accessibility/
org/eclipse/swt/accessibility/ACC.class
org/eclipse/swt/accessibility/Accessible$1.class
org/eclipse/swt/accessibility/Accessible.class
org/eclipse/swt/accessibility/AccessibleAdapter.class
org/eclipse/swt/accessibility/AccessibleControlAdapter.class
org/eclipse/swt/accessibility/AccessibleControlEvent.class
org/eclipse/swt/accessibility/AccessibleControlListener.class
org/eclipse/swt/accessibility/AccessibleEvent.class
org/eclipse/swt/accessibility/AccessibleFactory.class
org/eclipse/swt/accessibility/AccessibleListener.class
org/eclipse/swt/accessibility/AccessibleObject.class
org/eclipse/swt/accessibility/AccessibleTextAdapter.class
org/eclipse/swt/accessibility/AccessibleTextEvent.class
org/eclipse/swt/accessibility/AccessibleTextListener.class
org/eclipse/swt/internal/accessibility/
org/eclipse/swt/internal/accessibility/gtk/
org/eclipse/swt/internal/accessibility/gtk/ATK.class
org/eclipse/swt/internal/accessibility/gtk/AtkActionIface.class
org/eclipse/swt/internal/accessibility/gtk/AtkComponentIface.class
org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.class
org/eclipse/swt/internal/accessibility/gtk/AtkObjectClass.class
org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.class
org/eclipse/swt/internal/accessibility/gtk/AtkSelectionIface.class
org/eclipse/swt/internal/accessibility/gtk/AtkTextIface.class
org/eclipse/swt/internal/accessibility/gtk/GtkAccessible.class

It would seem that azureus is not using any accessibility classes, at least not directly. 

(In reply to comment #2)
> azureus 2.4.0.2-r2 swt-3.2
> 
> I prefer to report bugs without emerge --info as it's noise mostly wrt to a
> bug.
> 

Could sometimes be the case but with java it provides useful information if for example experimental overlays are used and about the architechture you are on.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-08-13 07:31:17 UTC
Please start azureus from the command line and post the stack traces here so I can see more closely where in the code this happens.
Comment 5 Clemens Fruhwirth 2006-08-24 00:12:48 UTC
sorry for the delay. holiday.

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-atk-gtk-3232 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.accessibility.gtk.ATK.<clinit>(Unknown Source)
        at org.eclipse.swt.widgets.Control.removeRelation(Unknown Source)
        at org.eclipse.swt.widgets.Control.setZOrder(Unknown Source)
        at org.eclipse.swt.widgets.Control.setZOrder(Unknown Source)
        at org.eclipse.swt.widgets.Control.moveAbove(Unknown Source)
        at org.gudy.azureus2.ui.swt.views.MyTorrentsView.createTabs(MyTorrentsView.java:330)
        at org.gudy.azureus2.ui.swt.views.MyTorrentsView.updateLastSearch(MyTorrentsView.java:2143)
        at org.gudy.azureus2.ui.swt.views.MyTorrentsView.keyPressed(MyTorrentsView.java:2083)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Unknown Source)
        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Unknown Source)
        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Unknown Source)
        at org.eclipse.swt.widgets.Table.gtk_key_press_event(Unknown Source)
        at org.eclipse.swt.widgets.Widget.windowProc(Unknown Source)
        at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Unknown Source)
        at org.eclipse.swt.widgets.Display.eventProc(Unknown Source)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:114)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:58)
        at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:108)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:147)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:162)

it seems to me as if swt decides on its own to use accessiblity features.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-08-25 13:43:31 UTC
(In reply to comment #5)
> sorry for the delay. holiday.
> 
> it seems to me as if swt decides on its own to use accessiblity features.
> 

If this is the case, then the right solution is to remove the accessibility use flag from swt and always compile it.

compnerd: what do you think?
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2006-08-27 03:07:29 UTC

*** This bug has been marked as a duplicate of 140778 ***