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

Bug 292160

Summary: xorg-server 1.7.1 & nvidia-drivers 190.42-r2 - freezes while compositing
Product: Gentoo Linux Reporter: Pavel Volkov <ao>
Component: [OLD] UnspecifiedAssignee: Doug Goldstein (RETIRED) <cardoe>
Severity: normal CC: gforce, gregg.casillo, jer, spock
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: nvidia bug report report

Description Pavel Volkov 2009-11-06 18:33:17 UTC
I'm experiencing multi-second freezes when compositing is enabled in KDE 4.3.3.
I was getting a backtrace in Xorg.0.log before right after enabling compositing, but it's doesn't log anymore. Mostly this happens when I go for the auto-hidden panel for window switching.
My card is 8500 GT.

Reproducible: Always

Steps to Reproduce:
1. enable compositing and play with windows for a bit

Portage 2.2_rc48 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r4melf x86_64)
System uname: Linux-2.6.31-gentoo-r4melf-x86_64-AMD_Phenom-tm-_9650_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Thu, 05 Nov 2009 20:00:01 +0000                                                       
app-shells/bash:     4.0_p35                                                                             
dev-java/java-config: 2.1.9-r1                                                                           
dev-lang/python:     2.6.4, 3.1.1-r1                                                                     
dev-python/pycrypto: 2.1.0_beta1                                                                         
dev-util/cmake:      2.6.4-r3                                                                            
sys-apps/baselayout: 2.0.1                                                                               
sys-apps/openrc:     0.5.2-r1                                                                            
sys-apps/sandbox:    2.2                                                                                 
sys-devel/autoconf:  2.13, 2.63-r1                                                                       
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                                    
sys-devel/binutils:  2.20                                                                                
sys-devel/gcc-config: 1.4.1                                                                              
sys-devel/libtool:   2.2.6a                                                                              
virtual/os-headers:  2.6.30-r1                                                                           
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                           
CFLAGS="-O2 -pipe -march=native -mtune=native"                                                           
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
LINGUAS="en en_GB ru ja"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/pcsx2-overlay /usr/local/portage/layman/java-overlay /usr/local/myover/combined"
USE="3dnow X aac acl acpi alsa amd64 anthy bash-completion bitmap-fonts bluetooth bzip2 cdr chasen cjk cli cracklib crypt css cups directfb djvu dri dts dvd dvdr encode exif fbcon ffmpeg flac fortran ftp gdbm geoip gif glitz gpm gtk hal htmlhandbook iconv idn imap immqt-bc jabber jpeg kde lame libcaca m17n-lib matroska midi mmx modules mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python qt3support qt4 raw readline reflection scim session spell spl sse sse2 ssl svg sysfs tcpd truetype truetype-fonts type1-fonts unicode usb vorbis wavpack x264 xcomposite xorg xscreensaver xv xvid 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB ru ja" USERLAND="GNU" VIDEO_CARDS="vesa vga nvidia"
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2009-11-13 05:12:45 UTC
Please attach the output of
Comment 2 Pavel Volkov 2009-11-13 08:03:15 UTC
Created attachment 210110 [details]
nvidia bug report
Comment 3 Alex Ghoth 2009-11-14 18:24:51 UTC
I can confirm the same issue. The temporary freezing happens when Alt+Tab window switching or using the Present Windows effect, and causes compositing in KDE 4.3.3 to be disabled. Other desktop effects (cube, grid, etc) work prefectly. 

Currently using a mixed build with ACCEPT_KEYWORDS="~amd64" testing branch. The bug did not occur with stable drivers-nvidia 180.60 and xorg-server 1.6.x.

Attaching the output from
Comment 4 Alex Ghoth 2009-11-14 18:27:38 UTC
Created attachment 210258 [details] report
Comment 5 Alex Ghoth 2009-11-15 12:13:08 UTC
Setting Option "UseEvents" "false" in xorg.conf solves the problem. It might be that UseEvents has no effect in nvidia drivers prior to 190.x.

Not sure I like the idea of a "tight loop" instead of a poll() call, but it doesn't seem to use make much difference to CPU usage. Why this only caused trouble with certain opengl effects is also a strange.

According to Aaron P on they are investigating what is definitely a driver issue.
Comment 6 Gregg Casillo 2009-11-24 20:26:31 UTC
I was having the same problems with xorg-server-1.7.1, nvidia-drivers-190.42-r3 (and -r2), and compositing in the most current KDE-4. I had initially downgraded to xorg-server-1.6.5-r1 and nvidia-drivers-185.18.36 to regain working desktop effects, but after reading this report, I realized I had UseEvents "True" set. So, I just set that to "False" and updated everything (I run ACCEPT_KEYWORDS="~amd64"), and compositing works again!

Thanks for the bug report. I've been scratching my head over this the last few days. I'd be curious to know what UseEvents does to cause this issue.
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2010-01-04 08:39:08 UTC
Don't have the thread off hand but before the holiday's I confirmed that this is an issue with KDE-4.x and nvidia-drivers-190.x. I believe 190.53 fixed the issue but I'm not sure. Please double check and report back.