Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350161 - dev-java/icedtea: warnings about mixing of gtk+ 2 and 3
Summary: dev-java/icedtea: warnings about mixing of gtk+ 2 and 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High major with 5 votes (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
: 356161 366319 382747 (view as bug list)
Depends on: 360663
Blocks: icedtea-tracker
  Show dependency tree
 
Reported: 2010-12-30 16:38 UTC by Hanno Böck
Modified: 2016-08-05 20:01 UTC (History)
14 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 Hanno Böck gentoo-dev 2010-12-30 16:38:36 UTC
I noticed that arduino doesn't run and produces the following warning:
$ arduino 

Gtk-ERROR **: GTK+ 3 symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
aborting...
./arduino: Zeile 21: 31159 Abgebrochen             java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base

But the problem is not limited to arduino and also happens with other gui apps running with gtklookandfeel:
$ java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar /usr/share/josm/lib/josm.jar 

Gtk-ERROR **: GTK+ 3 symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
aborting...
Abgebrochen
Comment 1 Hanno Böck gentoo-dev 2010-12-30 16:38:59 UTC
emerge --info:

Portage 2.1.9.26 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.1-r3, 2.6.36.2 x86_64)
=================================================================
System uname: Linux-2.6.36.2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 30 Dec 2010 01:30:02 +0000
ccache version 3.1.3 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1, 3.1.3
dev-util/ccache:     3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE tanuki-community"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
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/config /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--sort-common,--hash-style=gnu"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/arduino"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acct acl acpi alsa amd64 bash-completion bluetooth bzip2 cairo cgi chipcard cli consolekit cracklib crypt cups cxx dbus device-mapper dirac djbfft djvu dri dts dvb dvd dvdnav enca exif ffmpeg flac fontconfig gd-external gdu geoip gnome gpm gstreamer hbci hdaps iconv idn inotify ipv6 jpeg kde lame lcms libcaca libnotify matroska mikmod mjpeg mmx mmxext mng modules mp3 mpeg mudflap multilib musicbrainz mysql ncurses networkmanager nls nptl nptlonly ogg opencore-amr openct opengl openmcl openmp openssl pam pch pcre pcsc-lite pdf png policykit pppd python qt3support qt4 readline rtmp schroedinger secure-delete semantic-desktop session sql sse sse2 ssl ssse3 suexec suhosin svg sysfs theora tiff tokenizer tordns trayicon truetype udev unicode usb vaapi vorbis vpx webkit x264 xattr xcb xetex xorg xtended xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2011-02-23 04:44:24 UTC
*** Bug 356161 has been marked as a duplicate of this bug. ***
Comment 3 Micah Shennum 2011-03-10 01:43:03 UTC
I have the same problem with netbeans-6.9.1.
I'm using dev-java/icedtea6-bin-1.9.7
Comment 4 Andrew John Hughes 2011-03-28 19:23:13 UTC
OpenJDK uses Gtk+ dynamically for GTKLookAndFeel, loading symbols as it needs them, rather than linking against it at build-time.  I assuming it's somehow picking up those from Gtk+3.  Seems odd because it explicitly opens:

#define GTK2_LIB "libgtk-x11-2.0.so.0"
#define GTHREAD_LIB "libgthread-2.0.so.0"

I'll have to look at this once gtk+3 is in the main tree.
Comment 5 Sebastian Pipping gentoo-dev 2011-03-28 20:30:08 UTC
(In reply to comment #4)
> I'll have to look at this once gtk+3 is in the main tree.

I hereby turn that into a dependency on bug #360663.
Comment 6 Hanno Böck gentoo-dev 2011-04-21 20:05:11 UTC
Just to make that clear: This happens no matter if gtk+-3 is installed or not. I saw it first on a system that never saw any installation of gtk+-3.
Comment 7 Tassilo Horn 2011-05-05 13:38:45 UTC
This is a real blocker for me, because even specifying another Look&Feel with

  $ java -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -jar some.jar

doesn't help.  The same applies to setting the L&F programmatically with UIManager.setLookAndFeel(new javax.swing.plaf.metal.MetalLookAndFeel()).

Because of that, I've switched to sun-jdk for now.
Comment 8 Sebastian Pipping gentoo-dev 2011-05-05 15:25:59 UTC
(In reply to comment #6)
> Just to make that clear: This happens no matter if gtk+-3 is installed or not.
> I saw it first on a system that never saw any installation of gtk+-3.

Same with me.

Raising to major.
Comment 9 Serkan Kaba (RETIRED) gentoo-dev 2011-05-07 16:43:16 UTC
*** Bug 366319 has been marked as a duplicate of this bug. ***
Comment 10 Tobias Leupold 2011-05-24 10:45:54 UTC
The problem is still the very same with (testing) dev-java/icedtea6-bin-1.10.1 here.
Comment 11 Charles Welton 2011-05-26 02:33:46 UTC
The error is slightly different with gtk+-2.24.3 and icedtea6-bin-1.9.7:

Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported

Note that there was no gtk+-3 installed in the system at this point.
I concluded there are gtk+-3 symbols in icedtea6-bin.

To prove, I did an experiment:

1 - Installed gtk+-3
2 - Found an application that would consistently fail (in my case, javaws without input files).
3 - Pointed the original libgtk-x11-2.0.so links to libgtk-3.so
4 - Tested javaws. It worked.

This, however, breaks existing gtk+-2 applications.
Comment 12 Till Schäfer 2011-09-08 19:16:46 UTC
i have the same problem with icedtea6-bin-1.10.3 and icedtea-6.1.10.3.

i tried to set both via eselect java-vm, but none worked. than i tried to remove icedtea-bin with no luck and also with compiled icedtea only i have no luck. 

i think it worked some days before with icedtea6-bin. i have no idea why it stopped working.
Comment 13 Serkan Kaba (RETIRED) gentoo-dev 2011-09-16 03:29:00 UTC
*** Bug 382747 has been marked as a duplicate of this bug. ***
Comment 14 Jeff Sweeney 2011-09-21 04:08:36 UTC
Getting the same error when running NetBeans. I have removed and masked the gtk+3 package, rebuilt the entire system and this error is still occurring... I am also using the icedtea package (rather than icedtea-bin).

Am about to try the fix suggested on bug #375939 (removing qt4 use flag from cairo) since that bug seems to be the same problem. 


Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
aborting...
/usr/share/netbeans-nb-7.0/bin/../platform/lib/nbexec: line 548: 26297 Aborted                 "/usr/lib64/icedtea6/bin/java"...


Portage 2.1.10.19 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_E5400_@_2.70GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 20 Sep 2011 17:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm DOOM3 skype-eula Introversion googleearth AdobeFlash-10.1 AdobeFlash-10 PUEL Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -mtune=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mcx16 -msahf -mtune=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="/mnt/distfiles http://mirror.aarnet.edu.au/pub/gentoo http://ftp.swin.edu.au/gentoo"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en_GB en_AU"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 a52 aac ace acl acpi ada alsa amd64 ant antlr apache2 apng avalon-framework avalon-logkit berkdb bluetooth bookmarks branding bzip2 cairo cdda cdr charmap clamdtop cli clisp colorpicker consolekit cracklib crypt css cups cxx dbus device-mapper dhcpcd directfb dri dts dvd dvdr eds emboss encode esd evo examples exif extensions extra extras fam fat fbcondecor ffmpeg fftw firefox flac fontconfig fortran fping ftp gcj gd gdbm gdu gif glibc-omitfp gnome gnome-keyring gnutls gpm gs gstreamer gtk i18n iconv imagemagick imap ipv6 jadetex java java6 jce jpeg jpeg2k kdrive kpathsea lame latex lcms ldap libnotify libwww log4j lua luatex lzo mad maildir mmx mng modules mono moonlight motif mp3 mp4 mpeg mplayer mudflap multilib mysql nautilus ncurses nls nptl nptlonly nsplugin objc objc++ objc-gc ocr odk offensive ogg openal opengl openmp oss pam pango pcre pdf perl php png policykit ppds pppd python python3 qmail qt3support qt4 readline ruby sasl scanner sdl secure-delete servletapi session shared-dricore showtabbar sip smartspaces source spell sqlite sse sse2 ssl ssse3 startup-notification subtitles svg sysfs syslog system-sqlite t1lib tcl tcltk tcpd templates terminal theora tiff tk truetype udev unicode unlock-notify usb v4l2 vorbis wav wps x264 xcb xetex xine xml xml2 xmlreader xmlrpc xmlwriter xorg xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB en_AU" NETBEANS_MODULES="ide java nb cnd profiler dlight harness websvccommon php apisupport" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Jeff Sweeney 2011-09-21 04:31:38 UTC
Following up, removing qt4 USE flag from cairo (and only cairo) allows NetBeans to load correctly...
Comment 16 Till Schäfer 2011-09-21 08:16:38 UTC
removing the qt4 useflag from x11-libs/cairo did the trick for me too.
Comment 17 Serkan Kaba (RETIRED) gentoo-dev 2011-09-21 08:55:05 UTC
Does this happen with cairo's other reverse deps?
@x11
Why does cairo pull gtk2 symbols with +qt4
Comment 18 Serkan Kaba (RETIRED) gentoo-dev 2011-09-21 09:08:30 UTC
It appears that other packages are effected as well.
Comment 19 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-09-21 13:44:10 UTC
As icedtea6-bin is built in a chroot that only has gtk+-2* I don't see how it possibly could contain gtk+ 3 symbols.
Comment 20 James Le Cuirot gentoo-dev 2011-09-25 07:48:44 UTC
Yes, I initially encountered it with Opera before I ever installed GTK+ 3. See my findings in bug #375939 for how strange this problem is.
Comment 21 Rémi Cardona (RETIRED) gentoo-dev 2011-09-26 18:59:56 UTC
(In reply to comment #19)
> As icedtea6-bin is built in a chroot that only has gtk+-2* I don't see how it
> possibly could contain gtk+ 3 symbols.

gtk2 and 3 both share hundreds of symbol names as they both use the same gtk_* "namespace"...
Comment 22 Andrew John Hughes 2014-11-07 18:50:13 UTC
This seems like a problem with the binary build. I've never seen this when using IcedTea builds on a system with both Gtk+2 and 3.
Comment 23 James Le Cuirot gentoo-dev 2016-08-05 20:01:57 UTC
This was because of the cairo[qt4] mess, which is long gone now. Closing.