Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260991 - qt-4.5.0 font corruption in qt4 based apps
Summary: qt-4.5.0 font corruption in qt4 based apps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 266201
  Show dependency tree
 
Reported: 2009-03-02 21:03 UTC by valentin
Modified: 2009-05-02 16:57 UTC (History)
3 users (show)

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


Attachments
qt4 based application (schermata1.png,190.89 KB, image/png)
2009-03-02 21:05 UTC, valentin
Details
qt3 based application (schermata2.png,137.87 KB, image/png)
2009-03-02 21:06 UTC, valentin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description valentin 2009-03-02 21:03:27 UTC
After upgrading to qt-4.5.0_rc1 i've been experiencing font corruption inside every single qt4 based app. rebuilding the application doesn't help. the same problem doesn't happen with gtk+ or qt3 based apps. the screenshots attached indicate a qt4 based application (lastfm) and a qt3 based one (klibido). 
i've tried to see if the same happens with qt 4.4.2 but it doesn't. so this is not a driver related issue but a qt 4.5.0_rc1 one. i don't have tried to install the original qt4.5_rc version from the sources available at qt site but i suspect they would behave in the same way. 
my system is gento amd64 unstable branch with gentoo based x11 packages. the same issue happens with the x11 overlay live packages, xf86-video-ati driver (6.10.99 - 6.11 - 9999 versions) radeon rs690 mobility.
this is my emerge --info:

Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-x86_64-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-57-with-glibc2.2.5
Timestamp of tree: Mon, 02 Mar 2009 18:10:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -mno-tls-direct-seg-refs -mmmx -msse3 -pipe -fomit-frame-pointer -Wl,--enable-new-dtags -Wl,--sort-common -s"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm/ /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=k8 -mno-tls-direct-seg-refs -mmmx -msse3 -pipe -fomit-frame-pointer -Wl,--enable-new-dtags -Wl,--sort-common -s"
DISTDIR="/var/tmp/distfiles"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS=""
LINGUAS="it en_GB en"
MAKEOPTS="-j8 "
PKGDIR="/var/tmp/binpkgs"
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/portage/local/layman/sabayon /usr/portage/local/layman/stormfront /usr/portage/local/layman/berkano /usr/portage/local/layman/sunrise /usr/portage/local/layman/flameeyes-overlay /usr/portage/local/layman/kde /usr/portage/local/layman/x11 /usr/portage/local/layman/portage-aeskulap"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aim alsa amd64 audiofile avahi bash-completion beryl bidi bzip2 cairo cddb cdr cjk clamav cli commercial cracklib crypt cups curl dbus dbx dga dri dts dv dvd dvdr dvdread effects emerald encode exscalibar fastcgi ffmpeg fftw firefox flac flash foomatic-db foomaticdb freetype ftp gcc-libffi gdbm gif gnutls gphoto2 gpm gtk+ hal iconv icq ieee1394 imap ipv6 jabber java jikes jpeg jpg kde kdehiddenvisibility kerberos krb4 lame lcms ldap ldapsam libao libcaca libclamav libg++ libnotify lm_sensors mad matroska memlimit midi mime mmx mng motif mp3 mpeg msn mudflap multilib musepack musicbrainz mysql mysqli ncurses nls nntp nptl nptlonly nsplugin odbc ogg openal openexr opengl openmotif openmp pam pcmcia pcre pdf perl pertty php png posix postgres ppds pulseaudio python qt qt3 qt3support qt4 quicktime rdesktop readline reflection ruby samba sasl scanner session sharedext sharedmem simplexml slang slp smartcard sndfile snmp sockets socks5 speex spell spl spreadsheet sqlite3 sse sse2 ssl ssse3 startup-notification streams svg switch_all_desktops sysfs tcl tcpd theora threads tiff tk truetype unicode usb v4l vcd vim-syntax vorbis wifi wmf x264 xcb xcomposite xine xml xorg xosd xpm xprint xscreensaver xsl xv xvid yahoo 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en_GB en" USERLAND="GNU" VIDEO_CARDS="fglrx vesa vga radeon v4l r300"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
1. install qt 4.5.0_rc1
2. recompile qt4 based applications
3. restart xorg-server

Actual Results:  
the qt4 based applications would display text corruption.

Expected Results:  
no text corruption in qt4 based applications.
Comment 1 valentin 2009-03-02 21:05:21 UTC
Created attachment 183716 [details]
qt4 based application
Comment 2 valentin 2009-03-02 21:06:13 UTC
Created attachment 183717 [details]
qt3 based application
Comment 3 Howard B. Golden 2009-03-06 21:24:03 UTC
I got this on qt-4.5.0_rc1 AND still get it on qt-4.5.0 (just upgraded). However, when I start a Gnome session, the KDE4 applications work fine. (I'm running Gnome/Firefox right now to post this.) Any troubleshooting suggestions welcome!
Comment 4 valentin 2009-03-07 12:29:39 UTC
(In reply to comment #3)
> I got this on qt-4.5.0_rc1 AND still get it on qt-4.5.0 (just upgraded).
> However, when I start a Gnome session, the KDE4 applications work fine. (I'm
> running Gnome/Firefox right now to post this.) Any troubleshooting suggestions
> welcome!
> 

for me it's not only kde4 apps, but all applications using qt 4 as base dependency (lastfm and avidemux2 for example). so the bug should be in qt4.5 after all.  i'm now going to try out the official tarball releases and let you know if this is happening, and if so i'll try posting out a bug report at mainstream. 
i suspect the bug is due to changes in the rgb order handling (which results scrambled) in the new release. 
Comment 5 Howard B. Golden 2009-03-07 23:22:21 UTC
(In reply to comment #4)

> i suspect the bug is due to changes in the rgb order handling (which results
> scrambled) in the new release. 

I agree with your suspicion. After reading the Gentoo forum posts about this issue I changed my subpixel hinting to RGB (or BGR according to your preference) and the display is OK under KDE4. This is a sufficient workaround for me. 

Comment 6 Markos Chandras (RETIRED) gentoo-dev 2009-03-16 14:30:55 UTC
I did have the same on laptops with intel graphics chipset. I did some tweaks on xorg.conf and now every application works fine. I never had such issues on nvidia graphics system. So from my point of view, this situation is not strictly qt4 depended. 

What graphics chipsets are you using?
Comment 7 Howard B. Golden 2009-03-17 04:09:10 UTC
(In reply to comment #6)

> What graphics chipsets are you using?

I'm using nvidia, so I still think it's related to qt4 subpixel hinting. 
I'm running qt-4.5.0 now. It has the same problem if I use vertical subpixels.
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2009-03-30 10:35:07 UTC
(In reply to comment #7)
> (In reply to comment #6)
> 
> > What graphics chipsets are you using?
> 
> I'm using nvidia, so I still think it's related to qt4 subpixel hinting. 
> I'm running qt-4.5.0 now. It has the same problem if I use vertical subpixels.
> 

Are you using raster use flag on qt-gui?
Comment 9 Howard B. Golden 2009-03-31 03:58:05 UTC
(In reply to comment #8)

> Are you using raster use flag on qt-gui?

No.
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2009-04-22 13:24:22 UTC
Note that you need to re-emerge the whole kde4 when you upgrade your qt libraries. So please try to re-emerge your whole kde4 enviroment and see if that fixes your issue
Comment 11 Dan Murphy 2009-04-23 17:48:09 UTC
I have the same problem with qt4 apps on my Xfce desktop when using hinting with a vertical sub-pixel order (V-RGB or V-BGR). When set to None, RGB, or BGR, there are no problems. I'm using qt-gui-4.5.0-r2, and the raster flag is not set.
Comment 12 Ben de Groot (RETIRED) gentoo-dev 2009-04-23 20:48:11 UTC
From the Qt 4.5.1 changelog:
   * [248387] Properly respect the font config LCD filter settings for
     subpixel antialiased text rendering when Freetype's native subpixel
     rendering is disabled.
   * [248498] Fix garbled rendering of subpixel antialiased text when using
     Freetype's native subpixel rendering for vertical subpixel layouts.

4.5.1 is currently in qting-edge overlay for testing, and should hit portage very soon
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2009-05-02 09:28:10 UTC
Is this bug valid with 4.5.1?
Comment 14 Howard B. Golden 2009-05-02 16:22:04 UTC
(In reply to comment #13)
> Is this bug valid with 4.5.1?
I just upgraded to 4.5.1, and I no longer have the problem when using vertical subpixels. 

Comment 15 Markos Chandras (RETIRED) gentoo-dev 2009-05-02 16:57:50 UTC
As Ben said on comment #12 this should be solved now on qt-4.5.1

Closing as FIXED. Re-open if needed