PDA

View Full Version : Seg Violation calling glGenTextures() - Heavy Gear 2 (Linux)


lee_anthony_web
04-07-03, 06:50 PM
Hi All,

Have been battling with getting HG2 (Linux) running in LAN games, and have traced a possible fault with glGenTextures in libGL.so.1.0.4349.

Problem: Whenever any player (other than the host system) connects to a LAN game HG2 raises a Segmentation Fault when calling glGenTextures(). This is then passed to the SDL library somehow which kills the program completely.

So far I have tried using nvidia drivers from version 3123 up to 4349 on two different machines with the same reproducable result.

Systems are:
Intel 1Ghz CPU
300 Meg SDRAM
Geforce4 64Meg
Red Hat 7.3
NVdriver ver 1.0.4349

Intel 1.5Ghz CPU
256 Meg SDRAM
Riva TNT2 32Meg
Red Hat 7.3
NVDriver ver 1.0.4349

In single player HG2 performs wonderfully with no faults at all, fault occurs only when players connect to a LAN game.

I realise that this most likely is not a fault with nvidia drivers and that it is probably a fault in the way HG2 calls glGenTextures().

I know it's an old game too...any help would be appreciated. Thanks

(I can post debugging logs if anyone is interested in helping)

Lee

Andy Mecham
04-07-03, 07:25 PM
You just dragged up about 50 different nightmares that I thought I had safely buried. I was hoping NEVER to see HG2 ever, ever again... ;)

This sounds like it's possibly HG2 at fault. Are you on the latest patch? IIRC, it was 1.32b, or somesuch...

--andy

lee_anthony_web
04-07-03, 07:45 PM
Yeah... I know, but I have a bit of a soft spot for HG2 and was looking forward to a bit of a LAN battle (found the anet server to make it all happen...)

HG2 Linux versions I have tried are:
ver 0.99 (gdb shows SIGSEGV in function glGenTextures())
ver 1.0b (gdb shows SIGSEGV in function ??)

As far as I know there are only two patches for HG2 Linux 1.0a and 1.0b. At the moment I am having more success tracing the fault with version 0.99. Version 1.0b refuses to tell me the location of the fault (hence reporting the function as ??)

Any Ideas?

Lee

lee_anthony_web
04-08-03, 09:12 PM
Further to my last post:

If I run HG2 Linux with software open GL rendering via Mesa eveything functions properly. I only get problems with the nvidia drivers.

I also tried driver release 2802 with the same results.

Is there any known way of getting harware graphics acceleration out of an nvidia card without using nvidia's drivers (for linux)?

I do like the drivers (love them infact), but there is obviously an implementation difference between mesa and nvidia for glGenTextures() that is upsetting HG2


Cheers
Lee