Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150259 - compiz-0.2.0 locks up (and X) when opengl fullscreen games are run.
Summary: compiz-0.2.0 locks up (and X) when opengl fullscreen games are run.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 05:58 UTC by Greg Watson (linuxkrn)
Modified: 2007-08-13 23:38 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson (linuxkrn) 2006-10-06 05:58:43 UTC
When launching a full screen game, such as UT2004 or NWN, compiz hangs and all input on the system is ignored.  (keyboard doesn't work either, so no ctrl-alt-backspace).

However, if I ssh into my box from another system, I can kill compiz and everything is fine.

One other helpful bit is that both NWN and UT2004 have a splash screen they throw up, not sure if that has anything to do with it or not.

Info:
[I--] [ ~] x11-wm/compiz-0.2.0 (0)
[I--] [ ~] x11-drivers/nvidia-drivers-1.0.9625 (0)
[I--] [ ~] x11-base/xorg-x11-7.1 (0)
[I--] [ ~] x11-base/xorg-server-1.1.1-r1 (0)
[I--] [ ~] gnome-base/gnome-2.16.0 (2.0)

Configured in AIGLX mode.

Compiz Plugins: gconf, decoration, wobbly, fade, minimize, cube, rotate, scale, move, resize, place, switcher, water.

launched by: compiz-nvidia --replace --use-cow gconf

Portage 2.1.2_pre2-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 05 Oct 2006 18:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.0-r2, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa arts asf audiofile bash-completion berkdb bitmap-fonts browserplugin cairo cdr cli crypt cups curl dbus divx4linux dlloader dri dts dv dvb dvd dvdr dxr3 eds elibc_glibc emboss encode esd fam ffmpeg firefox flac fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 hal idea imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java jpeg kernel_linux lcms ldap libg++ linguas_en live lzo mad matroska mikmod mjpeg mmx mng mp3 mpeg mysql nautilus ncurses nptl nptlonly nvidia ogg opengl oss pam pcre perl pic png ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc sdl session smp sndfile speex spell spl sse sse2 ssl svg tcpd theora tiff timidity truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2 video_cards_none video_cards_nvidia vidix vorbis widescreen win32codecs wmf xanim xinerama xml xorg xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Geert Vanhaute 2006-10-15 01:23:00 UTC
AIGLX isn't necessary for nVidia.
See http://wiki.gentoo-xeffects.org/NVidia

Do you launch the compiz-nvidia script?
Is compiz using openGL of nVidia? (check with ldd `which compiz`)
Comment 2 Greg Watson (linuxkrn) 2006-10-15 19:16:53 UTC
Yes, compiz was linked to the correct nvidia libs.  using compiz-nvidia to start as well.

Further testing shows it wasn't limited to games.  xrandar also locks up the system on the 2nd or 3rd resolution change.

I've also tried this on beryl with same problem.  
Comment 3 David Carlos Manuelda 2006-12-19 04:18:27 UTC
With beryl, my comp hangs too, but only sometime with quake4. If it doesn't hang, my screen is very ugly (with 'pieces' of quake4 deformed in background.

Anyway, I disable beryl to play (and to get a bit more fps), but this bug still appears. (by using kwin inside beryl).
Comment 4 Greg Watson (linuxkrn) 2006-12-19 13:58:52 UTC
Still exists with beryl (svn version 0.1.3)
Comment 5 Hanno Böck gentoo-dev 2007-04-24 02:02:23 UTC
Still an issue with up-to-date system?
Comment 6 Jim Faulkner 2007-06-21 01:34:15 UTC
Yes, this problem still exists with beryl and up-to-date systems.  I've seen the same behavior on both my own 64-bit gentoo system and a friends 32-bit system, using the 90 and 100 series nvidia drivers, with beryl 0.2.1.  In my experience this occurs with any fullscreen opengl application, I've personally seen it with fuhquake, quake3, nexuiz, openarena, and aliens vs predator.  The symptoms are any or a combination of:
the fullscreen app causes a GUI lock up and/or
a black screen
Unable to switch to a virtual console (ctrl-alt-f1), and/or
when switching to a virtual console, the DFP screen loses sync and goes into sleep mode
the app switches back to beryl, which is completely locked up.

This seems to mostly occur during switches in video mode, but not always.  The problem is not consistent, sometimes you'll see it once in a few hours of playing, sometimes games will cause the problem almost immediately.

If you're running beryl and the nvidia drivers, you should be able to reproduce the problem fairly quickly by running any of the above applications and trying to switch video modes and enter and exit levels a lot.  Having gnome-screensaver running might help reproduce the problem, I'm not sure.

The system *is* recoverable, but only by logging in remotely and killing X.

Please let me know if you have any questions.  Here's my emerge --info:
Portage 2.1.2.7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21.4 x86_64)
=================================================================
System uname: 2.6.21.4 x86_64 Intel(R) Pentium(R) D CPU 3.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 17 Jun 2007 14:30:10 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/tmp/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-overlay"
SYNC="rsync://jove.eng.yale.edu/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb bitmap-fonts branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fam firefox flac fortran gdbm gif glitz gnome gpm gstreamer gtk hal iconv ieee1394 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility kerberos ldap libg++ libnotify logrotate mad midi mikmod mmx mp3 mpeg mudflap mysql ncurses nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection rtc samba sdl session spell spl sse sse2 ssl svg tiff truetype truetype-fonts type1 type1-fonts unicode usb vorbis xine xinerama xml xorg xv xvid xvmc 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Hanno Böck gentoo-dev 2007-08-13 21:29:06 UTC
From your description I read that it occurs on nvidia binary drivers. I don't own an nvidia, but most probably you're at the wrong adress. Please complain at nvidia.

(or wish the nouveau-team the very best that they'll soon get something worth using)
Comment 8 Ferris McCormick (RETIRED) gentoo-dev 2007-08-13 23:38:26 UTC
It's hard to tell from all this --- do you still see the problem if you upgrade to nvidia-drivers-100.14.09?  I've had it on a couple amd64 systems with no problems for a couple weeks. Although I should note that I don't run any full screen games.