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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-31-04, 07:00 AM   #1
poochiereds
Registered User
 
Join Date: Jul 2004
Posts: 5
Default OpenGL apps hanging on exit

I just replaced my ATI 9800 with a new GeForce 6800. OpenGL games seem to work pretty well, but I have a problem when exiting them. They hang when exiting, prior to switching the video mode back to the original desktop video mode. They also consume as much CPU as they can grab. When I strace the process, I simply see the following repeated over and over:

sched_yield() = 0

Since I'm often a lower res at this point, I end up having to kill the application and restart X to reset the resolution (ctrl alt +/- doesn't work here).

This seems to have started just after switching out my video card, and is happening consistently across several different games (including the ThinkTanks demo, UT2004, and Neverwinter Nights).

Some details:

Hardware:
PNY 6800GT 256MB card
Gigabyte Kt Triton KT600 motherboard
Athlon 2600+ (266MHz FSB)

Software:
kernel 2.6.7 (built from kernel.org tarball)
6106 binary nvidia driver
Debian sid (let me know if you need package versions)

Video BIOS: 05.40.02.15.01

% cat /proc/driver/nvidia/agp/status
Status: Enabled
Driver: AGPGART
AGP Rate: 8x
Fast Writes: Disabled
SBA: Enabled

I'm also uploading a copy of my XF86Config-4 file as well as a logverbose 5 X logfile. Let me know if there is other info that would be helpful to have.

Any help is greatly appreciated!
Attached Files
File Type: txt XF86Config-4.txt (6.3 KB, 141 views)
File Type: txt XFree86.0.log.txt (35.9 KB, 148 views)
poochiereds is offline   Reply With Quote
Old 07-31-04, 08:37 AM   #2
poochiereds
Registered User
 
Join Date: Jul 2004
Posts: 5
Default Re: OpenGL apps hanging on exit

A little more info. I built the opengl-sdl program that comes as a sample in programming linux games. I've attached the source to it here. This program has the same issue as the others I've tried. I ran it under the debugger and got a stack trace:

#0 0xffffe410 in __kernel_vsyscall ()
#1 0x4025ae6c in sched_yield () from /lib/tls/i686/cmov/libc.so.6
#2 0x4015cc91 in _nv000028gl () from /usr/lib/libGL.so.1
#3 0x407d4762 in _nv001156gl () from /usr/lib/libGLcore.so.1
#4 0x08068a48 in ?? ()
#5 0x08097cc8 in ?? ()
#6 0x08097cf8 in ?? ()
#7 0x08097cc8 in ?? ()
#8 0x00000000 in ?? ()
#9 0x40158b77 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#10 0x41502040 in ?? ()
#11 0x08068b24 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000001 in ?? ()
#14 0x0804c130 in ?? ()
#15 0x4015b5fb in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#16 0x08068b24 in ?? ()
#17 0x4008de9c in ?? () from /usr/lib/libSDL-1.2.so.0
#18 0x0804a318 in ?? ()
#19 0x40091e60 in _copy_row () from /usr/lib/libSDL-1.2.so.0
#20 0xbffffa88 in ?? ()
#21 0x00000000 in ?? ()
#22 0x0804c130 in ?? ()
#23 0x4015585e in glXMakeCurrent () from /usr/lib/libGL.so.1
#24 0x0804c130 in ?? ()
#25 0x00000000 in ?? ()
#26 0x00000000 in ?? ()
#27 0x00000000 in ?? ()
#28 0x4015c198 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#29 0x40064901 in X11_GL_Shutdown () from /usr/lib/libSDL-1.2.so.0
Previous frame inner to this frame (corrupt stack?)

I've attached the source to opengl-sdl.c to this (copyright John Hall and no starch press).

Since this seems to be somewhat related to libc6, the library above is from package:

ii libc6-i686 2.3.2.ds1-13

Again, any help is appreciated!
Attached Files
File Type: txt opengl-sdl.c.txt (1.6 KB, 159 views)

Last edited by poochiereds; 07-31-04 at 08:53 AM.
poochiereds is offline   Reply With Quote
Old 07-31-04, 09:08 AM   #3
poochiereds
Registered User
 
Join Date: Jul 2004
Posts: 5
Default Re: OpenGL apps hanging on exit

Also tried running this with the debug libc:

env LD_LIBRARY_PATH=/usr/lib/debug ./opengl-sdl

And then forced a core, and got a stack trace. It looks a little different, as there doesn't seem to be the kernel syscall in slot 0 now, but it still hangs just like the one with the i686 optimized libc.

#0 0x40297457 in sched_yield () at regexec.c:3982
#1 0x4019dc91 in _nv000028gl () from /usr/lib/libGL.so.1
#2 0x4080d762 in _nv001156gl () from /usr/lib/libGLcore.so.1
#3 0x08068b20 in ?? ()
#4 0x08097d88 in ?? ()
#5 0x08097db8 in ?? ()
#6 0x08097d88 in ?? ()
#7 0x00000000 in ?? ()
#8 0x40199b77 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#9 0x4153b040 in ?? ()
#10 0x08068bfc in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000001 in ?? ()
#13 0x0804c208 in ?? ()
#14 0x4019c5fb in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#15 0x08068bfc in ?? ()
#16 0x4008de9c in ?? () from /usr/lib/libSDL-1.2.so.0
#17 0x0804a3e8 in ?? ()
#18 0x40091e60 in _copy_row () from /usr/lib/libSDL-1.2.so.0
#19 0xbffffaa8 in ?? ()
#20 0x00000000 in ?? ()
#21 0x0804c208 in ?? ()
#22 0x4019685e in glXMakeCurrent () from /usr/lib/libGL.so.1
---Type <return> to continue, or q <return> to quit---
#23 0x0804c208 in ?? ()
#24 0x00000000 in ?? ()
#25 0x00000000 in ?? ()
#26 0x00000000 in ?? ()
#27 0x4019d198 in glXChannelRectSyncSGIX () from /usr/lib/libGL.so.1
#28 0x40064901 in X11_GL_Shutdown () from /usr/lib/libSDL-1.2.so.0
poochiereds is offline   Reply With Quote
Old 07-31-04, 09:19 AM   #4
poochiereds
Registered User
 
Join Date: Jul 2004
Posts: 5
Default Re: OpenGL apps hanging on exit

For yucks, here's my glxinfo in case it's helpful:

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx 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_NV_swap_group, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_NV_float_buffer, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: unknown board/AGP/SSE/3DNOW!
OpenGL version string: 1.5.1 NVIDIA 61.06
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_fragment_shader, GL_ARB_imaging,
GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_occlusion_query,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_shader_objects, GL_ARB_shading_language_100,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
GL_ATI_draw_buffers, GL_ATI_pixel_format_float, GL_ATI_texture_float,
GL_ATI_texture_mirror_once, GL_S3_s3tc, GL_EXT_texture_env_add,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_compiled_vertex_array,
GL_EXT_Cg_shader, GL_EXT_depth_bounds_test, GL_EXT_draw_range_elements,
GL_EXT_fog_coord, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
GL_EXT_pixel_buffer_object, GL_EXT_point_parameters,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_texture3D,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
GL_EXT_texture_object, GL_EXT_vertex_array, GL_HP_occlusion_test,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_KTX_buffer_region, GL_NV_blend_square, GL_NV_centroid_sample,
GL_NV_copy_depth_to_color, GL_NV_depth_clamp, GL_NV_fence,
GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program,
GL_NV_fragment_program_option, GL_NV_fragment_program2, GL_NV_half_float,
GL_NV_light_max_exponent, GL_NV_multisample_filter_hint,
GL_NV_occlusion_query, GL_NV_packed_depth_stencil, GL_NV_pixel_data_range,
GL_NV_point_sprite, GL_NV_primitive_restart, GL_NV_register_combiners,
GL_NV_register_combiners2, GL_NV_texgen_reflection,
GL_NV_texture_compression_vtc, GL_NV_texture_env_combine4,
GL_NV_texture_expand_normal, GL_NV_texture_rectangle,
GL_NV_texture_shader, GL_NV_texture_shader2, GL_NV_texture_shader3,
GL_NV_vertex_array_range, GL_NV_vertex_array_range2, GL_NV_vertex_program,
GL_NV_vertex_program1_1, GL_NV_vertex_program2,
GL_NV_vertex_program2_option, GL_NV_vertex_program3,
GL_NVX_conditional_render, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,
GL_SGIX_depth_texture, GL_SGIX_shadow, GL_SUN_slice_accum
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 0 0 None
0x23 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 0 0 24 8 16 16 16 16 0 0 None
0x25 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r y . 8 8 8 0 0 16 0 16 16 16 16 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 0 0 None
0x28 24 tc 0 32 0 r . . 8 8 8 0 0 16 0 16 16 16 16 0 0 None
0x29 24 tc 0 32 0 r . . 8 8 8 8 0 16 0 16 16 16 16 0 0 None
0x2a 24 tc 0 32 0 r y . 8 8 8 0 0 0 0 16 16 16 16 0 0 None
0x2b 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 None
0x2c 24 tc 0 32 0 r . . 8 8 8 0 0 0 0 16 16 16 16 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 None
0x2e 24 tc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 2 1 Ncon
0x2f 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 2 1 Ncon
0x30 24 tc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 4 1 Ncon
0x31 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 4 1 Ncon
0x32 24 tc 0 32 0 r y . 8 8 8 0 0 16 0 16 16 16 16 2 1 Ncon
0x33 24 tc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 2 1 Ncon
0x34 24 tc 0 32 0 r y . 8 8 8 0 0 16 0 16 16 16 16 4 1 Ncon
0x35 24 tc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 4 1 Ncon
0x36 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 None
0x37 24 dc 0 32 0 r . . 8 8 8 0 0 24 8 16 16 16 16 0 0 None
0x38 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 None
0x39 24 dc 0 32 0 r y . 8 8 8 0 0 16 0 16 16 16 16 0 0 None
0x3a 24 dc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 0 0 None
0x3b 24 dc 0 32 0 r . . 8 8 8 0 0 16 0 16 16 16 16 0 0 None
0x3c 24 dc 0 32 0 r . . 8 8 8 8 0 16 0 16 16 16 16 0 0 None
0x3d 24 dc 0 32 0 r y . 8 8 8 0 0 0 0 16 16 16 16 0 0 None
0x3e 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 None
0x3f 24 dc 0 32 0 r . . 8 8 8 0 0 0 0 16 16 16 16 0 0 None
0x40 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 None
0x41 24 dc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 2 1 Ncon
0x42 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 2 1 Ncon
0x43 24 dc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 4 1 Ncon
0x44 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 4 1 Ncon
0x45 24 dc 0 32 0 r y . 8 8 8 0 0 16 0 16 16 16 16 2 1 Ncon
0x46 24 dc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 2 1 Ncon
0x47 24 dc 0 32 0 r y . 8 8 8 0 0 16 0 16 16 16 16 4 1 Ncon
0x48 24 dc 0 32 0 r y . 8 8 8 8 0 16 0 16 16 16 16 4 1 Ncon
poochiereds is offline   Reply With Quote
Old 08-05-04, 11:12 AM   #5
poochiereds
Registered User
 
Join Date: Jul 2004
Posts: 5
Default Re: OpenGL apps hanging on exit

Oddly enough, I seem to be having similar problems under windows. Essentially OpenGL apps under both windows and linux are hanging when I exit them, but directX apps under windows seem to not have this problem.

I also put the card in my wife's PC (a dell P3) and it did not have the same problem. At this point, I'm thinking it's some strange issue between the card and the motherboard (or maybe one of my PCI cards). I'm tending to think this is a rather low-level problem since it happens across OS's.

I'm stumped, is anyone else seeing a similar problem with a GeForce 6800 card and a KT600 motherboard?

Last edited by poochiereds; 08-06-04 at 07:13 AM.
poochiereds is offline   Reply With Quote
Old 08-14-04, 02:08 AM   #6
neolith
Registered User
 
Join Date: Aug 2004
Posts: 3
Unhappy Re: OpenGL apps hanging on exit

I have exactly the same problem! Whenever a OGL app restarts itself or wants to exit to desktop - freeze. I too have the MSI KT6 Delta and a MSI GF 6800. And I am pretty angry by now...

Last edited by neolith; 08-14-04 at 02:18 AM.
neolith is offline   Reply With Quote
Old 08-14-04, 01:03 PM   #7
neolith
Registered User
 
Join Date: Aug 2004
Posts: 3
Default Re: OpenGL apps hanging on exit

Ok, I managed to get it to work by upgrading to newest drivers and disabling my second monitor.
neolith is offline   Reply With Quote
Old 08-17-04, 08:01 PM   #8
rbgrn
Registered User
 
Join Date: Aug 2004
Posts: 2
Default Re: OpenGL apps hanging on exit

I have an Epox 8KRA2I (kt600) MB with an eVGA GeForce 6800 and am having this exact problem. All OpenGL apps hang on exit, but direct3d apps work fine.

Any success stories here? I recently upgraded from an MSI Geforce4 MX440 which had no opengl problems at all. This is very frustrating. I've tried practically everything (newest drivers for everything in my PC, bios settings triple checked and tried) and I'm basically out of ideas.

PS: This is under Windows, not linux, but it seems related.
rbgrn is offline   Reply With Quote

Old 08-18-04, 03:03 AM   #9
neolith
Registered User
 
Join Date: Aug 2004
Posts: 3
Default Re: OpenGL apps hanging on exit

Try using the 65.62 beta drivers.
neolith is offline   Reply With Quote
Old 08-18-04, 04:57 AM   #10
RobertOsfield
Registered User
 
Join Date: Feb 2004
Location: Scotland
Posts: 6
Default Re: OpenGL apps hanging on exit

I have also seen the same hang on exit problem on most OpenSceneGraph example apps (all OpenGL based of course), under Suse9.0 + 61.11 drivers and Gefore6800GT.

When I replace the graphics card with my GeforceFX5900XT the exit problem disappears.

I tried the previous Nividia drivers as well and came across the same problem.

Robert.
RobertOsfield is offline   Reply With Quote
Old 08-19-04, 12:18 AM   #11
rbgrn
Registered User
 
Join Date: Aug 2004
Posts: 2
Default Re: OpenGL apps hanging on exit

I installed the 65.62 beta drivers from http://download.guru3d.com/detonator/ and the problem is fixed!! I'll post again if I encounter any issues with these new beta drivers

Thanks everyone!
rbgrn is offline   Reply With Quote
Old 08-25-04, 09:42 PM   #12
BonesNV
Registered User
 
Join Date: Mar 2004
Posts: 15
Default Re: OpenGL apps hanging on exit

Nice another thread with my problem (just foudn the other one today too)...I have all the same problems in both linux and windows as well.

neolith, when you say newest drivers do you mean the 6111 drivers right? I believe they are the newest. And how would I go about disabling my second monitor? Well, I guess I can just google for that

Man I hope this works, I still at the alpha labs in Doom 3 I WANT TO PLAY! haha
BonesNV 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
OpenGL book Airstrip1 Software Development 2 08-12-12 08:55 AM
Great apps for Release Preview: third-party Metro apps in Windows 8 News Archived News Items 0 06-02-12 03:10 AM
OpenGL apps crashing in NVIDIA driver when switching desktop dinosaur NVIDIA Linux 0 06-01-12 07:09 PM
Major WineX prob... I think it has to do with the vidcard... Linewbie NVIDIA Linux 20 10-09-02 09:58 PM
Multiple OpenGL applications and NVidia gbrauer NVIDIA Linux 7 09-01-02 04:47 PM

All times are GMT -5. The time now is 09:31 AM.


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