Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351357 - x11-drivers/xf86-video-intel-2.14.0: Broken text display in emacs
Summary: x11-drivers/xf86-video-intel-2.14.0: Broken text display in emacs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 09:12 UTC by Tassilo Horn
Modified: 2011-05-01 17:04 UTC (History)
4 users (show)

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


Attachments
The full Xorg.0.log (Xorg.0.log,26.20 KB, text/plain)
2011-01-12 21:31 UTC, Tassilo Horn
Details
The (one line) patch that fixes the corruption (da990536eca09c6de74627541cd56ecfad925eda,549 bytes, patch)
2011-02-28 11:30 UTC, Paul de Vrieze (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tassilo Horn 2011-01-11 09:12:36 UTC
After upgrading to x11-drivers/xf86-video-intel-2.14.0 yesterday, the text in Emacs (emacs-vcs-24.0.9999) is garbled.  For example, when scrolling a buffer, text of a scrolled away line is displayed at the current line overlaying its real text.  There are some strange symbols here and there, and basically emacs becomes unusable.

This happens only in X11 emacs frames.  Emacs in a terminal doesn't have that defect.

The display recovers to normal state after some seconds or when switching away from emacs to some other window.  However, directly when switching back and modifying the text in the emacs buffer or scrolling, it's garbled again.

I wanted to create a screenshot, but since the display recovers as soon as switching away from emacs, I couldn't do that...

(Hm, maybe I could create a screenshot by using a timer.  If you need one, please tell me so.)

For now, I've downgraded to x11-drivers/xf86-video-intel-2.13.0 which solves the issue for me.

Reproducible: Always




root@thinkpad> emerge --info                                                                   /home/horn
Portage 2.2.0_alpha14 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-gentoo x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 10 Jan 2011 18:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1, 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.68
sys-devel/automake:  1.8.5-r4, 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)
Repositories: gentoo emacs sunrise kde Tassilos-Overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FSF-APPROVED @OSI-APPROVED ANTLR freedist TeX LGPL-2 BitstreamVera BZIP2 FLEX FDL-1.1 LPPL-1.3c OFL libstdc++ GPL-2-with-linking-exception fontconfig sun-j2sl-6 popt Info-ZIP MOTIF adobe-ps libgcc gcc-runtime-library-exception-3.1 gsm nosell FDL-1.3 w3m LPPL-1.3 GPL-1 ZSH FDL-1.2 CRACKLIB DB OpenSoftware PAM tcp_wrappers_license Subversion POSTGRESQL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirror.ovh.net/gentoo-distfiles/ ftp://de-mirror.org/distro/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/var/lib/layman/emacs /var/lib/layman/sunrise /var/lib/layman/kde /usr/local/overlays/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi akonadi alsa amd64 aspell avahi berkdb bluetooth branding bzip2 cairo caps cdda cdr cleartype cli consolekit cracklib crypt cups curl cxx dbus device-mapper dhcpcd djvu dri dts dvd dvdr dvi emacs emboss encode exif ffmpeg firefox flac fontconfig fontforge fortran fuse gallium gdbm gdu gif gmp gnutls gpg gpm gs gstreamer gtk iconv idn imagemagick inotify ioctl ipv6 jpeg kde kpathsea lame laptop lastfm lcms ldap lzma mad mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib musicbrainz mysql nautilus ncurses networkmanager nls nptl nptlonly nsplugin ntp ogg opengl openmp openvg pam pango pcre pdf perl phonon png policykit ppds pppd pulseaudio python qt3support qt4 raw readline samba schroedinger sdl semantic-desktop session slp smp sqlite sse sse2 ssh ssl ssse3 startup-notification svg sysfs syslog t1lib taglib tcpd theora threads tiff truetype udev unicode upnp usb vorbis webkit wifi x264 xcb xcomposite xetex xft xine xinerama xml xmp xorg xpm xrandr xv xvid zeroconf zlib zsh-completion" 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" 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" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i965 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

* app-editors/emacs-vcs
     Installed versions:  Version: 24.0.9999(24)!s{tbz2}
                          Date:    08:37:20 AM 01/11/2011
                          USE:     X alsa dbus gif gnutls gpm gzip-el imagemagick jpeg libxml2 m17n-lib png sound source svg tiff xft xpm -Xaw3d -gconf -gtk -hesiod -kerberos -motif -selinux -toolkit-scroll-bars

* x11-drivers/xf86-video-intel USE: dri
Comment 1 Derek Dolney 2011-01-12 02:53:18 UTC
Same problem with emacs-23.2-r2.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2011-01-12 20:01:32 UTC
I may have a hunch. Could you attach your full Xorg.0.log?

Thanks
Comment 3 Tassilo Horn 2011-01-12 21:31:43 UTC
Created attachment 259656 [details]
The full Xorg.0.log
Comment 4 Tassilo Horn 2011-01-12 21:34:54 UTC
I'm now running the 2.14.0 intel drivers and mesa-7.10 (formerly I used 7.9.1), which arrived in portage today.  That seems to have fixed the issue for me.  I cannot reproduce the bug again.
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2011-01-12 21:45:01 UTC
Ah... so you are using a compositor?
Comment 6 Derek Dolney 2011-01-13 04:36:14 UTC
My experience is not the same as Tassilo Horn's, comment #4. I have xf86-video-intel-2.14.0, mesa-7.10, and cairo-1.10.2. I still get artifacts with both emacs-2.32-r2 and emacs-vcs-24.0.9999.

Yes, compositing. I'm using compiz. If I use metacity without compositing emacs is fine.
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2011-01-13 07:27:23 UTC
@Derek, please open a bug upstream [1] and paste the URL here so we can track the issue.

Thanks
Comment 8 Tassilo Horn 2011-01-13 07:31:51 UTC
(In reply to comment #6)
> My experience is not the same as Tassilo Horn's, comment #4.

Oh yes, I was a bit too fast.  Although it seems to be much better with mesa-7.10, I still get artifacts in emacs here and there.

And yes, I use KWin with desktop effects turned on, so it's also with compositing.
Comment 9 Tassilo Horn 2011-01-13 07:40:12 UTC
(In reply to comment #7)
> @Derek, please open a bug upstream [1] and paste the URL here so we can track
> the issue.

It seems there's an upstream bug.  I've added a link here and there: 

  https://bugs.freedesktop.org/show_bug.cgi?id=32734
Comment 10 Paul de Vrieze (RETIRED) gentoo-dev 2011-02-27 21:33:01 UTC
This bug seems to be resolved upstream, and applied in debian and others as well:
https://bugs.freedesktop.org/show_bug.cgi?id=33650#c10
http://permalink.gmane.org/gmane.linux.debian.devel.x/95747
Comment 11 Paul de Vrieze (RETIRED) gentoo-dev 2011-02-28 11:30:20 UTC
Created attachment 264157 [details, diff]
The (one line) patch that fixes the corruption

This is the patch involved. It fixes the issues on my system.
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-05-01 14:12:31 UTC
It should be fixed in xf86-video-intel-2.15.0, please reopen if you still see the problem in that version.
Comment 13 Tassilo Horn 2011-05-01 17:04:50 UTC
(In reply to comment #12)
> It should be fixed in xf86-video-intel-2.15.0, please reopen if you still see
> the problem in that version.

No, thanks, it works fine now.