Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113123 - GTK+ 2.8 text corruption
Summary: GTK+ 2.8 text corruption
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 114644 115341 (view as bug list)
Depends on:
Blocks: 112951
  Show dependency tree
 
Reported: 2005-11-20 15:26 UTC by Geoff Holden
Modified: 2006-10-30 04:11 UTC (History)
10 users (show)

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


Attachments
Screenshot (gvim-text-corrupt.png,19.13 KB, image/png)
2005-11-20 15:27 UTC, Geoff Holden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Holden 2005-11-20 15:26:44 UTC
After I upgrade to gtk+ 2.8.x, the fonts get corrupted in some applications.
Most notably in gvim and in gimp's menus.
I'm attaching a screenshot of gvim. The same corruption occurs in the menus and
in the gimp menus and dialogs.
It's also worth noting that by moving another window over the window clears up
the fonts, as does highlighting the menu items.
Downgrading to 2.6.x fixes the problem.

This issue has also been mentioned on usenet at
http://groups.google.ca/group/linux.gentoo.user/browse_thread/thread/15019e5acb611797/0cfaa53905598571


Reproducible: Always
Steps to Reproduce:
1. Launch gvim or gimp

Actual Results:  
Corrupted fonts

Expected Results:  
Clear fonts

Portage 2.0.53_rc7 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14 x86_64)
=================================================================
System uname: 2.6.14 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
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/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.cs.mun.ca/pub/mirror/gentoo/
http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="amd64 X X509 aac alsa amd arts audiofile avi berkdb bitmap-fonts bzip2 cddb
cdparanoia cdr crypt cups curl dvd dvdr eds emboss emul-linux-x86 encode esd
exif expat fam ffmpeg flac foomaticdb fortran gcj gd gdbm gif gimp glut gmp
gnome gphoto2 gpm gstreamer gtk gtk2 guile idn imagemagick imlib innodb ipv6
java jpeg junit kde lcms ldap libwww lirc lm_sensors lzw lzw-tiff mad mikmod mng
mozcalendar mozilla mp3 mpeg musicbrainz mysql ncurses nls noxalan nptl
offensive ogg opengl pam pcre pda pdf pdfkit pdflib perl png python qt quicktime
rdesktop readline samba sdl spell ssl tcltk tcpd tetex tidy tiff timidity
transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales
vorbis wxgtk1 xine xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Geoff Holden 2005-11-20 15:27:20 UTC
Created attachment 73273 [details]
Screenshot
Comment 2 Aldo "xoen" Giambelluca 2005-11-21 11:44:57 UTC
Hi, we are talking about GTK+ 2.8.7, right? If no, have also tried the last
version into the portage tree?
Comment 3 Geoff Holden 2005-11-21 11:52:35 UTC
(In reply to comment #2)
> Hi, we are talking about GTK+ 2.8.7, right? If no, have also tried the last
> version into the portage tree?

I've seen it on both gtk+-2.8.6 and gtk+-2.8.7
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-11-21 13:37:48 UTC
What else are you running?  I only get this when I have a full-screen Xv app
(such as mplayer) running, and switch desktops.  And, even then, only on modular
X.  Do you have composite running (I do)?

When I exit the Xv app, the problem goes away entirely.
Comment 5 Geoff Holden 2005-11-21 14:01:49 UTC
(In reply to comment #4)
> What else are you running?  I only get this when I have a full-screen Xv app
> (such as mplayer) running, and switch desktops.  And, even then, only on modular
> X.  Do you have composite running (I do)?
> 
> When I exit the Xv app, the problem goes away entirely.

I do have Composite enabled, but I'm not running any Xv apps. It might also be
worth mentioning that I'm running KDE, not GNOME.
Comment 6 Eike Hein 2005-11-25 12:54:04 UTC
I'm experiencing the same corruption, and so do many others: 
http://forums.gentoo.org/viewtopic-t-393284-highlight-gtk+fonts.html
http://forums.gentoo.org/viewtopic-t-393804-start-0-postdays-0-postorder-asc-highlight-.html

I'm running KDE and GTK+ 2.8.7, although I experienced the same problem with
GTK+ 2.8.6. 

Someone suggested disabling the XRENDER acceleration provided by the nVidia
binary drivers, but I'm actually using the nv drivers. 
Comment 7 Eike Hein 2005-11-25 12:55:12 UTC
Addendum: I am not using the Composite extension. X.org X11 6.8.2-r6.
Comment 8 Ashley Bostock 2005-12-01 11:21:21 UTC
I'm having the same problem as well, more annoying is that fact that firefox 1.5
requires gtk+ 2.8.7 when its emerged.

Is this only happening for ppl running gtk apps from with in kde?
Comment 9 Eike Hein 2005-12-02 07:00:10 UTC
Bug persists with GTK+ 2.8.8.
Comment 10 foser (RETIRED) gentoo-dev 2005-12-02 07:54:03 UTC
could those reporting this problem state the versions of their freetype, Xorg &
pango installs. Also mention if you have composite loaded in your xorg config
(isn't the same thing as using it).
Comment 11 Eike Hein 2005-12-02 08:26:49 UTC
Package versions:
media-libs/freetype: 2.1.10
x11-base/xorg-x11: 6.8.2-r6
x11-libs/pango: 1.10.1

X11:
- No composite extension loaded.
- Using the 'nv' driver.

Notes:
- revdep-rebuild and emerge --newuse have nothing to do; everything is up to date.
- CFLAGS: -O2 -march=athlon-xp -pipe.
Comment 12 David Schoen 2005-12-02 17:13:38 UTC
Package versions:
[ebuild   R   ] media-libs/freetype-2.1.9-r1  -bindist -doc +zlib 0 kB
[ebuild   R   ] x11-base/xorg-x11-6.8.2-r6  -3dfx -3dnow +bitmap-fonts -cjk
-debug -dlloader -dmx -doc +font-server -insecure-drivers -ipv6 -minimal +mmx
+nls -nocxx +opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts
(-uclibc) -xprint +xv 0 kB
[ebuild   R   ] x11-libs/pango-1.10.1  -debug -doc 0 kB

X11:
no composite enabled
Option      "RenderAccel" "True" <-- changing this to false fixes my problem,
but as i understand shouldn't have this effect
i'm using nvidia drivers

CFLAGS: "-march=pentium4 -Os -pipe -fomit-frame-pointer"
Comment 13 Ashley Bostock 2005-12-03 03:04:43 UTC
media-libs/freetype-2.1.9-r1  -bindist -doc +zlib
x11-libs/pango-1.10.1  -debug -doc
x11-base/xorg-x11-7.0.0_rc2-r1  -xprint

Composite enabled and in use
RenderAccel set to True

Using nvidia driver:
media-video/nvidia-kernel-1.0.7676-r1
Comment 14 Eike Hein 2005-12-12 18:51:43 UTC
No change with pango 1.10.2 and gtk+ 2.8.9 (using the 2.8.8 ebuild with a
changed version number).
Comment 15 Aldo "xoen" Giambelluca 2005-12-13 22:51:14 UTC
Are you all on amd64?
All of you have a Nvidia video card?
All of you have Option   "RenderAccel" "True"?
Comment 16 Geoff Holden 2005-12-14 06:52:42 UTC
(In reply to comment #15)
> Are you all on amd64?
> All of you have a Nvidia video card?
> All of you have Option   "RenderAccel" "True"?

I'm all of those things.
Comment 17 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-14 10:21:05 UTC
*** Bug 115341 has been marked as a duplicate of this bug. ***
Comment 18 Philip Lafleur 2005-12-14 21:28:04 UTC
I'm using IA32 and nvidia card with proprietary drivers. The problem does go
away when I set RenderAccel to false.
Comment 19 Eike Hein 2005-12-15 02:41:27 UTC
> Are you all on amd64?
No, Athlon XP -> IA-32.

> All of you have a Nvidia video card?
nVidia GeForce 6800 Ultra.

> All of you have Option   "RenderAccel" "True"?
No, since the open source "nv" driver does not recognize that option.
Comment 20 Jure Repinc 2005-12-17 10:07:11 UTC
Same problem here with apps like Firefox and Azureus.

Xorg 6.8.2-r6
FreeType 2.1.10
Pango 1.10.2
nvidia-kernel 1.0.8174-r1

RenderAccel enabled
Composite disabled

This is on AMD Athlon 64 machine - 64 bit mode.
Comment 21 John N. Laliberte (RETIRED) gentoo-dev 2005-12-18 09:09:30 UTC
here is the upstream bug:
http://bugzilla.gnome.org/show_bug.cgi?id=313646
Comment 22 Ashley Bostock 2005-12-18 09:57:40 UTC
Not quite the same bug (as reported upstream) as I have antialiasing on in firefox and it still does it.

> Are you all on amd64?
No - Pentium 4

> All of you have a Nvidia video card?
nvidia 6800GT

> All of you have Option   "RenderAccel" "True"?
I have it set to true - using lastest nvidia drivers (1.0.8174-r1)
Comment 23 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-12-20 09:18:54 UTC
The upstream bug has boiled down to broken binary nvidia drivers with RenderAccel set to true, if I read it correctly.
Comment 24 Ashley Bostock 2005-12-20 10:08:42 UTC
Well if you look at the forum posts listed above then you'll see at least one user who is running the nv driver and still has the problem.
Comment 25 Eike Hein 2005-12-21 03:57:32 UTC
Actually, I was mistaken - I do in fact use the nVidia binary driver with
RenderAccel enabled. Disabling it solves the problem.

To explain how I made this mistake: The GTK+ apps that exhibited the broken
font rendering are actually running on a remote machine, which I control from
afar using the terminal server technology NX (www.nomachine.com). Now, the X
server on that remote box does use the "nv" driver, however unlike VNC which
essentially transmits screen captures of the remote desktop, NX transmits X11
protocol primitives (as I know only now). The local client application is an X
server instance running in some kind of Xnest-like setup - and my local X
server uses the "nvidia" driver.

We've nailed the issue, then.
Comment 26 Aldo "xoen" Giambelluca 2005-12-21 12:29:59 UTC
OK so the problem is related to :
*  NVidia card
*  NVidia driver (Sure with 1.0.7676-r1 and 1.0.8174-r1 versions)
*  Option "RenderAccel" "True"
Comment 27 John N. Laliberte (RETIRED) gentoo-dev 2005-12-21 16:09:10 UTC
*** Bug 114644 has been marked as a duplicate of this bug. ***
Comment 28 Eike Hein 2005-12-22 04:02:32 UTC
In this web forum thread, an nVidia engineer has responded to a description of
the problem: http://www.nvnews.net/vbulletin/showthread.php?t=61763

Full quote:

"There are currently known issues with RenderAccel. We hope to address most, if
not all of the known issues in the first driver release of 2006.

Thanks,
Lonni"
Comment 29 Aldo "xoen" Giambelluca 2005-12-23 12:38:57 UTC
NVidia driver 1.0.8178 was released and are in the portage tree.
Here the bug #116400 for the bump, in the changelog there is this entry "Fixed a corruption bug with RenderAccel and the Composite X extension
when using wide desktops." ...

Is this problem? please try with this newer version and see if this bug is fixed.
If yes ... probably GTK+ 2.8 can be marked stable...is this a christmas present ;)?
Comment 30 Geoff Holden 2005-12-23 13:04:24 UTC
Nope, still broken here with the new NVidia drivers.
Comment 31 Eike Hein 2005-12-23 18:25:05 UTC
Nope, bug persists.
Comment 32 Joe McCann (RETIRED) gentoo-dev 2006-01-06 11:11:14 UTC
We can't fix bugs with binary drivers. GTK upstream won't deal with it either. Please contact nvidia for bugfixes.
Comment 33 Xavier Maillard 2006-03-24 23:51:30 UTC
Same problem here. Deactivating RenderAccel solved it.
Comment 34 Eike Hein 2006-04-07 19:41:34 UTC
This problem has disappeared for me after upgrading to the new nVidia driver version 1.0-8756: http://www.nvidia.com/object/linux_display_ia32_1.0-8756.html
Comment 35 David Philippi 2006-07-31 06:29:03 UTC
I'm not sure wheter this bug is really solved upstream. I've got the same problems and I'm not using the binary drivers, removed them completely months ago. I'm using nv on AMD64 no composite or other X extensions.
media-libs/freetype-2.1.10-r2
x11-base/xorg-x11-7.1
x11-libs/pango-1.12.3
x11-libs/gtk+-2.8.20-r1

If this is another kind of bug I'd like to know where to search for more information. For firefox export MOZ_DISABLE_PANGO=1 is an usable workaround but for other apps like Gimp it's really annoying.
Comment 36 Rui Vilão 2006-10-30 04:11:11 UTC
For me: firefox (compiled) bad fonts at page area, firefox (bin) is like using MOZ_DISABLE_PANGO=1. I'm using fglrx, I've tried with RenderAccel true and false. I'm using x11-libs/gtk+-2.10.6, Thunderbird works fine, although firefox 2 is all messed up. I'm getting desperate!

(In reply to comment #35)
> I'm not sure wheter this bug is really solved upstream. I've got the same
> problems and I'm not using the binary drivers, removed them completely months
> ago. I'm using nv on AMD64 no composite or other X extensions.
> media-libs/freetype-2.1.10-r2
> x11-base/xorg-x11-7.1
> x11-libs/pango-1.12.3
> x11-libs/gtk+-2.8.20-r1
> 
> If this is another kind of bug I'd like to know where to search for more
> information. For firefox export MOZ_DISABLE_PANGO=1 is an usable workaround but
> for other apps like Gimp it's really annoying.
>