[GtkGLExt] solve the gtkglext(mm) segmentation fault crashes when resizing window for nvidia video card



Here is a way to solve the problem that your gtkglext(mm) application
crashes when resizing and closing the window, if your video card is
nvidia. Simply to say: install the non-free nvidia video card driver
from Nvidia company. Details steps are:
(created by mlaks post harvard edu and modified by me)

1. remove all the packages with name "nvidia-****", for they might be
conflict with the driver we will install, such as:
nvidia-glx - NVIDIA binary Xorg driver
nvidia-glx-dev - NVIDIA binary Xorg driver development files
nvidia-glx-ia32 - NVIDIA binary XFree86 4.x driver
nvidia-glx-legacy-96xx - NVIDIA binary Xorg driver (96xx legacy version)
nvidia-glx-legacy-96xx-dev - NVIDIA Xorg driver development files
(96xx legacy version)
nvidia-glx-legacy-96xx-ia32 - NVIDIA binary Xorg driver (96xx legacy version)
nvidia-kernel-2.6-amd64 - NVIDIA binary kernel module for 2.6 series
compiled for amd64
nvidia-kernel-2.6-openvz-amd64 - NVIDIA binary kernel module for 2.6
series compiled for openvz-amd64
nvidia-kernel-2.6.26-1-amd64 - NVIDIA binary kernel module for Linux
2.6.26-1-amd64
nvidia-kernel-2.6.26-1-openvz-amd64 - NVIDIA binary kernel module for
Linux 2.6.26-1-openvz-amd64
nvidia-kernel-2.6.26-2-amd64 - NVIDIA binary kernel module for Linux
2.6.26-2-amd64
nvidia-kernel-2.6.26-2-openvz-amd64 - NVIDIA binary kernel module for
Linux 2.6.26-2-openvz-amd64
nvidia-kernel-legacy-96xx-2.6-amd64 - NVIDIA binary kernel module for
2.6 series compiled for amd64
nvidia-kernel-legacy-96xx-2.6-openvz-amd64 - NVIDIA binary kernel
module for 2.6 series compiled for openvz amd64
nvidia-kernel-legacy-96xx-2.6.26-1-amd64 - NVIDIA binary kernel module
for Linux 2.6.26-1-amd64 (legacy version)
nvidia-kernel-legacy-96xx-2.6.26-1-openvz-amd64 - NVIDIA binary kernel
module for Linux 2.6.26-1-openvz-amd64 (legacy version)
nvidia-kernel-legacy-96xx-2.6.26-2-amd64 - NVIDIA binary kernel module
for Linux 2.6.26-2-amd64 (legacy version)
nvidia-kernel-legacy-96xx-2.6.26-2-openvz-amd64 - NVIDIA binary kernel
module for Linux 2.6.26-2-openvz-amd64 (legacy version)
nvidia-kernel-legacy-96xx-source - NVIDIA binary kernel module source
(96xx legacy version)
nvidia-kernel-source - NVIDIA binary kernel module source
nvidia-cg-toolkit - NVIDIA Cg Toolkit Installer
nvidia-kernel-common - NVIDIA binary kernel module common files
nvidia-settings - Tool of configuring the NVIDIA graphics driver


3. install the linux-headers packages that is appropriate to your kernel.
-------------------
mlaks Rashi:~$ dpkg -l|grep linux-headers|grep 2.6.26
ii  linux-headers-2.6-amd64                     2.6.26+17
      Header files for Linux 2.6-amd64
ii  linux-headers-2.6.26-1-amd64                2.6.26-13
      Header files for Linux 2.6.26-1-amd64
ii  linux-headers-2.6.26-1-common               2.6.26-13
      Common header files for Linux 2.6.26-1
-----------------------

4. make a symlink for the headers
-----------------------------------------
mlaks Rashi:~$ ls -l /usr/src/linux
lrwxrwxrwx 1 root src 29 2008-12-11 00:56 /usr/src/linux ->
linux-headers-2.6.26-1-amd64/
--------------------------------------

5. download the nvidia drivers for your card from nvidia
driver download page, it looks something like this:
 NVIDIA-Linux-x86_64-173.14.15-pkg2.run

6. check the gcc of your machine,  install it if not exists,
for example it is /usr/bin/gcc-4.1

7. shut down X and you run as root to exe this command
-------------------------
export CC=/usr/bin/gcc-4.1;./NVIDIA-Linux-x86_64-173.14.15-pkg2.run
-------------------------

8. complete the process and restart the machine to X window.

9. if you have installed mesa on your machine, you should know that
the driver we installed just now also includes opengl implementations,
so relative shared library files like /usr/lib/libGL***.so have been
replaced by the new driver. In fact, that's the right cause of our
installation of the non-free driver, for mesa's opengl implementation
has a bug which caused the crash.(Just a guess, might be false)

-- 
我的操作系統是Gnu/Linux Debian/gNewSense Gnome Mozilla Gmail/Evolution
Gtkmm/Gtkglextmm Scim Totem Pidgin.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]