PDA

View Full Version : Strange behaviour (freeze) with OpenGL and Linux NVIDIA driver


Journy
04-24-03, 02:35 AM
Hallo,

I am confronted with a very strange behaviour when using the newest nvidia driver for Linux.

With 4x AGP rate (AGPGART) my whole System freezes with blinking caps lock and scroll lock LEDs on my keyboard. As you migth expect, keyboard doesn't respond anymore and I cannot switch to another console. Even remote login with ssh doesn't work so I can assume that it is a hard freeze.

This happens, if I resize an OpenGL window (is a part of a game I am writing). When resizing, the following GL Actions are performed:

GLfloat ratio = ( GLfloat ) w / ( GLfloat ) h;
glViewport (0, 0, (GLsizei) w, (GLsizei) h);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
gluPerspective( 45.0f, ratio, 10.0f, 300.0f );
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();

This problem first occurred when I added the following rendering code:

// prepare new projection and modelview matrice
glMatrixMode (GL_PROJECTION);
glPushMatrix () ;
glLoadIdentity();
glOrtho (0.0, w, 0.0, h, -1.0, 1.0);
glMatrixMode (GL_MODELVIEW);
glLoadIdentity();

[...] // rendering code

// restore old projection matrice
glMatrixMode (GL_PROJECTION);
glPopMatrix () ;
glMatrixMode (GL_MODELVIEW);

Back to my problem:
This works well for first resize (as far as I remember), but further resizes will lead to the freeze.

I tried to use NVAGP with the effect, that AGP was completly disabled. With disabled AGP, the system doesn't freeze, but I'll get unpredictable behaviour. Sometimes I get a segmentation fault in libGL..., once the server application for my game crashed (although it never crashed before) and at very best, the X-Server could not be restarted anymore and I couldn't log into console (init process respawned to fast so it was disabled ...).

I also tried append="mem=nopentium" in lilo with same effects.

The same codes works perfect on another Linux Box (with same NVIDIA driver) and the Windows port (on same machine where the freeze occurs).

My "hanging" system:
- AMD Athlon XP 1700+
- GeForce IV Ti4200
- SIS Chipset on Mainboard (SIS735 ?)
- 3/4 Gigabyte DDR RAM (266 FSB)
- Debian/testing Linux
- custom built of 2.4.20 Vanilla with AGPGART as module

As I mentioned, I tried AGPGART and AGP disabled. I have not tested to downgrade the driver.

Thx for every advise ;)

Grüssle, Journy

Xeno
04-24-03, 03:54 AM
the only thing i can tell you:
the blinking caps lock and scroll lock LEDs indicates a Kernel-Panic.


but i have many problems with that damn SiS chipset and AGP too.

Journy
04-24-03, 04:16 AM
Hi,

thx for your reply.
Do you have AGP running and if yes, NVAGP or AGPGART ?

I just found out, that a fullscreen request in my code (using GTK) eventually not suitable and could be one part to my problem.

But although removing this request, I get segmentation faults in libGL and I cannot backtrace since the backtrace seems to be broken (although compiled with -g).

Xeno
04-24-03, 05:24 AM
To fix my crash, i had to disable AGP.
Sorry, but I don't know how to solve your problem ... :(

dunch
03-25-04, 05:40 PM
With 4x AGP rate (AGPGART) my whole System freezes with blinking caps lock and scroll lock LEDs on my keyboard. As you migth expect, keyboard doesn't respond anymore and I cannot switch to another console. Even remote login with ssh doesn't work so I can assume that it is a hard freeze.


Did this problem ever get resolved? I'm getting exactly the same problem.