Forums » Linux

Nvidia Segfault

Jul 10, 2003 Woofles link
Alot of segfaults I am seeing, well I am using an Nvidia TNT2 on Gentoo Linux.

Currently after I run ./vendetta in ~/.ven*/ I get a segfault ( yes it is the latest I downloaded it last night )

Here is what is in errors.log
[Thu Jul 10 08:15:21 2003] Found driver: "OpenGL Reference GKGL driver". Type $
[Thu Jul 10 08:15:21 2003] Instantiate address: 0x400480b0
[Thu Jul 10 08:15:21 2003] Found driver: "Open Sound System driver". Type 1, V$
[Thu Jul 10 08:15:21 2003] Instantiate address: 0x4064dd40
Found 0 joystick(s)
osssound: ospace info: fragstotal=8, fragsize=8192
osssound: dspbuf = 0x40fe3000
OSS sound initialized: 44100Hz, 16bit stereo, 371ms buffer

If it matters I am running ALSA as a sound driver, and now OSS.

Here is the contents of openglinfo.log
[Thu Jul 10 08:15:21 2003]
Vendor: NVIDIA Corporation
Renderer: RIVA TNT2/PCI/SSE2
Version: 1.4.0 NVIDIA 43.49
Extensions: GL_ARB_imaging GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_texture_env_add GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_bu$
GLU Version: 1.3
GLU Extensions: GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess
glx Extensions: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_ARB_get_proc_address
glx Version: 1.3
glx server Vendor: NVIDIA Corporation
glx server Version: 1.3
glx server Extensions: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer
glx client Vendor: NVIDIA Corporation
glx client Version: 1.3
glx client Extensions: GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context GLX_SGI_video_sync GLX_SGIX_swap$
GL_MAX_LIGHTS: 8
GL_MAX_CLIP_PLANES: 6
GL_MAX_MODELVIEW_STACK_DEPTH: 32
GL_MAX_PROJECTION_STACK_DEPTH: 4
GL_MAX_TEXTURE_STACK_DEPTH: 10
GL_SUBPIXEL_BITS: 4
GL_MAX_TEXTURE_SIZE: 2048
GL_MAX_PIXEL_MAP_TABLE: 65536
GL_MAX_NAME_STACK_DEPTH: 128
GL_MAX_LIST_NESTING: 64
GL_MAX_EVAL_ORDER: 8
GL_MAX_VIEWPORT_DIMS: 4096
GL_MAX_ATTRIB_STACK_DEPTH: 16
GL_AUX_BUFFERS: 0
GL_RGBA_MODE: 1
GL_INDEX_MODE: 0
GL_DOUBLEBUFFER: 1
GL_STEREO: 0
GL_POINT_SIZE_RANGE: 1.000000 - 63.375000
GL_POINT_SIZE_GRANULARITY: 0.125000
GL_LINE_WIDTH_RANGE: 0.500000 - 10.000000
GL_LINE_WIDTH_GRANULARITY: 0.125000
GL_MAX_TEXTURE_UNITS: 2
GL_MAX_ELEMENTS_VERTICES: 4096
GL_MAX_ELEMENTS_INDICES: 4096
GL_POINT_SIZE_MIN: 0.000000
GL_POINT_SIZE_MAX: 63.375000
GL_POINT_FADE_THRESHOLD_SIZE: 1.000000

openglerr.log was empty so I didn't incldue it... I am also using the default config.ini :
[refgl]
illummap=1
envmap=1
bumpmap=1
tc=0
minfilter=9987
maxfilter=9729
specular=1
windowmode=0
textureresolution=1
texturequality=32
gamma=8
def_freq=0
tfactor_hack=0
doshaders=1
dovertexbuffers=1
do_compiled_vertex_array=1

P.S I have also tried making a new user account with no groups... didn't help
I've really got no clue as to why it would be doing this, since I am running Gentoo this is the latest drivers\software ... any comments?
Jul 10, 2003 randomize link
RTFM

EDIT: do a thorough read through news section, PLEASE, FFS, READ IT GODDAMNIT!
Jul 10, 2003 The Kid link
"Linux and MacOS X users, if you experience crashes, especially with Nvidia hardware, try the following:

Locate and edit your config.ini (in the vendetta.app on OS X). Find the [refgl] section of the config file and set the "doshaders" and "dovertexbuffers" parameters to zero. The game will need to have been run once and exited cleanly (without crashing) for these parameters to have been added by 3.2.7. The parameters may also be added manually. Toggling these settings will disable some of the advanced graphics features, added in 3.2.6, which are enabled by default. As far as we can tell, some people may be experiencing crashes with these features, possibly due to a Nvidia driver bug. More debugging is required, but hopefully people will be able to get the game to function, for the moment, by using this workaround.
If a config.ini file does not exist, you can create it as a text file and add these three lines:

[refgl]
doshaders=0
dovertexbuffers=0" -Vendetta News Page
Jul 14, 2003 Philmannn Dark link
May I suggest that you check the hardware and set these options automatically?

This script should do:

lspci |grep -i nvidia

On my machine, this prints:

01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX440] (rev a3)

Another option might be "lsmod" and search for "nvidia" (lspci might not be available on every system which lsmod probably is).

This way, you could work around this problem without every user having to notice that they have to change their settings :-)

You could even check the version of the nvidia driver:

strings -8 /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.o |grep "nvidia id:"

gives:

nvidia id: NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4363 Sat Apr 19 17:46:46 PDT 2003

The number after the "1.0" is the version of the driver.