Segmentation Fault with test suite (python 2.7.3, pyglet stable and development)

134 views
Skip to first unread message

Blaine Booher

unread,
Nov 27, 2012, 12:35:27 PM11/27/12
to pyglet...@googlegroups.com
I'm getting a seg fault for the graphics test on my Linux Mint install. Both with pyglet 1.2apha1 and 1.1.4, python 2.7.3

31$ cat pyglet.2.log 
INFO Beginning test at Tue Nov 27 12:15:58 2012
INFO Capabilities are: GENERIC, X11
INFO sys.platform = linux2
INFO pyglet.version = 1.2alpha1
INFO Reading test plan from plan.txt
INFO --- test (1/133) top.IMPORT
INFO Begin unit tests for top.IMPORT
INFO 27 tests run
INFO --- test (2/133) app.EVENT_LOOP
INFO Begin unit tests for app.EVENT_LOOP
INFO 8 tests run
INFO --- test (3/133) graphics.GRAPHICS_ALLOCATION
INFO Begin unit tests for graphics.GRAPHICS_ALLOCATION
INFO 23 tests run
INFO --- test (4/133) graphics.IMMEDIATE
INFO Begin unit tests for graphics.IMMEDIATE
INFO 10 tests run
INFO --- test (5/133) graphics.IMMEDIATE_INDEXED
INFO Begin unit tests for graphics.IMMEDIATE_INDEXED
INFO 10 tests run
INFO --- test (6/133) graphics.RETAINED
INFO Begin unit tests for graphics.RETAINED
INFO 10 tests run
INFO --- test (7/133) graphics.RETAINED_INDEXED
INFO Begin unit tests for graphics.RETAINED_INDEXED

Also --test-root=media does not work (i only want to test media since i am having video issues), it appears to run all tests.


last output from python test.py:
------------------------------------------------------------------------------
Running Test: graphics.IMMEDIATE (4/133)

------------------------------------------------------------------------------
Running Test: graphics.IMMEDIATE_INDEXED (5/133)

    
    
------------------------------------------------------------------------------
Running Test: graphics.RETAINED (6/133)

------------------------------------------------------------------------------
Running Test: graphics.RETAINED_INDEXED (7/133)

    
    
Segmentation fault


Sincerely,
Blaine Booher
Clifton Labs, Inc

anatoly techtonik

unread,
Nov 28, 2012, 5:28:39 AM11/28/12
to pyglet...@googlegroups.com, bgbo...@gmail.com
Does running single test segfault also?

  $ test.py graphics.RETAINED_INDEXED

Can you also try current HEAD version from checkout?
And report your video card / driver version.

Blaine Booher

unread,
Nov 28, 2012, 11:28:17 AM11/28/12
to anatoly techtonik, pyglet...@googlegroups.com
Thanks for the response!

26$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Ivy Bridge Graphics Controller (rev 09)

Updated with hg pull - not sure if this is truly the latest as the last commit is from september 2012.

Still seg faults when I only run the single test. 

Sincerely,
Blaine

anatoly techtonik

unread,
Nov 28, 2012, 3:27:11 PM11/28/12
to Blaine Booher, pyglet...@googlegroups.com
September 2012 is the latest. Probably you have one of those buggy intel videocards.
Now we need to drill down to the exact card/driver/version identifier. Can you post the
output of tools/gl_info.py?

Blaine Booher

unread,
Nov 28, 2012, 3:51:14 PM11/28/12
to anatoly techtonik, pyglet...@googlegroups.com
No problem. Here you go! It's an intel i7 with integrated Ivy Bridge HD4000 (I think) CPU/GPU

[blaine@lemur:~/src/pyglet/tools Wed Nov 28]
18$ python gl_info.py 
Pyglet:     1.2alpha1
Platform:   linux2
Event loop: XlibEventLoop
Display:    XlibDisplay
Screens:
  XlibScreen(display=<pyglet.canvas.xlib.XlibDisplay object at 0x2094510>, x=0, y=0, width=1366, height=768, xinerama=0)

Creating default context...
Window:
  XlibWindow(width=1, height=1)
GL attributes:
  double_buffer=1 stereo=0 buffer_size=24 aux_buffers=0 sample_buffers=0
  samples=0 red_size=8 green_size=8 blue_size=8 alpha_size=0
  depth_size=24 stencil_size=8 accum_red_size=0 accum_green_size=0
  accum_blue_size=0 accum_alpha_size=0 major_version=None
  minor_version=None forward_compatible=None debug=None
GL version: 3.0 Mesa 8.0.2
GL vendor: Tungsten Graphics, Inc
GL renderer: Mesa DRI Intel(R) Ivybridge Mobile 
GL extensions:
  GL_ARB_texture_compression GL_ARB_texture_swizzle
  GL_EXT_polygon_offset GL_OES_packed_depth_stencil
  GL_ARB_explicit_attrib_location GL_EXT_blend_color
  GL_EXT_blend_subtract GL_EXT_stencil_wrap GL_OES_standard_derivatives
  GL_EXT_vertex_array GL_IBM_texture_mirrored_repeat
  GL_ATI_separate_stencil GL_ATI_blend_equation_separate
  GL_OES_rgb8_rgba8 GL_ARB_depth_texture GL_NV_packed_depth_stencil
  GL_OES_query_matrix GL_OES_blend_subtract GL_OES_single_precision
  GL_EXT_texture_format_BGRA8888 GL_EXT_framebuffer_sRGB
  GL_EXT_texture_object GL_ARB_copy_buffer GL_EXT_blend_func_separate
  GL_EXT_texture GL_EXT_texture_cube_map GL_ARB_occlusion_query
  GL_ARB_transpose_matrix GL_ARB_provoking_vertex
  GL_OES_fbo_render_mipmap GL_OES_compressed_paletted_texture
  GL_ARB_depth_buffer_float GL_ARB_texture_border_clamp GL_EXT_fog_coord
  GL_NV_depth_clamp GL_ARB_fragment_coord_conventions
  GL_ARB_texture_cube_map GL_ARB_half_float_vertex
  GL_EXT_blend_equation_separate GL_EXT_provoking_vertex
  GL_ARB_point_parameters GL_EXT_texture_env_dot3
  GL_ATI_texture_env_combine3 GL_OES_texture_mirrored_repeat
  GL_EXT_multi_draw_arrays GL_ARB_shader_texture_lod
  GL_MESA_texture_array GL_OES_point_size_array
  GL_EXT_texture_env_combine GL_OES_blend_equation_separate
  GL_EXT_transform_feedback GL_NV_fbo_color_attachments
  GL_OES_framebuffer_object GL_ARB_vertex_program
  GL_ARB_texture_env_dot3 GL_EXT_bgra GL_NV_texture_env_combine4
  GL_OES_matrix_get GL_ARB_framebuffer_sRGB GL_ARB_vertex_array_object
  GL_ARB_texture_env_combine GL_ARB_vertex_buffer_object
  GL_ARB_map_buffer_range GL_EXT_shadow_funcs
  GL_INGR_blend_func_separate GL_OES_blend_func_separate
  GL_EXT_separate_specular_color GL_3DFX_texture_compression_FXT1
  GL_EXT_texture_env_add GL_EXT_packed_depth_stencil GL_EXT_timer_query
  GL_EXT_vertex_array_bgra GL_SGIS_texture_border_clamp
  GL_ARB_point_sprite GL_MESA_ycbcr_texture GL_EXT_framebuffer_object
  GL_MESA_texture_signed_rgba GL_ARB_vertex_shader
  GL_ARB_half_float_pixel GL_ARB_vertex_array_bgra
  GL_ARB_ES2_compatibility GL_ARB_draw_buffers
  GL_ARB_fragment_program_shadow GL_EXT_packed_float
  GL_IBM_rasterpos_clip GL_EXT_texture_sRGB GL_EXT_stencil_two_side
  GL_NV_texgen_reflection GL_IBM_multimode_draw_arrays
  GL_OES_read_format GL_EXT_texture_array GL_EXT_compiled_vertex_array
  GL_EXT_point_parameters GL_APPLE_vertex_array_object
  GL_EXT_texture_swizzle GL_ARB_texture_rg GL_OES_texture_npot
  GL_ARB_texture_float GL_ARB_depth_clamp GL_ARB_fragment_shader
  GL_ATI_texture_float GL_EXT_separate_shader_objects
  GL_EXT_draw_buffers2 GL_NV_draw_buffers GL_OES_EGL_image
  GL_ARB_fragment_program GL_ARB_shader_objects
  GL_ARB_framebuffer_object GL_ARB_shading_language_100
  GL_NV_blend_square GL_MESA_window_pos GL_EXT_secondary_color
  GL_ARB_texture_non_power_of_two GL_EXT_texture_sRGB_decode
  GL_EXT_texture_lod_bias GL_NV_texture_rectangle
  GL_ARB_seamless_cube_map GL_EXT_pixel_buffer_object GL_EXT_abgr
  GL_OES_texture_env_crossbar GL_OES_depth_texture GL_NV_vertex_program
  GL_EXT_texture_snorm GL_ARB_texture_rectangle GL_ARB_multisample
  GL_SGIS_generate_mipmap GL_NV_conditional_render
  GL_EXT_texture_filter_anisotropic GL_ARB_robustness
  GL_NV_light_max_exponent GL_EXT_blend_minmax GL_EXT_framebuffer_blit
  GL_OES_depth24 GL_ARB_texture_env_crossbar GL_SGIS_texture_lod
  GL_MESA_pack_invert GL_OES_point_sprite GL_EXT_texture_rectangle
  GL_OES_mapbuffer GL_ARB_sync GL_OES_element_index_uint
  GL_OES_texture_cube_map GL_EXT_subtexture GL_ARB_color_buffer_float
  GL_EXT_texture_edge_clamp GL_EXT_texture_compression_rgtc
  GL_ARB_window_pos GL_APPLE_packed_pixels GL_ARB_shadow
  GL_ARB_texture_mirrored_repeat GL_EXT_texture_integer
  GL_SUN_multi_draw_arrays GL_EXT_gpu_program_parameters
  GL_EXT_copy_texture GL_OES_fixed_point GL_NV_vertex_program1_1
  GL_ARB_texture_compression_rgtc GL_EXT_framebuffer_multisample
  GL_EXT_texture_shared_exponent GL_EXT_texture3D GL_OES_stencil8
  GL_ARB_multitexture GL_ATI_envmap_bumpmap GL_OES_texture_3D
  GL_ARB_draw_elements_base_vertex GL_ATI_draw_buffers
  GL_SGIS_texture_edge_clamp GL_APPLE_object_purgeable
  GL_EXT_draw_range_elements GL_ARB_texture_env_add
  GL_EXT_texture_type_2_10_10_10_REV GL_ARB_sampler_objects
  GL_OES_byte_coordinates GL_OES_stencil_wrap GL_EXT_packed_pixels
  GL_EXT_rescale_normal GL_ARB_pixel_buffer_object
GLU version: 1.3
GLU extensions:
  GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess

Context is XlibContext13()
GLX is direct
GLX server vendor: SGI
GLX server version: 1.4
GLX server extensions:
  GLX_ARB_multisample GLX_EXT_import_context GLX_EXT_texture_from_pixmap
  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer
  GLX_OML_swap_method GLX_SGI_swap_control GLX_SGIS_multisample
  GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group
  GLX_INTEL_swap_event
GLX client vendor: Mesa Project and SGI
GLX client version: 1.4
GLX client extensions:
  GLX_ARB_create_context GLX_ARB_create_context_profile
  GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context
  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_framebuffer_sRGB
  GLX_EXT_create_context_es2_profile GLX_MESA_copy_sub_buffer
  GLX_MESA_multithread_makecurrent GLX_MESA_swap_control
  GLX_OML_swap_method GLX_OML_sync_control GLX_SGI_make_current_read
  GLX_SGI_swap_control GLX_SGI_video_sync GLX_SGIS_multisample
  GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group
  GLX_EXT_texture_from_pixmap GLX_INTEL_swap_event
GLX extensions:
  GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_import_context
  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer
  GLX_MESA_multithread_makecurrent GLX_MESA_swap_control
  GLX_OML_swap_method GLX_OML_sync_control GLX_SGI_make_current_read
  GLX_SGI_swap_control GLX_SGI_video_sync GLX_SGIS_multisample
  GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group
  GLX_EXT_texture_from_pixmap

anatoly techtonik

unread,
Nov 28, 2012, 4:44:54 PM11/28/12
to Blaine Booher, pyglet...@googlegroups.com
On Wed, Nov 28, 2012 at 11:51 PM, Blaine Booher <bgbo...@gmail.com> wrote:
No problem. Here you go! It's an intel i7 with integrated Ivy Bridge HD4000 (I think) CPU/GPU

[blaine@lemur:~/src/pyglet/tools Wed Nov 28]
18$ python gl_info.py 
Pyglet:     1.2alpha1
... 
GL attributes:
  double_buffer=1 stereo=0 buffer_size=24 aux_buffers=0 sample_buffers=0
  samples=0 red_size=8 green_size=8 blue_size=8 alpha_size=0
  depth_size=24 stencil_size=8 accum_red_size=0 accum_green_size=0
  accum_blue_size=0 accum_alpha_size=0 major_version=None
  minor_version=None forward_compatible=None debug=None
GL version: 3.0 Mesa 8.0.2
GL vendor: Tungsten Graphics, Inc
GL renderer: Mesa DRI Intel(R) Ivybridge Mobile 

Good. Looks like a bug in Mesa drivers. There are some reports about this combination. Like this one:

It may help to see if glxinfo returns different info:
> glxinfo | grep OpenGL

It will help to pinpoint of problem before reporting to http://www.mesa3d.org/index.html with a smallest crasheable piece of code. I'd run test once more to see the exact function that crashed and try to make a standalone example out of it.

> python -m tests.graphics.RETAINED -v

-- 
anatoly t.


Reply all
Reply to author
Forward
0 new messages