Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-28-03, 09:51 AM   #1
drhougen
Registered User
 
Join Date: Sep 2003
Location: Colorado
Posts: 2
Default X crashes using 4363 or 4496 on GeForce4 MX 420

Hi,

I started by downloading and in stalling the 4496 driver to replace the nv driver that came with my RH9 installation (because nv doesn't support OpenGL).

Then I installed gtk+-2.2.4 and gtkglext-1.0.4. Most of the demos worked fine, but the "pixmap" demo exitted when the X display shut down and restarted, putting me back at the login screen. Since I'm trying to use OpenGL to display an image, this is not a good thing.

The maintainer of gtkglext (Naofumi) told me the problem was probably with NVIDIA driver 4496 and suggested reverting to 4363 (which solved the same problem for him).

I followed his advice and was able to run the "pixmap" demo. Unfortunately, as soon as I started emacs, following the pixmap demo, the 4363 driver crashed.

Here is the dump from the "pixmap" demo, right before it crashed using the 4496 driver:

OpenGL extension version - 1.3

OpenGL visual configurations :

gdk_gl_config_is_rgba (glconfig) = TRUE
gdk_gl_config_is_double_buffered (glconfig) = FALSE
gdk_gl_config_is_stereo (glconfig) = FALSE
gdk_gl_config_has_alpha (glconfig) = FALSE
gdk_gl_config_has_depth_buffer (glconfig) = TRUE
gdk_gl_config_has_stencil_buffer (glconfig) = TRUE
gdk_gl_config_has_accum_buffer (glconfig) = TRUE

GDK_GL_USE_GL = TRUE
GDK_GL_BUFFER_SIZE = 32
GDK_GL_LEVEL = 0
GDK_GL_RGBA = TRUE
GDK_GL_DOUBLEBUFFER = FALSE
GDK_GL_STEREO = FALSE
GDK_GL_AUX_BUFFERS = 0
GDK_GL_RED_SIZE = 8
GDK_GL_GREEN_SIZE = 8
GDK_GL_BLUE_SIZE = 8
GDK_GL_ALPHA_SIZE = 0
GDK_GL_DEPTH_SIZE = 24
GDK_GL_STENCIL_SIZE = 8
GDK_GL_ACCUM_RED_SIZE = 16
GDK_GL_ACCUM_GREEN_SIZE = 16
GDK_GL_ACCUM_BLUE_SIZE = 16
GDK_GL_ACCUM_ALPHA_SIZE = 16

The OpenGL rendering context is created
The application 'pixmap' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.

Of course I didn't kill/destroy the application. It killed X! Or, rather, the nvidia driver died!

Darrell
drhougen is offline   Reply With Quote
Old 09-29-03, 07:44 AM   #2
Allen Barnett
Registered User
 
Join Date: Sep 2003
Posts: 1
Default

For what it's worth, this short program crashes the X server with 4496 on my Ti-4400 (up2date RH 7.3, XFree86 4.2.1). The X server dies when glXDestroyContext is called. The program works OK with 4363.

/*
* Causes X server reset with 4496 driver.
*/
#include <stdio.h>
#include <GL/glx.h>

const int attrib[] = {
GLX_RED_SIZE, 1,
GLX_GREEN_SIZE, 1,
GLX_BLUE_SIZE, 1,
GLX_ALPHA_SIZE, 1,
None
};

int main ( int argc, char* argv[] )
{
int nelements;

Display* display = XOpenDisplay( NULL );
int screen_num = DefaultScreen( display );
Window root = RootWindow( display, screen_num );
GLXFBConfig* config = glXChooseFBConfig( display, screen_num, attrib, &nelements );
if ( config == 0 ) {
fprintf( stderr, "Found no matching FB configs\n" );
XCloseDisplay( display );
return 1;
}
{
Pixmap pixmap = XCreatePixmap( display, root, 32, 32, 32 );
GLXPixmap glx_pixmap = glXCreatePixmap( display, config[0], pixmap, 0 );
GLXContext context = glXCreateNewContext( display, config[0], GLX_RGBA_TYPE,
NULL, False );
glXMakeContextCurrent( display, glx_pixmap, glx_pixmap, context );

glClear( GL_COLOR_BUFFER_BIT );

glXDestroyContext( display, context );
XCloseDisplay( display );
}

return 0;
}
Allen Barnett is offline   Reply With Quote
Old 10-27-03, 12:31 PM   #3
mbolen
Registered User
 
Join Date: Oct 2003
Posts: 1
Default

I've run in to this problem before. Setting the current context to None/NULL before destroying it will avoid the problem.
mbolen is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver support for GeForce4 420 Go and Windows 98? h_happy NVIDIA Windows Graphics Drivers 12 08-25-02 11:19 PM

All times are GMT -5. The time now is 07:23 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.