Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 285694

Summary: kde-base/konsole-4.4.1: visual artefacts while scrolling upwards
Product: Gentoo Linux Reporter: Matthias Lübben <ml81>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 313999    
Attachments: Set Qt::AA_NativeWindows flag for the application

Description Matthias Lübben 2009-09-20 13:30:05 UTC
While scrolling upwards within konsole the text contents becomes garbled. This happens because the offscreen buffer (used as cache) for faster scrolling is rendered incorrectly. Resizing the window, or using page down and page up works fine but using the mouse wheel or the scroll bar on the right side leads to heavy artefacts to the point where konsole becomes useless. Also using programms like less or vi is impossible.

Reproducible: Always

Steps to Reproduce:
1. Start konsole
2. Produce some large output, e.g. find /
3. Scroll upwards with the mouse wheel

Actual Results:  
Visible artefacts.

Expected Results:  
No artefacts.

Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Pentium-R-_4_CPU_2.53GHz-with-gentoo-2.0.0
Timestamp of tree: Sat, 19 Sep 2009 02:20:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-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 /var/bind"
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/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/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi akonadi alsa amrnb amrwb ao apache2 arts asf audiofile avahi bash-completion bcmath berkdb bindist bitmap-fonts bl branding bzip2 cairo caps captury cdda cddb cdparanoia cli cracklib crypt css ctype cups curl daap dbus dga directfb djvu doc dri dts dv dvb dvd dvdr dvdread encode enscript esd exif expat fam fasttrack fbcon ffmpeg fftw firefox flac fortran ftp gd gdbm ggi gif glib gmp gnutella gnutls google-gadgets gphoto2 gpm gs gtk hal htmlhandbook iconv id3tag idn ieee1394 imagemagick imap imlib innodb inotify ipv6 isdnlog jadetex java java5 joystick jpeg jpeg2k kde kdepim kipi kpathsea ladspa lame latex ldap libnotify libsamplerate lirc live logrotate lua lzo mad magic matroska mdnsresponder-compat mikmod mjpeg mmx mmxext mng mod motif mp3 mp3rtp mp4 mpeg mplayer mudflap musepack musicbrainz mysql nas ncurses networkmanager nis nls nptl nptlonly nsplugin nvidia ocaml odbc ogg openal openexr opengl openmp oss pam pango pch pcre pdf perl php plasma png pppd python qt3 qt3support qt4 quicktime readline reflection rss rtc rtsp ruby samba sdl sdl-image semantic-desktop session sharedext sharedmem shout simplexml skins slang slp sndfile soap sockets speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification stream strigi subversion svg svga sysfs sysvipc tcl tcltk tcpd theora threads tiff timidity tk truetype truetype-fonts type1-fonts unicode utempter v4l v4l2 vcd vim-syntax visualization vnc vorbis wavpack webkit win32codecs wps wxwidgets x264 x86 xanim xattr xcomposite xft xine xinerama xinetd xml xml2 xmlrpc xorg xosd xpm xscreensaver xsl xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="casio_qv directory stv0680" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia v4l vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Lübben 2009-09-20 13:33:43 UTC
Created attachment 204688 [details, diff]
Set Qt::AA_NativeWindows flag for the application

Forcing the application to use native windows by setting the Qt::AA_NativeWindows flag for the application fixes the problem.
Comment 2 Matthias Lübben 2009-09-20 13:46:25 UTC
The problem is already known by the KDE project as bug 163176
https://bugs.kde.org/show_bug.cgi?id=163176
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2010-04-13 22:06:55 UTC
According to upstream bug, this is still present in 4.4.1

Also according to upstream bug it might be fixed by executing konsole with the
arguments "-graphicssystem raster".
Comment 4 Matthias Lübben 2010-04-14 15:36:01 UTC
Since the gentoo project made raster the default paint engine this bug can be closed. While the original bug is still there it is not triggered for the average user only for those who are using the opengl paint engine.

See also http://labs.trolltech.com/blogs/2009/12/16/qt-graphics-and-performance-an-overview/

Quote "Personally I would strongly recommend to use raster, it implements the full feature set, it is often faster, has the same performance profile as Qt on Windows and painting bugs are prioritized higher for raster than for the CoreGraphics backend."
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2010-05-16 12:37:04 UTC
OK, closing it then. (In reply to comment #4)

> Since the gentoo project made raster the default paint engine this bug can be
> closed. While the original bug is still there it is not triggered for the
> average user only for those who are using the opengl paint engine.