Bug 28574

Summary: [R600] Caster (commercial game) crash.
Product: xorg Reporter: regnak90
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium    
Version: 7.5 (2009.10)   
Hardware: x86 (IA32)   
OS: Linux (All)   
URL: http://www.elecorn.com/caster3d/
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg output with 2.6.35 and 7.8.2. none

Description regnak90 2010-06-16 09:11:45 UTC
The game crash as soon as 3D is needed, the menu is working fine.

Here is the gdb output:
gdb caster.bin
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/data/Jeux/Caster/Files/caster.bin...(no debugging symbols found)...done.
(gdb) run
Starting program: /media/data/Jeux/Caster/Files/caster.bin 
[Thread debugging using libthread_db enabled]
Beginning Setup.
Pre SDL Setup.
Added available resolutions.
Loaded settings file.
Set to safe mode.
Pre Initialize sound.
[New Thread 0xb7632b70 (LWP 2443)]
Post Initialize sound.
Testing for support for 640 x 480.
Pre video mode set (640 x 480).
Video mode set at 640 x 480 with 0 times AA.
Finished SDL Setup.
OpenGL Version 2.0 Mesa 7.9-devel
Supports extensions:
GL_ARB_depth_texture GL_ARB_depth_clamp GL_ARB_draw_buffers 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_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient 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_crossbar GL_ARB_texture_env_dot3 GL_MESAX_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_convolution GL_EXT_copy_texture GL_EXT_draw_range_elements GL_EXT_framebuffer_object GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_histogram GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_provoking_vertex 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_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_APPLE_packed_pixels GL_ATI_blend_equation_separate GL_ATI_texture_env_combine3 GL_ATI_texture_mirror_once GL_ATI_separate_stencil GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_MESA_window_pos GL_NV_blend_square GL_NV_depth_clamp GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_NV_texgen_reflection GL_NV_vertex_program GL_OES_read_format GL_SGI_color_matrix GL_SGI_color_table GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays
Renderer: Mesa DRI R600 (RV635 9591) 20090101 x86/MMX/SSE2 TCL DRI2
Pre init textures.
Post init textures .
Finished OpenGL Setup.

Program received signal SIGSEGV, Segmentation fault.
0xb6c20f5a in radeonEmitVec8 () from /usr/lib/xorg/modules/dri/r600_dri.so


Same behavior with Mesa 7.7.1
With Mesa 7.8.1, the gdb output is the same, but there is relevant information in dmesg :
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
radeon 0000:01:00.0: vbo resource seems too big for the bo
Comment 1 regnak90 2010-06-17 04:47:17 UTC
(gdb) bt full
#0  0xb6c1ff5a in radeonEmitVec8 () from /usr/lib/xorg/modules/dri/r600_dri.so
No symbol table info available.
#1  0xb6c13a7c in r700DrawPrims () from /usr/lib/xorg/modules/dri/r600_dri.so
No symbol table info available.
#2  0xb6cd8e20 in vbo_validated_drawrangeelements ()
   from /usr/lib/xorg/modules/dri/r600_dri.so
No symbol table info available.
#3  0xb6cd8fa6 in vbo_exec_DrawElements ()
   from /usr/lib/xorg/modules/dri/r600_dri.so
No symbol table info available.
#4  0xb6ccf96e in neutral_DrawElements ()
   from /usr/lib/xorg/modules/dri/r600_dri.so
No symbol table info available.
#5  0x08082489 in ?? ()
No symbol table info available.
#6  0x080f2554 in ?? ()
No symbol table info available.
#7  0x0807488d in ?? ()
No symbol table info available.
#8  0x0807cdbf in ?? ()
No symbol table info available.
#9  0x0807ec87 in ?? ()
No symbol table info available.
Comment 2 regnak90 2010-08-21 10:22:53 UTC
Created attachment 38048 [details]
dmesg output with 2.6.35 and 7.8.2.
Comment 3 regnak90 2010-08-21 10:24:55 UTC
There is some improvement with the 2.6.35 kernel. The game doesn't segfault anymore...
Instead, as soon as the level is loaded, the whole screen goes black (even though the game is windowed). If I press enter, the game continue for a sec, then the black screen is back. If I press Escape, I can see the menu without having the screen going black and exit the game "normaly". Tested with mesa 7.8.2.
Also, the output of dmesg is noisier.
Comment 4 almos 2011-11-13 09:12:31 UTC
Please try it again with the r600g driver, preferably with mesa 7.11.
Comment 5 regnak90 2011-11-13 11:23:20 UTC
It's working with r600g.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.