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

Bug 242670

Summary: Activating kde4 desktop effects with OpenGL setting crashes X
Product: Gentoo Linux Reporter: Robin Bankhead <gentoo>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: x11
Priority: High    
Version: 2008.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xorg.conf

Description Robin Bankhead 2008-10-19 00:46:15 UTC
Attempting to enable KDE4 composited desktop effects (default settings) causes an instant X server crash.  It's then impossible to log back into KDE4 unless you delete or disable compositing in ~/.kde4/share/config/kwinrc.

Card is intel 852/855GM/GME; driver, xorg-server, mesa all at most recent versions. Have had compiz-fusion running successfully under KDE 3.5.10, and the kwin-3.5.* compositing also worked (though with high CPU) last time I checked. 


Reproducible: Always

Steps to Reproduce:
1.Start a kde-4.1.2 session
2.In System Settings > Desktop > Effects, check "Enable Desktop Effects"
3.Click "Apply"

Actual Results:  
X server crashes instantly

Expected Results:  
Accelerated effects enabled on desktop

emerge --info:
Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-Intel-R-_Celeron-R-_CPU_2.60GHz-with-glibc2.0
Timestamp of tree: Thu, 16 Oct 2008 19:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
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.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -w"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/pptpconfig.php /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/wine"
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/terminfo /etc/udev/rules.d /usr/share/wine/fonts"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe -w"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks nodoc preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/"
LANG="en_GB"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://brazil/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dga dio dri dvd dvdread eds emboss encode esd evo fam ffmpeg firefox flac flash foomaticdb fortran gdbm gif gimp glitz gpm hal iconv ieee1394 imagemagick innodb isdnlog java java5 javascript jpeg kde kerberos ldap libnotify libwww mad madwifi matroska midi mikmod mmx mp3 mpeg mplayer msn mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin odbc ogg opengl openmp oss pam pcmcia pcntl pcre pdf perl php png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session sharedmem soap sockets spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff tk truetype unicode usb vcd vhosts vorbis wifi win32codecs x264 x86 xcomposite xine xinerama xml xmlrpc xorg xsl xv xvid xvmc zeroconf 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="i810 intel fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Section of kdm.log showing crash:

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.26-gentoo-r1 i686 
Current Operating System: Linux pengi 2.6.26-gentoo-r1 #1 PREEMPT Tue Aug 26 03:00:42 BST 2008 i686
Build Date: 17 October 2008  12:05:20PM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 18 09:33:14 2008
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "type1" (module does not exist, 0)
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
Failed to initialize TTM buffer manager.  Falling back to classic.
Failed to initialize TTM buffer manager.  Falling back to classic.
Failed to initialize TTM buffer manager.  Falling back to classic.
[config/dbus] couldn't register object path
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
Failed to initialize TTM buffer manager.  Falling back to classic.
[config/dbus] couldn't register object path
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
(EE) config/hal: NewInputDeviceRequest failed
Failed to initialize TTM buffer manager.  Falling back to classic.
Failed to initialize TTM buffer manager.  Falling back to classic.
Failed to initialize TTM buffer manager.  Falling back to classic.
(EE) intel(0): underrun on pipe B!
(EE) intel(0): underrun on pipe B!

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x7d) [0x80c55bb]

Fatal server error:
Caught signal 11.  Server aborting

xorg.conf attached below.
Comment 1 Robin Bankhead 2008-10-19 01:08:58 UTC
Created attachment 169012 [details]
xorg.conf
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-21 21:13:22 UTC
Adding x11 as they are smarter when it comes to drivers issues.
Comment 3 Robin Bankhead 2008-11-02 12:38:48 UTC
Some additional findings: the crash does not occur if XRender is selected as the compositing type.

With OpenGL selected, the crash occurs even with what I take to be the least "ambitious" sub-settings, i.e.

OpenGL Mode: Fallback
Keep thumbnails of hidden windows up-to-date: false
Direct rendering: false
Use VSync: false
All plugins and Common Effects disabled

Also, I can confirm that compiz can be run successfully under KDE4.
Comment 4 Robin Bankhead 2009-02-06 12:55:33 UTC
Update: I was briefly able to make the OpenGL-effects work after updating to xf86-video-intel-2.6.1 by logging out, editing ~/.kde4/share/config/kwinrc to enable desktop effects, and logging back in. I started with almost no effects enabled, and enabled a few one-by-one (Place Windows, Fade, Explode, Desktop Cube, Cover Switcher); after enabling each one, the screen went black for a moment but was restored.

However, after a reboot kwin and kickoff were either very slow in loading, or loaded but did not render. Plasmoids (comic strip, luna, folder view) all loaded correctly but tooltips did not appear. No right-click menus appeared. Yakuake, when I opened it, caused a split-second "blip" of white in the top-left corner of the screen (the pulldown is oriented to top-right), and the pulldown was not visible - however, the mouse cursor behaved as though it was open (changed to a text-cursor when hovered in the area where the pulldown should be visible). I VT-switched to console, waited ~30 seconds and switched back, whereupon kickoff was visible again. A bubble informed me that kwin had disabled compositing for performance reasons.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-11-09 21:49:59 UTC
X.Org X Server 1.5.2
Release Date: 10 October 2008

kde-4.1.2

Closing... If you can still reproduce with X.org Server 1.6.x/1.7.x and KDE 4.3.x, please reopen.
Comment 6 Robin Bankhead 2009-11-20 14:42:22 UTC
The issue still remains but the goalposts have moved quite a bit since my last input, e.g. X wasn't working at all for a few months, but now KMS is working. So I'll not reopen until I've done a bit more investigating myself (for which I have very little time at present, sadly).